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

Q&A

Q1:The <div> and <span> tags are described as implementing CSS layers. I thought that CSS, or cascading style sheets, had to do with text. Am I right?
A1: The CSS standard does define many attributes for manipulating text. But it also defines "box elements," which are what layers are. This might make more sense to you after you have completed the next hour on Cascading Style Sheets. You'll see the different attributes of box elements, or layers, that we will be able to set up in a style and how powerful that capability is.
Q2:Is there any way I can design my site with layers that are cross-browser compatible, yet still take advantage of some of the extra attributes that the <layer> tag gives me in Netscape Navigator and the <div> tag gives me in Internet Explorer?
A2: The only way to use both tags in the same page is to create your page twice, once with the <layer> tag and once with the <div> tag, and use the Check Browser behavior to send your viewers to one page or the other. Trying to create and maintain a Web site that uses both tags in layers will be a lot of work.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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