Closed Thread Icon

Preserved Topic: real quicky (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8653" title="Pages that link to Preserved Topic: real quicky (Page 1 of 1)" rel="nofollow" >Preserved Topic: real quicky <span class="small">(Page 1 of 1)</span>\

 
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