[UPHPU] javascript access to border-bottom

Jeremy Burgess jeremy at edgecast.net
Wed Oct 20 22:29:47 MDT 2004

The answer you've been waiting for:

document.getElementById('divname').style.borderBottom = '0px'

Jeremy Burgess
Edgecast Web Solutions
jeremy at edgecast.net

Wade Preston Shearer wrote:

>> Wade I'm sorry that I don't have the answer your looking for 
>> specifically
>> but you can remove the border from the bottom by using CSS and 
>> perhaps you knew that.
>>     border-bottom-width: 0px;
> Yes, I am aware of how to specify the width of just the bottom border 
> with the above CSS property. My desire is to remove the bottom border 
> when an image is clicked (via javascript).
> View the source on this example...
>     http://anavidesign.com/temp/border.html
> ...and you will see that removing all of the borders is fairly simple, 
> using the call...
>     document.getElementById(div).style.border = "0px";
> I just can't figure out how to remove the bottom border only.

More information about the UPHPU mailing list