Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-24-2011, 03:35 PM   PM User | #1
xpdesigns
New Coder

 
Join Date: May 2011
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
xpdesigns is an unknown quantity at this point
IE7 margin issue

I was hoping to get some advice on a issue I am only seeing In IE7. I needed to create a new menu for this particular website so I used position:absolute within the header DIV. Basically what is happening is that this absolute positioned div is being pushed outside of the sites main wrapper.



Please take a look at the top navigation on http://www.shapesbrowbar.com

Thank you in advance
xpdesigns is offline   Reply With Quote
Old 11-24-2011, 03:44 PM   PM User | #2
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,812
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
Have a try with:

Code:
#header {
    background-color: #313131;
    height: 95px;
    padding: 0;
    width: 960px;
   position:relative
}

#top-nav {
    color: #FFFFFF;
    font-family: arial;
    font-size: 13px;
    /*margin-left: 470px;*/
    margin-top: 13px;
    position: absolute;
    right: 43px;
}
Setting position:relative on #header sets the starting point for the absolute positioning consistently for all browsers.
SB65 is offline   Reply With Quote
Users who have thanked SB65 for this post:
xpdesigns (12-02-2011)
Old 12-02-2011, 09:07 AM   PM User | #3
xpdesigns
New Coder

 
Join Date: May 2011
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
xpdesigns is an unknown quantity at this point
Thank you so much for this code.. It seems to work great for the top menu I created.. For some reason it is still however breaking my social-media roll over div that is positioned to the right of the top-nav..

It works fine in everything but IE7

shapesbrowbar.com

Thank you again for any advice
xpdesigns is offline   Reply With Quote
Reply

Bookmarks

Tags
html, ie7

Jump To Top of Thread


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

Forum Jump


All times are GMT +1. The time now is 02:17 AM.


Advertisement
Log in to turn off these ads.