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?

7 of 8 people (88%) answered Yes
Recently 7 of 8 people (88%) answered Yes

Entry

Can a div tag with a style attribute have a bordercolor property? Can someone please give an example

Feb 25th, 2003 04:07
Klaus Bolwin, dan brown,


try this in Mozilla, it will work:
div[style] {border:1px solid red;}
then, the divs containing a style-attribute will show a red solid border.
The test in MSIE failes, however you can set the CSS directive into the
style-attribute, this will work in MSIE and Mozilla.