Jump to content

Problem setting height in IE and button border


aaron118

Recommended Posts

I am having a problem with IE, I just can't figure out how to fix it. In firefox it [a href=\"http://img132.imageshack.us/img132/7467/firefoxprob1nw.gif\" target=\"_blank\"]looks ok[/a] apart from the fact the button won't go bellow the table (even though there are <br />) but in IE there are two problems [a href=\"http://img159.imageshack.us/img159/7830/ieproblem3ul.gif\" target=\"_blank\"]as you can see[/a]. The button has no border at the bottom of the button and the blue image background (members info and change your password) should be set to 25px in height, but in IE it doesn't use that height. Any ideas?

Here is my code html code for these tables:
[code]<center>
<div class='member_wrap'>
<form action='./password_proccess.php' method='post'>
<div class='member_left'>
        <table class='main_table_members' cellpadding='0' cellspacing='1'>
        <tr>
        <td width='100%' class='table_top'>Members Info</td>
        </tr>
        <tr>
        <td class='column1' width='100%'><b>Welcome John Smith</b><br /><br />
        • <a href='/customers/help.php'>Help Page</a><br />
        • <a href='/customers/support.php'>Contact Support</a><br />
        • <a href='/customers/order.php'>Products</a><br />
        • <a href='/customers/email_edit.php'>Change my email</a><br />
        • <a href='/customers/password_edit.php'>Change my password</a><br />
        • <a href='/customers/logout.php'>Logout</a></td>
        </tr>
        </table>
</div>
<div class='member_right'>
        <table class='main_table_members' cellpadding='0' cellspacing='1'>
        <tr>
        <td width='100%' colspan='2' class='table_top'>Change Your Password</td>
        </tr>
        <tr>
        <td class='column1' width='50%' valign='top'><b>Your new password:</b></td>
        <td class='column2' width='50%' valign='top'><input type='password' name='password_edit' /></td>
        </tr>
        <tr>
        <td class='column1' width='50%' valign='top'><b>Confirm your current password:</b></td>
        <td class='column2' width='50%' valign='top'><input type='password' name='password_edit2' /></td>
        </tr>
        <tr>
        <td class='column1' width='50%' valign='top'><b>Confirm your current password:</b></td>
        <td class='column2' width='50%' valign='top'><input type='password' name='password_confirm' /></td>
        </tr>
        </table>
</div>
<br /><br /><input type="submit" value="Save Changes" />
</form>
</div>
</center>[/code]

Here is the css used:
[code].member_wrap {
    width: 98%;
    text-align: center;
}

.member_left {
    float: left;
    width: 28%;
    /*height: 100%;*/
    text-align: center;
}

.member_right {
    float: right;
    border: 0;
    width: 71%;
    text-align: left;
}

.main_table_members {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 200px;
    background-color: #FFFFFF;
    border: 1px solid #000000;
}

.table_top {
    margin: 0;
    padding: 5px;
    height: 25px;
    text-align: center;
    background: #175299 url("/images/top_bg.gif");
    color: #FFFFFF;
    font-weight: bold;
    border: 0;
}

.column1 {
    margin: 0;
    padding: 5px;
    text-align: left;
    background-color: #dbdbdb;
    border: 0;
    vertical-align: top;
}

.column2 {
    margin: 0;
    padding: 5px;
    text-align: left;
    background-color: #cbcbcb;
    border: 0;
}

.column3 {
    margin: 0;
    padding: 5px;
    text-align: left;
    background-color: #e3e3e3;
    border: 0;
}[/code]

Thanks
Link to comment
Share on other sites

I don't see any style for the button in the code you posted, but IE will hide the border if the inside content is a tiny bigger than the actuall container.

You can fix it by removing the height of the button and just setting the padding-top and padding-bottom.

Also, you need to clear the floated layers before the button
[code]
.clear_div {font-size:1px;
     overflow:hidden;
     clear:both;}
[/code]
[code]
</div>
<div class="clear_div">&nbsp;</div>
<input type="submit" value="Save Changes" class="button" />
[/code]
This should fix the firefox issue
Link to comment
Share on other sites

I cannot find your button style in the code you posted, so I cannot really find the bug. Just a random guess,

Try to remove the height out of the style, and add padding to the top and bottom.

If you can post the style for the button, I may find the bug.
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.