• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Introducing CSS > Styles and Spans

Styles and Spans

The <DIV> tag is very useful, but it has a sometimes unpleasant side effect: it forces a line break before and after the tag. Sometimes you want to have a style apply to just a part of the text, not to an entire block. In this case, you want to use the <SPAN> tag instead, as shown in Script 11.6, Figure 11.7, and Figure 11.8.

Figure 11.7. Internet Explorer 5.x and Netscape 6 will display SPAN tags correctly.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint