Closed Thread Icon

Preserved Topic: real quicky Pages that link to <a href="https://ozoneasylum.com/backlink?for=8653" title="Pages that link to Preserved Topic: real quicky" rel="nofollow" >Preserved Topic: real quicky\

 
Author Thread
quisja
Paranoid (IV) Inmate

From: everywhere
Insane since: Jun 2002

posted posted 05-15-2003 10:26

I've tried googling already, but no luck. How can I access the "color" property of the border of a div I have?

smonkey
Paranoid (IV) Inmate

From: Northumberland, England
Insane since: Apr 2003

posted posted 05-15-2003 15:35

var YourDiv = document.getElementById('Div');
YourDiv.style.borderColor = '#000000';

I think that's it (most css things that use hyphens just get the hyphens removed and the first letter of the second word capitalised)

I hope that's what you wanted, if not just do a google search on 'bordercolor' (run together) and it will bring up useful resources.

[This message has been edited by smonkey (edited 05-15-2003).]

« BackwardsOnwards »

Show Forum Drop Down Menu