change background in div

Giganews Newsgroups
Subject: change background in div
Posted by:  Cezary (cezar…@imail.net.pl)
Date: Sat, 15 May 2004

Hello.

I have this code below and want to change background, but this works only in
IE5.x. Why ?

<div onmouseover="this.className='change'" onmouseout="this.className=''"
style="width:100%;display:inline" class="txt11 nopad">

<div style="width:5%">....</div>
<div style="width:43%">....</div>
....
</div>

= css =
..txt11 {font-size:11px}
..nopad { padding:0; margin:0}
..change {border-top:1px solid gray; border-bottom:1px solid gray;
border-left:1px solid gray; border-right:1px solid gray; background:#eeeeee}

Any suggestions appreciated.

Greets,
Cezary

Replies