Having an issue with alignment in an ASP page. Here is the specific line of code:
<td style="height: 50px; background-color: #ffffe0; text-align: center; ">
This code aligns text correctly in IE, but not in FF and chrome where it appears on the left. I tried changing it to
<td style="height: 50px; background-color: #ffffe0; text-align: -moz-center; ">
Now it works in FF but fails in IE and chrome. Any solutions for this problem?
UPDATED:
The table structure in question looks like this,
<table style="width: 900px; height: 500px; background-color: gray;">
<tbody>
<tr>
<td style="height: 70px; vertical-align: middle; background-color: #fffff0; text-align: center !important; width: 160px;">
<div id="abc" style="height:40px;width:80px;text-align: center !important ;left: 0px; position: relative; top: 0px" onscroll="JavaScript:document.getElementById(somejavascrpt)'">
<input id="button" type="image" style="height:40px;width:60px;border-width:0px;z-index: 104; left: 4px; text-align: center !important position: absolute; top: 2px" src="../images/help.png" name="help">
</div>
</td>