Hi guys I am new to this forum and this is my first post. My background is development but I’m familiar with CSS, HTML etc.
Currently I am having an issue with alignment of a DIV on web page. On IE8 it seems to display fine, but on IE7 it doesn’t. The code is below. The red line (div) should be in the same place when it viewed from IE7 and IE8 (I’m not taking into account other browsers such as Chrome, Firefox, Safari etc).
I really can’t think what the issue could be, I mean the code below is the page massively stripped down to its basics.
Note: The DIV has to be positioned absolute as it tells the current time of day.
Im running this page on IE7 on Windows XP SP3 and Windows 7 Enterpise SP1, not sure if that makes a difference.
Can anyone advise me on this or give me an example to get this to work correctly.
<html>
<head>
<title>test</title>
<style type="text/css">
.diaryTimeLine
{
position:absolute;/*margin-left: -28px;*/
left:600px; //313
top:0px;
height:426px;
background-color: Red;
width: 1px;
}
</style>
</head>
<body style=“margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px”>
<div class=“diaryTimeLine” id=“timeline”> </div>
<table width=“100%” cellspacing=“1” border=“1” >
<tr>
<td>07</td>
<td>08</td>
<td>09</td>
<td>10</td>
<td>11</td>
<td>12</td>
<td>13</td>
<td>14</td>
<td>15</td>
<td>16</td>
<td>17</td>
<td>18</td>
<td>19</td>
<td>20</td>
<td >21</td>
<td>22</td>
<td>23</td>
</tr>
</table>
</body>
</html>