Entry
How do I stop IE from creating border full width of page, rather than around the text like NN
Feb 26th, 2001 06:48
Ben Gordon, Giles McGarry, http://www.w3.org/Style/CSS/
You can control the width of the border in both IE & NS by using the
margin property, you will have to add a right to the element in question
some thing like this
<html>
<head><title>Border & Margin Test</title>
<style>
h1 {border: 1px solid black; margin-right: 75%;}
</style>
</head>
<body>
<h1>Your Text Here</h1>
</body>
</html>
conversely you can make NS display the border properly (as the way IE
displays the border is the correct way in accordance with WC3) by
adding margin: none; to your style.