Title: IMAGE STYLING HELP!!!
Last modified: August 18, 2016

---

# IMAGE STYLING HELP!!!

 *  [diorable](https://wordpress.org/support/users/diorable/)
 * (@diorable)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/image-styling-help/)
 * i placed the images styling tag into my CSS to gie my image a border by using
   this
 * img {
    margin: 5px; padding: 10px; border: solid black 1px }
 * but it puts images around every single one of my images including my header and
   my smilies which i don’t want!!
    How do i get rid of the border on my header 
   and smilies??
 * Sumone please help im so frustrated with this ><”

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [eridan](https://wordpress.org/support/users/eridan/)
 * (@eridan)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/image-styling-help/#post-375400)
 * I’m not sure how your website is built, but if you only want border around the
   pictures in your posts, you could probably use
    ` .post img { border:1px solid#
   000; }
 *  Thread Starter [diorable](https://wordpress.org/support/users/diorable/)
 * (@diorable)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/image-styling-help/#post-375418)
 * hey eridan thanks for the help,
 * but unfortunately it didn’t work. I placed what you gave me in my CSS but nothing
   happened. But thanks anyways, do you know any other ways to resolve this?
 * Thanks
 *  [ladydelaluna](https://wordpress.org/support/users/ladydelaluna/)
 * (@ladydelaluna)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/image-styling-help/#post-375420)
 * it might help us if you could give us a link to the site and maybe tell us what
   theme you’re using…
 *  [Jonathan Landrum](https://wordpress.org/support/users/jonlandrum/)
 * (@jonlandrum)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/image-styling-help/#post-375422)
 * You could assign images in your posts a class. Similar to eridan’s advice, try
   something like this:
    `img.post { margin: 5px; padding: 10px; border: solid black
   1px; } That way only the images with the class “post” will receive the padding,
   margin, and border.
 *  Thread Starter [diorable](https://wordpress.org/support/users/diorable/)
 * (@diorable)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/image-styling-help/#post-375477)
 * thank you all for helping out..
    i took your adivce and assigned a class to my
   image in my side bar to test it out but nothing happened. I added the tag you
   gave me in my CSS and still nothing. And i just can’t figure out why.
 * My site is [http://www.diorable.net](http://www.diorable.net)
 * Please help
 * thanks
 *  [ladydelaluna](https://wordpress.org/support/users/ladydelaluna/)
 * (@ladydelaluna)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/image-styling-help/#post-375483)
 * [http://validator.w3.org/check?uri=http://www.diorable.net/](http://validator.w3.org/check?uri=http://www.diorable.net/)
 * might want to try clearing up those 78 errors, and see if that helps. my guess
   is that you have something in the css that’s overriding whatever it is you put
   in there recently. but fixing those errors might just help clear things up enough
   to get it working properly.
 *  [ingalo](https://wordpress.org/support/users/ingalo/)
 * (@ingalo)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/image-styling-help/#post-375486)
 * Try putting:
 * `p img {
    margin: 5px; padding: 10px; border: solid black 1px; }
 * `img.wp-smiley {
    border:none; }
 * into your css file.
 * That way you don’t have to modify anything but the css file. I hope you don’t
   have a lot ot p’s in the sidebar and such 🙂
 * However there should be, for the niceness of look-changing, be a div wrapped 
   around your posts, so if you know a little html you can put
 * `<div class="post">`
    post tags come here `</div>`
 * around your post and then style it in the css file with:
 * `div.post img {
    margin: 5px; padding: 10px; border: solid black 1px; }
 * `img.wp-smiley {
    border:none; }
 * Good luck.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘IMAGE STYLING HELP!!!’ is closed to new replies.

## Tags

 * [styling](https://wordpress.org/support/topic-tag/styling/)

 * 7 replies
 * 5 participants
 * Last reply from: [ingalo](https://wordpress.org/support/users/ingalo/)
 * Last activity: [20 years, 1 month ago](https://wordpress.org/support/topic/image-styling-help/#post-375486)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
