![]() |
how do i do this? css question
a img {
border:none;} that's in the style sheet but there's ONE clickable image I want to have a border - nothing i've tried works. thanks |
Quote:
Quote:
|
try this:
img.border {border:1px solid #000;} <a href="#"><img src="image.jpg" class="border" /></a> |
Quote:
|
set a class for the ones you want with a border
|
Quote:
|
Quote:
|
Quote:
i went a pic{ border: 3px; color: #FFF; } then class="pic" on the image didn't work, did i do it wrong? i fixed it by taking out the a img {border: none} - and put border: none on the id's that needed them and that let me add my border style to the image i wanted to have the border on. |
Quote:
a .pic |
img.pic
a .pic a img.pic a.pic img should all work. depending on where you set your class. i would set the class in the image, and use the first line. |
You may want to make the style name more self-explanatory .. such as
.picnoborder to differentiate from the ones that do. |
| All times are GMT -7. The time now is 03:23 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123