|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
It does it in Opera 7 and Mozilla 1.3 as well, if that's any help.
|
|
#2
|
|||
|
|||
|
CSS differences between IE and NN
Please take a look at the following page:
http://sole.demonhosting.co.uk/devshed/page.html If you view it in IE, everything looks fine (more specifically the "bulleted list" section). If you view the same page in NN6 (It doesn't really work in NN4/5!) the "bulleted list" section displays wider than the width of the page. Here's the CSS and html for that bit of the page: Code:
#fab {
position: relative;
margin: 30px 149px 10px 125px;
width: 100%;
border: dashed 1px;
}
<div id="fab" align="center">
<table width="100%">
<tr>
<td valign="top">
<p>
<span class="paraheading">Features</span><br>
<span class="fabbullet">::</span> ±0.05% accuracy<br>
<span class="fabbullet">::</span> 40:1 rangeability<br>
<span class="fabbullet">::</span> Wetted parts in various materials<br>
<span class="fabbullet">::</span> Digital communications protocol<br>
<span class="fabbullet">::</span> Flanged and chemical seal versions<br>
<span class="fabbullet">::</span> Integral PID controller<br>
<span class="fabbullet">::</span> EExia and Exd certification<br>
<span class="fabbullet">::</span> 6 year warranty option
</p>
</td>
<td valign="top">
<p>
<span class="paraheading">Applications</span><br>
<span class="fabbullet">::</span> Oil/gas production<br>
<span class="fabbullet">::</span> Chemical plants<br>
<span class="fabbullet">::</span> Water & sludge treatment plants<br>
<span class="fabbullet">::</span> Viscous or dirty fluids<br>
<span class="fabbullet">::</span> Food and drink production<br>
<span class="fabbullet">::</span> Power industry
</p>
</td>
<td valign="top">
<p>
<span class="paraheading">Benefits</span><br>
<span class="fabbullet">::</span> Low installation costs<br>
<span class="fabbullet">::</span> Low cost of ownership<br>
<span class="fabbullet">::</span> Remote calibration<br>
<span class="fabbullet">::</span> Simple and minimal maintenance
</p>
</td>
</tr>
</table>
</div>
My question is this...Can anyone give me a clue as to why the code seems to look "OK" in IE, but not in NN? Does NN treat width: 100% differently to the way that IE does? Cheers Alex. |
|
#3
|
|||
|
|||
|
Yeah, NN treats it correctly. IE doesn't unless you trigger strict mode. Include an HTML 4.01 or XHTML doctype and they should look about the same.
|
|
#4
|
|||
|
|||
|
I must be having a stupid day today...I still need the DIV to stop 149px from the right hand side of the page, regardless of content...
It seems to do it in IE, but not in the others, so can anyone suggest how I should alter my code? Many thanks. AB ![]() |
|
#5
|
||||
|
||||
|
take away the width:100% from #fab
and it will work and by the way, remember to set a background color to the body, not every uses white as default. |
|
#6
|
|||
|
|||
|
Cheer Akh (and all!)
I changed #fab to width: auto; and removed the width=100% from the table code. Then I set the width of the 3 cells in the table to 33% each and it works just cool now. Cheers all. Thread closed. ![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS differences between IE and NN |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|