![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Apr 2002
Location: State Of Bliss
Posts: 2,438
|
CSS Gurus - Which one is correct?
HTML:
Code:
<nav id="horizontal"> .... Code:
#horizontal ul { font-family: 'Century Gothic'; font-size: 14px; font-weight: bold; letter-spacing: 3px; line-height: 20px; list-style-type: none; } #horizontal li a { color:hsl(212, 100%, 70%); text-decoration:none; } #horizontal li a:hover { color: hsl(212, 100%, 29%); } Code:
#horizontal ul { font-family: 'Century Gothic'; font-size: 14px; font-weight: bold; letter-spacing: 3px; line-height: 20px; list-style-type: none; } #horizontal ul li a { color:hsl(212, 100%, 70%); text-decoration:none; } #horizontal ul li a:hover { color: hsl(212, 100%, 29%); } Both seem to work... ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
So Fucking Banned
Join Date: Sep 2003
Posts: 1,360
|
Both are correct, unless you are utilizing 'specify' in the code/CSS too but even then, both are correct.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Mainstream Businessman
Industry Role:
Join Date: Jan 2007
Location: San Diego
Posts: 9,291
|
They're both correct, but I suppose if you had an ol with different li stylings, you would want to do it the 2nd way.
__________________
Want to crush it in mainstream with Facebook ads? Hit me up.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Apr 2002
Location: State Of Bliss
Posts: 2,438
|
Thanks, just trying to get my html5 / css3 conventions right.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
👏 REVOLUTIONARY 👏
Industry Role:
Join Date: Oct 2012
Posts: 2,326
|
I always go second method that way I know what's being styled properly.
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |