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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Div in Netscape 3

Status
Not open for further replies.

ksoong

Programmer
Oct 3, 2000
57
CA
Sigh. I try to make Div work in netscape and it does up until a certain point and then it dies. and then i tried to do the same in layers but I'm not sure if IE will support <layer> so.... i tried to output dynamic tags using javascript and browser detection. that worked for about a week and then it just suddenly died for netscape and i have no idea why.

does anybody have any tips on div and layer? can i use layer in IE? or is it only for netscape?

thanks,

ken
 
<layer> is a Netscape 4.x only tag. It will not even work with Netscape 6. Basically, it's best to stay away from <layer>.

<DIV> tags are no problem with Netscape4.x, as long as you know exactly what STYLE attributes Netscape will accept. IE let's you get away with a somewhat &quot;sloppy&quot; approach sometimes--in fact it will even let you get away with missing a closing </DIV> tag sometimes.

I have found that one of the best ways to find out what <DIV> attributes are best supported by both Netscape and IE, is to play with Dreamweaver a bit, and examine it's HTML output. Dreamweaver does a pretty good job of handling cross-browser <DIV> layers.

Failing that, why not post some of your code here, and we'll examine it?
 
hi,
i heard that <div> is a ie only tag...is that not true?? does netscape also support it???

and then.....whatz the basic difference between a <span> tag and a <div> tag..what each one can and can't do???

 
The main difference between <span> and <div> is that <span> is an inline object, and <div> is a block object. You will always get a break after a </div>, but not after a </span>. NN 4.7 appears to support <div> OK, but not all style attributes work as well as they do in IE. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
hi,
tsdragon that one was quite useful post....but er..what is the main difference between an inline and a block element
does only a break after the tag ends is a difference??
 
There are other differences between inline and block elements too. I'm not sure I know all of them. The basic difference is that inline elements have to flow along with the other contents around them. They can be different fonts, sizes, colors, etc. as long as they still fit &quot;inline&quot; with what's around them. Block elements can be treated as entirely separate entities, and you can do a lot more with them: alignment, wrapping, borders, and that sort of thing. Think of inline elements as phrases in a sentence, or sentences in a paragraph, and block elements as entire paragraphs, tables, images, boxes, etc. Note also that block elements can contain other block elements as well as inline elements, but inline elements can contain only other inline elements, not block elements.
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
hi,
thanx for that dragon.......that onez nice...wat are the other inline and block elements in html???

Regards,
R.Subramanian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top