Border around images but NOT Site Logo


(Karl Bundy) #1

I have added the following CSS code that gives a nice border around my images.

img {
padding:0px;
border:0px solid #021a40;
}

However the downside to this is that it added a border around the Site Logo also. I want the Site logo to not have a border is this possible?

Thanks


(Doug Bennett) #2

The answer is probably Yes.

URL’s when asking for custom CSS makes it easy for people to help you out.


(Karl Bundy) #3

Teefers.

Here is the URL https://jehallett.co.uk

As you can see from the link the Logo (Top Left - CIAT) has a border around it. This is replicated on every page as I put the CSS code above in the “Settings/Code” section


(Rob Beattie) #4

There’s almost certainly a proper way to do it, but this works.

.navbar .navbar-brand img {
    display: inline-block;
    border: white;
}

(Karl Bundy) #5

Yes that works, many thanks


(system) #6

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.