Border around image

6 years 4 months ago #5354 by Hansosch
Hi,

How do i get a border around the images?
border: medium solid #003300

i have tried this :
div class="random_image_extended">
<a class="tooltip" style="border: medium solid #003300;" rel="shadowbox[random]" title="img_0013" href="/jo/images/omgeving/img_0013.jpg">
<img width="200" height="150" alt="img_0013.jpg" src="/jo/images/omgeving/img_0013.jpg">
</a>
</div>

but it dont work.
i hope you can help.

greets Hans

6 years 4 months ago #5358 by Vitja
Hi!

Try to give the img-tag the style sheet instructions, not the a-tag.

Have success!

Kubik-Rubik Joomla! Extensions

Please support my work with a review in the Joomla! Extensions Directory: extensions.joomla.org/profile/profile/details/61997
6 years 3 months ago #5727 by Hansosch
Where can i find that?
6 years 3 months ago #5729 by Vitja
Use the css file!

.random_image_extended img{.....}

..... -> your style instructions.

Add to the css file of the module or your template.

Regards

Kubik-Rubik Joomla! Extensions

Please support my work with a review in the Joomla! Extensions Directory: extensions.joomla.org/profile/profile/details/61997
6 years 3 months ago - 6 years 3 months ago #5733 by Hansosch
Do you have an example, where can I change this? the Class?

<img class =" imgborder " src ="....." />

If I change my theme then have all the pictures a border, and I do not want.
6 years 3 months ago #5740 by Vitja
Why do you want to edit the html code? You don't need to add the class to the img tag if you need my selector code:

.random_image_extended img{...} -> only images in the random_image_extended class are addressed!

Have success!

Kubik-Rubik Joomla! Extensions

Please support my work with a review in the Joomla! Extensions Directory: extensions.joomla.org/profile/profile/details/61997
Time to create page: 0.166 seconds