SunQuest
           CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 18th, 2003, 10:54 AM
toofan toofan is offline
:: cerebralshock ::
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Everywhere & nowhere.
Posts: 133 toofan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 19 sec
Reputation Power: 6
It does it in Opera 7 and Mozilla 1.3 as well, if that's any help.

Reply With Quote
  #2  
Old June 18th, 2003, 11:01 AM
abuckingham abuckingham is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: High Wycombe, UK
Posts: 44 abuckingham User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
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.

Reply With Quote
  #3  
Old June 18th, 2003, 11:31 AM
jkd jkd is offline
CF sMod
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Maine, USA (a.k.a. Boonies)
Posts: 242 jkd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 43 sec
Reputation Power: 9
Send a message via ICQ to jkd Send a message via AIM to jkd Send a message via Yahoo to jkd
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.

Reply With Quote
  #4  
Old June 19th, 2003, 03:16 AM
abuckingham abuckingham is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: High Wycombe, UK
Posts: 44 abuckingham User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
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

Reply With Quote
  #5  
Old June 19th, 2003, 06:11 AM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 2,622 Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 2 h 20 m 44 sec
Reputation Power: 548
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.

Reply With Quote
  #6  
Old June 19th, 2003, 10:21 AM
abuckingham abuckingham is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: High Wycombe, UK
Posts: 44 abuckingham User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS differences between IE and NN


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway