faqts : Computers : Internet : Web : CSS

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 12 people (42%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

Why links lose their style options when they are nested in two level of layers using DIV tag in NN4?

Nov 21st, 2001 11:38
John Lawler, Ben Gordon, Dani C,


I not sure what kind of problem you are having as I am unable to find 
anything that shows that error.  The below code should create 3 links 
all red with no underline in either browser and is an example of 3 
levels of nested <div>'s  I found no such error as described in any of 
the browsers I tested this on  (all PC versions, no Mac's here ;-)  )
<html>
<head><title>Untitled</title>
<style>
a {color:red; text-decoration: none;}
</style>
</head>
<body>
<div><a href="null">text here</a>
<div><a href="null">text here</a>
<div><a href="null">text here</a></div></div></div>
</body>
</html>
Actually I am having the same problem when using EXTERNAL style sheets. 
Using inline styles kinda defeats the purpose, so I'm searching for a 
way to pass the external declarations to the nested layers...