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
menu not postitioning correctly in IE
Old 01-21-2009, 04:58 AM menu not postitioning correctly in IE
shonkyboy's Avatar
Extreme Talker

Posts: 226
Name: Chris
Location: West Yorks , UK
Trades: 0
Hi - i have a test site at http://www.uk-computers.co.uk/index.php
the menu at the top of the page aligns correctly to the right in every browser but IE (which aligns to the left). No surprises there then!
I wonder if this could be a bug or maybe i have missed something .
The Div is the #TopMenu - any advice would be appreciated. Many thanks.
__________________

Please login or register to view this content. Registration is FREE
shonkyboy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-21-2009, 08:11 AM Re: menu not postitioning correctly in IE
Skilled Talker

Posts: 68
Name: Avi Zolty
Location: Atlanta
Trades: 0
IE, seems to give a lot of problems, but I don't see what you are talking about. Perhaps you fixed it already?
If not a code snippet would help?
__________________
"If you say something interesting, people will remember your name" ~ Anonymous


Please login or register to view this content. Registration is FREE
.asp <- Irony
Zoltar1992 is offline
Reply With Quote
View Public Profile
 
Old 01-21-2009, 11:23 AM Re: menu not postitioning correctly in IE
shonkyboy's Avatar
Extreme Talker

Posts: 226
Name: Chris
Location: West Yorks , UK
Trades: 0
in IE 7 it appears on the left hand side above the logo .
The correct position - when viewed in Firefox and Opera etc.. should be on the right hand side above the search bar.
__________________

Please login or register to view this content. Registration is FREE
shonkyboy is offline
Reply With Quote
View Public Profile
 
Old 01-21-2009, 11:49 AM Re: menu not postitioning correctly in IE
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You've got the li items floated left -- float them right.
You should also use conditional comments to call a separate css file for IE only fixes.
__________________
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 01-22-2009, 04:37 AM Re: menu not postitioning correctly in IE
shonkyboy's Avatar
Extreme Talker

Posts: 226
Name: Chris
Location: West Yorks , UK
Trades: 0
Hi Thanks for that - just a question
Quote:
You should also use conditional comments to call a separate css file for IE only fixes.
I take it the conditional comment goes in the CSS file - and would this float of the li items be a conditional comment? I take it it is IE Specific as the other browsers interpretate this ok?
(By the way - at the time of writing - the site was a bit messed up due to a move in Nameservers!)
__________________

Please login or register to view this content. Registration is FREE
shonkyboy is offline
Reply With Quote
View Public Profile
 
Old 01-22-2009, 04:38 AM Re: menu not postitioning correctly in IE
shonkyboy's Avatar
Extreme Talker

Posts: 226
Name: Chris
Location: West Yorks , UK
Trades: 0
Oh and one more thing
Quote:
call a separate css file
does that mean i have to have a seperate CSS file for this?
Im a bit confused with this to tell you the truth!
__________________

Please login or register to view this content. Registration is FREE
shonkyboy is offline
Reply With Quote
View Public Profile
 
Old 01-22-2009, 11:24 AM Re: menu not postitioning correctly in IE
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Conditional comments go in the <head> section of your HTML file and they look like this:

Quote:
<!--[if lt IE 7]>
<link href="iefixes.css" rel="stylesheet" type="text/css" /> <![endif]-->
<!--[if gt IE 6]>
<link href="ie7fixes.css" rel="stylesheet" type="text/css" /> <![endif]-->


Quote:
does that mean i have to have a seperate CSS file for this?
That IS what I said. IE is the only browser that will read conditional comments so it's a way to apply the necessary fixes needed to fight IE's many bugs. The ONLY thing you need in the separate CSS file is the rules needed to make IE do things correctly - so it is NOT a complete copy of your 'main' css file.
__________________
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 01-23-2009, 06:29 AM Re: menu not postitioning correctly in IE
shonkyboy's Avatar
Extreme Talker

Posts: 226
Name: Chris
Location: West Yorks , UK
Trades: 0
many thanks for that 0 i will give that a try today.
just one question - why is it bad practice to put the IE fixes in the main style sheet? Is this something set out by the W3C?

Thanks Again
__________________

Please login or register to view this content. Registration is FREE
shonkyboy is offline
Reply With Quote
View Public Profile
 
Old 01-23-2009, 02:34 PM Re: menu not postitioning correctly in IE
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
why is it bad practice to put the IE fixes in the main style sheet
It's not bad practice as such, merely that the IE "fixes" could impinge on other rules which work perfectly well in good browsers thus "breaking" them.

So, as only IE handles the conditional comments, only IE will "see" the rules meant for IE only.

Quote:
Is this something set out by the W3C?
No. Conditional comments are not part of the W3c DOM specification, just another instance of Microsoft making up the rules to suit themselves.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-27-2009, 06:04 AM Re: menu not postitioning correctly in IE
shonkyboy's Avatar
Extreme Talker

Posts: 226
Name: Chris
Location: West Yorks , UK
Trades: 0
Thanks for that Chris
__________________

Please login or register to view this content. Registration is FREE
shonkyboy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to menu not postitioning correctly in IE
 

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