Jump to content

Height problem with IE


ayok

Recommended Posts

Hello,

Back with another problem.. ;D

 

I have problem with a height in IE. I've got this css:

#navigation{
     height:41px;
}

<tr><td id="navigation">Home | about us | etc</td></tr>

This height is the same height with the next cell of a table. I have no problem with other browser, but in IE the height is expanded to 10px (51px). How could this happen? How can I fix it?

 

Thank you for your time.

 

ayok

Link to comment
Share on other sites

dont use tables, use a div. try this. its not tested but its along the right lines.. i hope..

 

html:

<div class="navigation">Home | About | Etc</div>

 

css:

div.navigation {
text-align: center;
width: 100%;
posistion: relative;

Link to comment
Share on other sites

If I understand you correctly, IE's child element of the cell in the table, is getting an extra 10px. And also if you use 2 ids with the same name on the same page, it will be invalid. I wouldn't suggest using tables as layout.

 

You are the subject of inheritance.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.