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
Header not displaying correctly Firefox, Opera, Chrome
Old 11-25-2008, 10:07 AM Header not displaying correctly Firefox, Opera, Chrome
shonkyboy's Avatar
Extreme Talker

Posts: 226
Name: Chris
Location: West Yorks , UK
Trades: 0
Hi,
I’m wondering if anyone can help – I’m trying to put a header on a site but I'm having difficulty tracking why it wont display properly – I have just put a test header on the site to see how it will look - it looks ok in IE – but, if you view it in Firefox, however, it is offset – same for Google chrome and Opera . Anyone got any ideas?
I have been trying all morning to trace this without luck.
Is this some sort of bug?
The site was based around an origional design and i didn't write all the css - whaich makes it even more fun!

Cheers
__________________

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

Last edited by chrishirst; 11-25-2008 at 10:25 AM.. Reason: formatting removed
shonkyboy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-25-2008, 10:27 AM Re: Header not displaying correctly Firefox, Opera, Chrome
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
do we get to see it? or take a guess at no DTD
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-25-2008, 11:02 AM Re: Header not displaying correctly Firefox, Opera, Chrome
shonkyboy's Avatar
Extreme Talker

Posts: 226
Name: Chris
Location: West Yorks , UK
Trades: 0
oh sorry - it should have been www.uk-computers.co.uk/main.asp
__________________

Please login or register to view this content. Registration is FREE
shonkyboy is offline
Reply With Quote
View Public Profile
 
Old 11-25-2008, 11:21 AM Re: Header not displaying correctly Firefox, Opera, Chrome
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Get rid of that hideous and deprecated <center> tag. Put a "wrapper" div around the entire layout, set the width to 970px, and set it to margin: 0 auto; to center the entire layout. Also set the wrapper div to position:relative in case you want to position anything inside it, those get positioned relative to the centered wrapper instead of the body.

You have a 960px header, centered inside a 970px #mainheader - so of course it's not going to line up exactly with the rest of your page. You also need to understand the box model and how it works because your ADDING width to the box with margins and padding - which will push things out.

You're also triggering the doubled-float margin bug in IE6 with the float:right with a right margin on the nav in your header.

1 more thing - z-index ONLY works on elements that are absolutely or relatively positioned - putting it on anything else is a waste of time.
__________________
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 Header not displaying correctly Firefox, Opera, Chrome
 

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