Let's color behind a header element and move it to the right margin by setting the MARGIN-LEFT property.
<h2 style="background:red;margin-left:2.5in;">
here is some text
</h2>
| we see in NN4.7: | we see in IE5.0 and NN6.0: |
![]() |
![]() |
The representations are familiar. We know that IE5.0 will color all the way to the right margin, and NN4.7 will only color directly behind the text of the header element.
Let's set the WIDTH property so that we can try to get IE5.0 to approach NN's rendering.
<h2 style="background:red;width:3.0in;
margin-left:2.5in;">
here is some text
</h2>
| we see in NN4.7: | we see in IE5.0 and NN6.0: |
![]() |
![]() |
NN4.7 has found a limit to the distance it will move header text over to the right when a WIDTH property is used. NN4.7 wraps the text because the width of the header element has been shortened by NN4.7.
We already know that NN4.7 will not properly display the header element if we apply a BORDER-WIDTH property to the style. See Coloring Text Backgrounds: Boxing a Header.
| resources | |
| Four Corners Effective Banners | This site is dedicated to the study of all things banner-like, including: banners, click-through ratios, banner advertising, banner link exchanging, etc. You'll learn how to improve your banners and increase your site traffic. |
| Free Site Tools | A webmaster's directory of free resources to help find about everything to build, maintain and promote your website. 1000+ Resources. |
| Free Webmaster Tools and Resources | Your center for absolutely free high quality webmaster resources and tools to manage your web site. All utilities, programs and sites are carefully selected. |
| EZSearches.com | Want access to free email, auctions, shopping bargains and more? Try EZSearches.com |
| Akron Computer Repair | A great computer repair company that does in-home visits or drop-off. |
| Cool Candle Shoppe | Candles Place is a great site that if you're looking to purchase some great wax sticks, I'd go here. |