#1
  1. No Profile Picture
    :: cerebralshock ::
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    Everywhere & nowhere.
    Posts
    133
    Rep Power
    12
    It does it in Opera 7 and Mozilla 1.3 as well, if that's any help.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    High Wycombe, UK
    Posts
    44
    Rep Power
    12

    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.
  4. #3
  5. No Profile Picture
    CF sMod
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Maine, USA (a.k.a. Boonies)
    Posts
    242
    Rep Power
    15
    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.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    High Wycombe, UK
    Posts
    44
    Rep Power
    12
    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
  8. #5
  9. |<.+#f@#+.&.|
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Mar 2002
    Location
    norway
    Posts
    3,009
    Rep Power
    1224
    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.
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    High Wycombe, UK
    Posts
    44
    Rep Power
    12
    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.

IMN logo majestic logo threadwatch logo seochat tools logo