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!

alter background-color of a div on the fly

Status
Not open for further replies.

MatthewP

Programmer
Jan 16, 2001
176
GB
Hi,

How can I change the background color of a div in IE? I thought it was document.all myDiv.style.background-color='blue' but it's not working.

Thanks,
Matt.
 
backgroundColor
or background
-- go to w3c site they have what you need : complete ref of css !!
 
Thanks - Looks like I forgot that strange 'hyphen in the style, not in the script' rule...

Cheers,
Matt.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top