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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-26-2013, 05:01 PM   #1
The Dawg
Confirmed User
 
The Dawg's Avatar
 
Join Date: Apr 2002
Location: State Of Bliss
Posts: 2,438
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...
The Dawg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-26-2013, 09:27 PM   #2
Webmaster Advertising
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.
Webmaster Advertising is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-26-2013, 10:14 PM   #3
PornMD
Mainstream Businessman
 
PornMD's Avatar
 
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.
PornMD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-26-2013, 10:53 PM   #4
The Dawg
Confirmed User
 
The Dawg's Avatar
 
Join Date: Apr 2002
Location: State Of Bliss
Posts: 2,438
Thanks, just trying to get my html5 / css3 conventions right.
The Dawg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-27-2013, 01:31 AM   #5
Killswitch
👏 REVOLUTIONARY 👏
 
Killswitch's Avatar
 
Industry Role:
Join Date: Oct 2012
Posts: 2,326
I always go second method that way I know what's being styled properly.
__________________
Killswitch is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.