RE: Putting a Border on Images
paulm2003 <[email protected]> 27 Aug 2003 23:20:10 -0000
| Newsgroups | gmane.comp.web.oscommerce.tips |
|---|---|
| Message-ID | <62907de533f4eb143ed1a0dfd451884c@osCommerce-Forums> |
This message was sent from: Tips and Tricks
http://forums.oscommerce.com/viewtopic.php?p=220688#220688
----------------------------------------------------------------
This suggested style sheet settings:
[quote]
.fotgal {border:2px; border-thickness: 2px; border-color: #ffffff;
border-style: solid;}
A:hover .fotgal, A:active .fotgal {border:2px; border-thickness: 2px;
border-color: purple; border-style: solid}
[/quote]
can be replaced with this:
[quote]
.fotgal {border:2px #fff solid;}
A:hover .fotgal, A:active .fotgal {border:2px purple solid;}
[/quote]
does the same, only shorter
And if osCommerce is well programmed, only one or two lines in the stylesheet is enough, no other codechanges needed.
something like:
img {border:2px #fff solid;}
The images do need to have a class or be in a class to distinct the image from other images (= well programmed) .