Diorable
Member
Posted 3 years ago #
Hi everyone,
i'm trying to style my pics with a padded border and before i used this in my css and it worked fine
.cam {
background: #FFF;
padding: 4px;
border: 1px solid #000;
}
and placed this in my images:
<img src="file.png" class="cam" />
but now for some reason on my new layout it doesn't work =(
and it just gives me room around my pics but i don't get the padded border. i don't know what's wrong or how to fix it. Someone please help!! my url is: http://www.diorable.net if you want to take a look.
I checked the css for your page, and that code's not there. So I added it via my css tester and voila! the cam images were styled. I suggest you open up your current css sheet and add it in again.
Diorable
Member
Posted 3 years ago #
hey monkeypup,
thanks so much for replying and trying to help me! I added the code back in now. I took it out before as it made the space around the pictures look weird. After adding the code back in i still didn't get anything around my picture. Is it just me that can't see it?
In the post where you have one pic in the center - you forgot to add the class to the image code.
Further below in the post with the 4 images, you added the class and the border is visible.
Diorable
Member
Posted 3 years ago #
hey moshu.
Thanks for helping me out, but i was wondering if you only saw the border or if dere was also padding?? cause i can only see the border and no padding. Thanks =)
Borders AND padding. You may want to try to refresh/clear your cache: Ctrl+F5.