Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3853566
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:29:20+00:00 2026-05-19T17:29:20+00:00

I have some pretty simple html which is meant to make a layout as

  • 0

I have some pretty simple html
which is meant to make a layout as below.

To push the tabs down from the userbar I am using
margin-top: 35px;
However in internet explorer the tabs are completly misaligned(the top of the tabs is where the bottom should be).

So I need to use margin-top: -50px; for internet explorer.

Why is this and how can I fix it without using a ie specific stylesheet

layout example http://webspirited.com/layout.png

<div id="pageHead">
  <div id="userBar">
    <span class="bold">Hi Matthew Hailwood | <a href="#">Logout</a>
  </div>
  <a href="http://localhost/buzz/" id="pageLogo"></a>  
  <div id="pageTabs" class="clearfix">
    <ul>
      <li><a href="http://localhost/buzzil/templates">Templates</a></li>
      <li><a href="http://localhost/buzzil/messaging">Messaging</a></li>
      <li><a href="http://localhost/buzzil/contacts">Contacts</a></li>
    </ul>
  </div>
</div>

With the css being

#pageHead {
    height: 100px;
}

#pageLogo {
    float: left;
    width: 149px;
    height: 77px;
    margin-top: 11px;
    background: transparent url('../images/logo.png') no-repeat;
}

#userBar {
    text-align: right;
    color: #fff;
    margin-top: 10px;
}

#userBar a:link,
#userBar a:visited,
#userBar a:active {
    font-weight: normal;
    color: #E0B343;
    text-decoration: none;
}

.clearfix:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

.clearfix {
    display: inline-block;
}

html[xmlns] .clearfix {
    display: block;
}

* html .clearfix {
    height: 1%;
}

#pageTabs {
    float: right;
    margin-top: 35px;
}

#pageTabs ul {
    position: relative;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid #000;
}

#pageTabs ul li {
    float: right;
    background: url(../images/tabsBg.png) no-repeat 0% 0%;
    border-left: 1px solid #000;
    margin-left: -1px;
}

#pageTabs ul li a:link,
#pageTabs ul li a:visited,
#pageTabs ul li a:active {
    color: #fff;
    background: url(../images/tabsBg.png) no-repeat 100% 0%;
    display: block;
    font-size: 14px;
    font-weight: bold;
    line-height: 42px;
    text-transform: uppercase;
    padding: 4px 32px;
    text-decoration: none;
}

#pageTabs ul li a:hover,
#pageTabs ul li a:focus {
    text-decoration: underline;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T17:29:21+00:00Added an answer on May 19, 2026 at 5:29 pm

    IE does not like negative margins, it tends to have discrepancies. Try using position instead, along with left, right, top and bottom – it’s more compatible, from personal experience.

    You may just be able to convert your whole page from margins to positioning with minor tweaks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some pretty simple HTML and CSS that doesn't work in Internet Explorer
These are probably are pretty simple YES|NO type questions. I have some NSDictionaries containing
I have a pretty simple UIScrollView defined inside Interface Builder. I've pasted in some
Pretty simple question. I have a few ASP RequiredFieldValdators checking some text boxes. Out
I have a pretty simple image switcher, which I use for manual images switcher
Should be pretty simple question here. I have @Html.EditorFor(model=>model.Training) I dont want to show
I've made some pretty checkboxes using some pretty simple jQuery HTML <span class=iconElement checkBox
I've got a pretty simple page which fetches a url and parse some data.
I have some pretty basic Javascript here which works just fine in Firefox but
I have a simple html text-box hooked up to a .keypress(funcion(){...} which makes a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.