Image Borders - Post ID 234151

User 2924428 Photo


Registered User
1,718 posts

Hey guys, i'm having a problem with .img borders conflicting.. I tried to ID and class differently than ".img", but it's still boxing out the images I don't want it to.

http://www.offthewallattic.com
User 187934 Photo


Senior Advisor
20,271 posts

What exactly are you trying to do Matt. Your being to vague.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 271657 Photo


Ambassador
3,816 posts

Matt, are you trying to put a border on just one or a few things, but not on everything? If so....
(If you use a re-set file, it probably specifies no borders)
Start with some CSS for your images over-all:
img {
styles: here;
border: none;
}
Then create a class (use a class instead of an ID in case you need it on more than one item) for images and/or DIVs with borders:
.withborders
styles: here;
border: 2px #000 solid;
}

<img class="withborders" src="your-image.jpg" >
You can also set rounded corners and/or shadows in your CSS under the border rule.
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 2924428 Photo


Registered User
1,718 posts

Ok i'll try it out using an ID, I think i've been missing some of the key points in my code

I'm going to check it out now and do some testing
User 271657 Photo


Ambassador
3,816 posts

Try using a class first ;)
If you get it working the way you want, you can use it on any image or DIV, if you use an ID, it's only good for one element per page.
Let us know how it goes.
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 2924428 Photo


Registered User
1,718 posts

It's going good.. I got the borders fixed up, just need to work on some of my things I have for sale now.

User 122279 Photo


Senior Advisor
14,633 posts
Online Now

Off-topic:
The large text box needs some padding-left.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.