Adding borders på pictures?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
Rulle
Forum Members
Forum Members
Posts: 29
Joined: Wed Feb 28, 2007 12:33 pm

Adding borders på pictures?

Post by Rulle »

Hello you all.

Isn't it possible to set borders on all images in the stylesheet?  So i dont have to make it on each picture on all pages.. I use Left sidebar + colum, and in the top of that stylesheet is says this:

Code: Select all

/*
if img is inside "a" it would have 
borders, we don't want that
*/
img {
   border: 0;
}
I have tried to put it like this:

Code: Select all

/*
if img is inside "a" it would have 
borders, we don't want that
*/
img {
   border: 1px black;
}
But theres still no border...
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: Adding borders på pictures?

Post by Nullig »

Have you tried:

border: 1px solid black;

Also, are there other stylesheets associated with the template that have img styles that override this entry?

Nullig
Rulle
Forum Members
Forum Members
Posts: 29
Joined: Wed Feb 28, 2007 12:33 pm

Re: Adding borders på pictures?

Post by Rulle »

Ahh that "solid" did the job....

But that brought a new problem up i havent thought of; now there is offcourse also a border around som og the small .gif icons i use. For an example  an icon for a movieclip.

Is there a way to exclude some images, like .gif?
Post Reply

Return to “Layout and Design (CSS & HTML)”