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
Old 08-27-2006, 06:20 PM IE layout issue
Novice Talker

Posts: 9
Trades: 0
here is my html file
Untitled Document and
here is my css file
http://snowboardsummit.com/sbswhite/header.css

if you view in firefox it looks fine but in IE the menu bar is all out of wack..
this is my 1st try at doing anything in amm css so maybe if someone could look oover my code and maybe help me fix it up a bit so it could display normally

thanx
andrew thomas is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-28-2006, 11:01 AM Re: IE layout issue
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Your problem with the menu in IE is IE's broken box model. You've to 10px padding on the right and left of a 40px width menu area. IE ADDS the 20px of padding to the 40px area you want, making them wider. In your hacks at the bottom of your css, you need to LOWER those numbers like so:
Quote:
* html #sitenav li a {
width: 20px;
}
* html #sitenav li#n-members a {
width: 62px;
}
* html #sitenav li#n-com a {
width: 71px;
}
* html #sitenav li#n-links a {
width: 61px;
}
You also need to dump the table, you don't need it. You can get a centered fixed width layout by adding a 'wrapper' to your code:

Quote:
#wrapper{
position: relative;
text-align: left;
width: 776px;
margin: 0 auto;
}
Then add <div id="wrapper"> before your <div id="hdr"> and close the wrapper before you </body>. To center it in IE, add text-align: center to your body rules.
__________________
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-28-2006, 08:47 PM Re: IE layout issue
Novice Talker

Posts: 9
Trades: 0
thank you very much for your hellp
andrew thomas is offline
Reply With Quote
View Public Profile
 
Old 08-28-2006, 10:37 PM Re: IE layout issue
Novice Talker

Posts: 9
Trades: 0
ok i did what u said but the layout is still all wacked out the layout and nav bar are still positioned in correctly
i guess i dont have the whole css concept down like i though i might have

could you kindly recheck and let me know whats wrong in the top header area
andrew thomas is offline
Reply With Quote
View Public Profile
 
Old 08-28-2006, 10:55 PM Re: IE layout issue
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
It appears you did not make the changes to your 'hacks' that I gave you.

IE's box model is broken. You have to REDUCE the size of the 'boxes' by the amount of padding you added - which was 10px on EACH side, so subtract 20px.
__________________
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-28-2006, 11:08 PM Re: IE layout issue
Novice Talker

Posts: 9
Trades: 0
Quote:
Originally Posted by LadynRed View Post
It appears you did not make the changes to your 'hacks' that I gave you.

IE's box model is broken. You have to REDUCE the size of the 'boxes' by the amount of padding you added - which was 10px on EACH side, so subtract 20px.
yes i followed your instructions and they fixed the nav bar but it also at the same time cut off the logo..
it places the navbar in a single line like its supposed to but also moved the navbar up cutting off the logo
andrew thomas is offline
Reply With Quote
View Public Profile
 
Old 08-28-2006, 11:59 PM Re: IE layout issue
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Aahh.. sorry.. hadn't noticed that bit, I was looking at the buttons !! D'oh !
Do you have the most recent version uploaded ? I'm still seeing a 2-row nav in IE 6....
__________________
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


Last edited by LadynRed; 08-29-2006 at 12:01 AM..
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-29-2006, 12:38 AM Re: IE layout issue
Novice Talker

Posts: 9
Trades: 0
Quote:
Originally Posted by LadynRed View Post
Aahh.. sorry.. hadn't noticed that bit, I was looking at the buttons !! D'oh !
Do you have the most recent version uploaded ? I'm still seeing a 2-row nav in IE 6....
no i am using IE5 i have IE6 on my other computer i havent got to check there yet
but in ie5 the nav looks fine its just positioned at the top of the header
andrew thomas is offline
Reply With Quote
View Public Profile
 
Old 08-29-2006, 11:21 AM Re: IE layout issue
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Frankly, I wouldn't worry too much about IE 5. I'd be willing to bet your audience.. snowboarders, are not going to be using such a doddering old browser version.

I believe you'll need what is known as the "Holly Hack", and you should put it in as a conditional comment and not a hack. When IE 7 comes out, hacks are going to cause havoc.

Quote:
* html #nav li a { --- use your div name...
height: 1%;
vertical-align: bottom;
}
__________________
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-29-2006, 12:07 PM Re: IE layout issue
Novice Talker

Posts: 9
Trades: 0
im sorry i ment to say im using IE 6 and i have IE 7 on my other computer lol
wow somthings wrong with me lately not enough sleep lol

thank you lady you have been very helpfull
andrew thomas is offline
Reply With Quote
View Public Profile
 
Old 08-29-2006, 12:14 PM Re: IE layout issue
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
The hacks are going to be a problem with IE 7, that's for certain. Go with the conditional comments for IE 6 and below.

I need another cup of coffee this morning myself !
__________________
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
 
Reply     « Reply to IE layout issue
 

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.31963 seconds with 12 queries