Web Design and Development Forums

Positioning differs in IE

This is a discussion on "Positioning differs in IE" within the CSS Forum section. This forum, and the thread "Positioning differs in IE are both part of the Design Your Website category.


Go Back   Webforumz.com > Design Your Website > CSS Forum

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Apr 23rd, 2008, 19:27   #1 (permalink)
Up'n'Coming Member
 
Join Date: Mar 2008
Location: Chester, UK
Age: 17
Posts: 87
Positioning differs in IE

The positioning for my Menu differs in IE, and i can't just seem to get it to be the same in both... i can improve it... but not make it exact... it's really bugging me.

Heres my css

Code: Select all
#topmenu {
    position: relative;
    height: 29px;
    width: 600px;
    padding: 15px;
    margin: -18px 0;
    overflow: hidden;
}
  
#topmenu ul {
    padding: 0px;
    margin: 0;
}

  
#topmenu ul li {
    float: left;
    list-style: none;
}

#topmenu ul li a {
    text-indent: -500em;
    z-index: 10;
    display: block;
    float: left;
    height: 30px;
    position: relative;
    overflow: hidden;
}

#home a {
    width: 54px;
    padding: 0px 15px 0px 15px;
    background: url('images/nav-links_03.png') no-repeat center !important;
    background: url('images/nav-links-ie_03.gif') no-repeat center;
}
  
#portfolio a {
    padding: 0px 15px 0px 15px;
    width: 84px;
    background: url('images/nav-links_05.png') no-repeat center !important;
    background: url('images/nav-links-ie_05.gif') no-repeat center;
}

#services a {
    padding: 0px 15px 0px 15px;
    width: 83px;
    background: url('images/nav-links_09.png') no-repeat center !important;
    background: url('images/nav-links-ie_09.gif') no-repeat center;
}

#about a {
    padding: 0px 15px 0px 15px;
    width: 57px;
    background: url('images/nav-links_07.png') no-repeat center !important;
    background: url('images/nav-links-ie_07.gif') no-repeat center;
}

#contact a {
    padding: 0px 15px 0px 15px;
    width: 76px;
    background: url('images/nav-links_11.png') no-repeat center !important;
    background: url('images/nav-links-ie_11.gif') no-repeat center;
}


#topmenu li.background {
    background: url('images/buttonmain_04.png') no-repeat top right !important;
    background: url('images/buttonmain_04.png') no-repeat top right;
    z-index: 8;
    position: absolute;
    visibility: hidden;
}

#topmenu .background .left {
    background: url('images/buttonmain_03.png') no-repeat top left !important;
    background: url('images/buttonmain_03.png') no-repeat top left;
    height: 24px;
    margin-right: 13px; 
}
Can anyone shed any light?

And i can't offer a live example atm sorry
Bocaj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 23rd, 2008, 19:29   #2 (permalink)
Chief Moderator
 
aso186's Avatar
 
Join Date: Oct 2007
Location: UK
Posts: 701
Blog Entries: 2
Send a message via Skype™ to aso186
Re: Positioning differs in IE

The HTML to go with it would help
__________________

aso186 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 23rd, 2008, 21:05   #3 (permalink)
Up'n'Coming Member
 
Join Date: Mar 2008
Location: Chester, UK
Age: 17
Posts: 87
Re: Positioning differs in IE

It's just an unordered list...

Code: Select all
 <div id="topmenu">
         <ul>
            <li class="current" id="home"><a href="#">Home</a></li>
            <li id="portfolio"><a href="#">Portfolio</a></li>
            <li id="services"><a href="#">Services</a></li>
            <li id="about"><a href="#">About</a></li>
            <li id="contact"><a href="#">Contact</a></li>
            <li class="background"><div class="left">&nbsp;</div></li>
        </ul>
    </div>
I'll try and get some screenshots...

It's about 13px higher in IE, if i lower it then it's too low in firefox.. i've tried to add extra padding in both the parent and the child anchors.... but to no avae... so i'm stumped...
Bocaj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 23rd, 2008, 21:16   #4 (permalink)
Up'n'Coming Member
 
Join Date: Mar 2008
Location: Chester, UK
Age: 17
Posts: 87
Re: Positioning differs in IE

i've managed to narrow it down to about a 3px difference =/

I think this is multiple contributing factors to the different placement in both browsers.

I removed the padding and the margin in #topmenu

Edit:

It's now down to about 1px with some adjustments to the div it was nested within.

Last edited by Bocaj; Apr 23rd, 2008 at 21:27.
Bocaj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 24th, 2008, 04:04   #5 (permalink)
Up'n'Coming Member
 
Join Date: Apr 2008
Location: Or-Yehuda, Israel
Age: 60
Posts: 87
Re: Positioning differs in IE

This is the source of your problem:
http://www.456bereastreet.com/archiv...css_box_model/

http://www.ilovejackdaniels.com/css/box-model/



Either avoid it or use the fix

Last edited by shalom_m; Apr 24th, 2008 at 04:06.
shalom_m is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 24th, 2008, 09:40   #6 (permalink)
Moderator
 
spinal007's Avatar
 
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,609
Blog Entries: 1
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
Re: Positioning differs in IE

I always use CSS hacks, but instead of w\idth, I use the * html selector hack.
__________________
Diego - SEO Consultant London (My Blog | Fight Me)
jQuery: Star Rating - Multiple File Upload - FCKEditor/Codepress
Before we work on artificial intelligence why don't we do something about natural stupidity?
spinal007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 24th, 2008, 18:59   #7 (permalink)
Up'n'Coming Member
 
Join Date: Mar 2008
Location: Chester, UK
Age: 17
Posts: 87
Re: Positioning differs in IE

Lol... umm k...

I will rethink this... i managed a quick fix using the <comment></comment> tags... obviously they don't validate though ¬.¬

Conditional commenting doesn't seem to work but the comment tags do... strange... one questions... does the IE tab in firefox differ from IE itself?

It uses the IE engine buuut does it have any alterations or inherit anything from the firefox application?

Thanks for the reading material... i've never really grasped how to sort these problems...

More help would be greatly appreciated
Bocaj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Positioning between <h3> konnor5092 CSS Forum 3 Sep 11th, 2007 22:37
A Better Way of Positioning ChrisTheSoul CSS Forum 10 Jul 27th, 2007 14:33
positioning with CSS Craigj1303 CSS Forum 8 Apr 24th, 2007 15:03
css positioning ivyholly CSS Forum 14 Dec 20th, 2005 18:43
div positioning benbacardi HTML Forum 10 May 24th, 2004 12:25



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 09:58.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59