GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   CSS Gurus - Which one is correct? (https://gfy.com/showthread.php?t=1097705)

The Dawg 01-26-2013 05:01 PM

CSS Gurus - Which one is correct?
 
HTML:

Code:

<nav id="horizontal">
....

CSS:
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%);
}

Or

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... :helpme

Webmaster Advertising 01-26-2013 09:27 PM

Both are correct, unless you are utilizing 'specify' in the code/CSS too but even then, both are correct.

PornMD 01-26-2013 10:14 PM

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.

The Dawg 01-26-2013 10:53 PM

Thanks, just trying to get my html5 / css3 conventions right.

Killswitch 01-27-2013 01:31 AM

I always go second method that way I know what's being styled properly.


All times are GMT -7. The time now is 05:45 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123