Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-20-2007, 08:49 PM   PM User | #1
Christech4000
New Coder

 
Join Date: Oct 2007
Location: Michigan
Posts: 36
Thanks: 27
Thanked 0 Times in 0 Posts
Christech4000 is an unknown quantity at this point
got FF positioning issue

The rule > .sidebar ul < is pushed outside of the container in FF
check it out www.invision-online.com
Christech4000 is offline   Reply With Quote
Old 12-20-2007, 09:16 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Always helps to zero out defaults with
Code:
 
* {
margin: 0;
padding: 0;
}

Try making your CSS look like this:
Code:
#content { 
background:#ffcccc ;
margin : 1px 0 0 0;
height : 700px;
width : 600px;
padding : 0 1px 0 2px;
border-top : 0;
border-right: 0;
border-bottom : 0;
border-left : 5px solid #ff0000;
}
 
#sidebar { 
height : 712px;
width : 246px;
background : #ffcccc url(../media/a_red_b_bas.gif) repeat-y top right;
float : right;
margin: 0 4px 0 0;
} 
* {
margin: 0;
padding: 0;
}
#sidebar ul {
color:#ffffff;
margin:0 2px 0 0px; 
width:246px;
height:20px;
text-decoration:none;
list-style:circle;
}




#sidebar li { 
width:246px;
height:20px;
font-weight:bold;
background:#FF9999;
border-bottom:solid 1px #FF0000;
padding-top:5px;
text-align:center;
text-decoration:none;
list-style:none;
}


.bar { 
height : 21%;
width : 246px;
} 

.bar ul {
margin:0 0 0 0; 
width:248px;
height:20px;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:0.7em;
text-decoration:none;
list-style:none;
}

.bar li {
width:248px;
height:20px;
}

.bar li li {
width:248px;
height:20px;
}


.bar h3 { 
height : 20px;
width : 100%;
background : url(../media/a_red_ba.gif) repeat-x top left;
color : #ffffff;
text-align : center;
padding : 3px 0 0 0;
margin : 1px 0 0 0;
font-family : Arial, Helvetica, sans-serif;
font-weight : 600;
font-size : 1em;
}
Check the CSS validator.

I like the looks of this page - striking.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 12-20-2007, 10:57 PM   PM User | #3
Christech4000
New Coder

 
Join Date: Oct 2007
Location: Michigan
Posts: 36
Thanks: 27
Thanked 0 Times in 0 Posts
Christech4000 is an unknown quantity at this point
thank you, i will try and zero the margins as you suggest
Christech4000 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:51 PM.


Advertisement
Log in to turn off these ads.