Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stylesheets width/height IE vs Netscape 1

Status
Not open for further replies.

4x4uk

Technical User
Apr 30, 2002
381
GB
I have the following
<div style=&quot;position:absolute;
left:0px; top:0px;
border-style: groove;border-width:2px;
margin:2px;padding: 4px; z-index:1&quot;>
Text Text text
</div>

This works fine for IE, Netscape/mozilla and Pheonix browsers. However as soon as I specify a width or height attribute ther is a difference in the displayed width or height between IE and mozilla based browsers.
Anyone know a way around this?
Thanks
Ian Infinity exists! - I just haven't worked out a way to get there yet.

| |
 
The margin:2px; is what's causing the problem. Try this:

<div style=&quot;position:absolute; left:0px; top:0px; border-style: groove;border-width:2px; margin:2px;padding: 4px; z-index:1&quot;>Text Text text</div>

Rick
-----------------------------------------------------------
RISTMO Designs
Arab Church
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top