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 07-07-2006, 02:47 PM   #1
Young
Bland for life
 
Industry Role:
Join Date: Nov 2004
Posts: 10,468
Quick CSS question

My padding is affecting my hover background color in my lists. Where should I place the padding so that way the background color fills throughout?

What am I doing wrong?

Code:
#nav {
border: 1px solid #000000;
width:769px;
float:left;

}

#nav ul{
padding: 0;
margin:0;
float:left;
background-color: #FFFFFF;

}

#nav ul li{
display:block;
border: 3px solid #000000;
margin:0;
padding-right: 2px;
float:left
}

#nav ul li a{
color:#000000;
text-align:center;
text-decoration:none;
width: 9em;

}

#nav ul li a:hover{
background-color:#0099FF;
}
I realize my code maybe a little redundant but I don't go through and crunch everything till all is said and done.

any suggestions?
__________________
★★★
Young is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-07-2006, 02:47 PM   #2
Young
Bland for life
 
Industry Role:
Join Date: Nov 2004
Posts: 10,468
also does someone wanna help me get rid of some of those "Floats"

All i'm trying to do is create a horizontal menu. Usually its a 2min job today for some reason its kicking my ass
__________________
★★★
Young is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-07-2006, 02:52 PM   #3
Young
Bland for life
 
Industry Role:
Join Date: Nov 2004
Posts: 10,468
forget it...

im gonna go with classes
__________________
★★★
Young is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-07-2006, 02:57 PM   #4
kirupai
Confirmed User
 
Join Date: Aug 2003
Location: California
Posts: 894
Code:
#nav ul li{
display:block;
border: 3px solid #000000;
margin:0;
margin-right: 2px;
float:left
}
Try that

Last edited by kirupai; 07-07-2006 at 02:59 PM..
kirupai is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-07-2006, 02:59 PM   #5
Young
Bland for life
 
Industry Role:
Join Date: Nov 2004
Posts: 10,468
Quote:
Originally Posted by kirupai
Code:
#nav ul li{
display:block;
border: 3px solid #000000;
margin:0;
padding-right: 2px;
float:left
}
Try that

appreciate it kirupai. i'll keep that in mind for next time. I decided to go with a class instead.
__________________
★★★
Young is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-07-2006, 03:03 PM   #6
kirupai
Confirmed User
 
Join Date: Aug 2003
Location: California
Posts: 894
Try it again i forgot to change the padding to margin lol
kirupai is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-07-2006, 03:04 PM   #7
CyBå CüLt CRüE
Registered User
 
Join Date: Feb 2002
Location: the Anthrax capitol
Posts: 49
Quote:
Originally Posted by kirupai
Code:
#nav ul li{
display:block;
border: 3px solid #000000;
margin:0;
margin-right: 2px;
float:left
}
Try that
That should work
__________________
A computer without Windows, is like a dog without a bunch of bricks tied to its head!!
CyBå CüLt CRüE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-07-2006, 03:08 PM   #8
kirupai
Confirmed User
 
Join Date: Aug 2003
Location: California
Posts: 894
Code:
#nav ul li{
display:block;
border: 3px solid #000000;
margin: 0 2 0 0;
float:left
}
There you go even a little cleaner :P
kirupai 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.