|
|
|
||||
|
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 |
|
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;
}
any suggestions?
__________________
★★★
|
|
|
|
|
|
#2 |
|
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
__________________
★★★
|
|
|
|
|
|
#3 |
|
Bland for life
Industry Role:
Join Date: Nov 2004
Posts: 10,468
|
forget it...
im gonna go with classes
__________________
★★★
|
|
|
|
|
|
#4 |
|
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
}
|
|
|
|
|
|
#5 | |
|
Bland for life
Industry Role:
Join Date: Nov 2004
Posts: 10,468
|
Quote:
appreciate it kirupai. i'll keep that in mind for next time. I decided to go with a class instead.
__________________
★★★
|
|
|
|
|
|
|
#6 |
|
Confirmed User
Join Date: Aug 2003
Location: California
Posts: 894
|
Try it again i forgot to change the padding to margin lol
|
|
|
|
|
|
#7 | |
|
Registered User
Join Date: Feb 2002
Location: the Anthrax capitol
Posts: 49
|
Quote:
__________________
A computer without Windows, is like a dog without a bunch of bricks tied to its head!! |
|
|
|
|
|
|
#8 |
|
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
}
|
|
|
|