HTML/CSS - small misalignment in chrome

Posted on 2012-07-19
Last Modified: 2012-07-19
Hi all,

On my homepage there should be a margin between the navigation bar and the 'client access' table.

In Chrome, the margin does not show. It works fine in IE. Screenshot: Screenshot
Can anyone identify the issue causing this in chrome?

Website link:

Thank you
Question by:mhdi
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 25

Expert Comment

by:Kyle Hamilton
ID: 38205078
add margin top:

.twoColLiqLtHdr #mainContent {
margin: 15px 15px 0 4px;

twoColLiqLtHdr.css, line 289
LVL 83

Expert Comment

by:Dave Baldwin
ID: 38205082
Works fine in Firefox and Chrome here.

Author Comment

ID: 38205089
@kozaiwaniec - Adding the margin pushes it down in IE making Chrome ok but IE too low.

@DaveBaldwin - Not sure why you cant see the issue, I can replicate the problem on multiple computers.
LVL 25

Accepted Solution

Kyle Hamilton earned 500 total points
ID: 38205113
.twoColLiqLtHdr #mainContent {
margin: 0 15px 0 4px;
padding-top: 15px;

In your index.html file, you have a conditional for IE, which specifies padding-top:15px, and that's why IE gets the padding.

You can take it out of the conditional, and apply globally in your main style file.

Play around with it. You could take the padding out completely, and apply margin instead.. dime a dozen..

Author Comment

ID: 38205148
Perfect. Thank you.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question