Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Ridiculous problem with SIMPLE navbar!!!
Old 08-03-2010, 03:36 PM Ridiculous problem with SIMPLE navbar!!!
Junior Talker

Posts: 2
Trades: 0
Hello everyone - I'm stumped

I'm using wordpress to create a website, i've wiped clean the index.php to create a design from scratch. I wanted to create a centered header that contains a logo flushed to the left, and below it a list as a navbar.

Here are two images showing the problem

FIREFOX




INTERNET EXPLORER





And here is the css code:

body {
margin: 0 0 20px 0;
padding: 0;
}

#page {
background-color: white;
margin: 0px;
padding: 0;
width: 100%px;
border: 1px solid #959596;
}

#topheader {
background-color:#FFFFFF;
padding: 0;
height: auto;
width: 800px;
margin: 0px auto;
border:#333333 1px solid;
font-size:18px;
font-weight:lighter;
color:#999999;

}


#logo {

background: #73a0c5 url('images/logo.jpg') no-repeat;
height: 90px;
border: solid 1px #FF0000;
}


#nav {
margin;
padding:0;
width:700px;
border: solid 1px #FF00FF;
width: 100%;

}


#nav li {
display:inline;
padding: 0 25px 0 25px;
margin:0;
border: solid 1px #FF0000;


}
lenglain is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-04-2010, 02:50 PM Re: Ridiculous problem with SIMPLE navbar!!!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
We need to see ALL of the code or the URL to the problem page. We can't debug from an image.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-07-2010, 11:27 AM Re: Ridiculous problem with SIMPLE navbar!!!
racer x's Avatar
Ultra Talker

Posts: 457
Name: Randy
Location: Northern Wisconsin
Trades: 0
You may want to take note that you have 2 widths for #nav.

Also, be sure to validate the code for errors, that always helps.

This site is helpful for learning lists which can be confusing http://css.maxdesign.com.au/listamatic/

Don't forget that when calculating widths that any borders count as part of the width too.
racer x is offline
Reply With Quote
View Public Profile Visit racer x's homepage!
 
Old 08-08-2010, 05:05 PM Re: Ridiculous problem with SIMPLE navbar!!!
Junior Talker

Posts: 3
Name: Sheina Yeheskel
Trades: 0
Hi Lenglain

This looks pretty weird to me:

body {
margin: 0 0 20px 0;
padding: 0;
}

I'm just doing a quick quess, but this looks to me that it puts a 20px bottom margin on EVERYTHING.

SOP is to reset the default padding and margins to "0" and then only add margins and padding when you need them.

All the Best
Wild Rose
Wild Rose is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Ridiculous problem with SIMPLE navbar!!!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.54690 seconds with 12 queries