Border on images

  • Unknown's avatar

    I cannot seem to be able to remove the gray border from images on our posts anymore. When I uploaded images into my posts, I used to be able to click on an icon in the upper left corner that allowed me to edit the image, including the border. This does not appear to be available any longer. Has that changed with my theme? Is there some code I can utilize to remove the border? I have tried adding border:0 or border=0 to no avail. We are currently using the Chunk theme.

    Thanks!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hello,

    You can make sure there’s no border on the images using some custom CSS. When you go to the edit page for the post and click the “Text” tab (right next to “Visual”) at the top of the editing area, it shows you the HTML code for the post. For example, here’s the first image from your latest post:

    <a href="http://kwaske.files.wordpress.com/2014/03/self-cert-sample.jpg"><img class="alignnone wp-image-1425" style="margin-top: 0; margin-bottom: 0; border: 0 initial initial;" src="http://kwaske.files.wordpress.com/2014/03/self-cert-sample.jpg" alt="Self Cert Sample" width="580" height="471" /></a>

    The style=”…” part (which is called the “style attribute”) is where the CSS goes. Notice that there’s a “border: 0 initial initial;” inside there. That’s what gets rid of the border. There is some extra stuff in there, but really we could just have this:

    <a href="http://kwaske.files.wordpress.com/2014/03/self-cert-sample.jpg"><img class="alignnone wp-image-1425" style="border: 0" src="http://kwaske.files.wordpress.com/2014/03/self-cert-sample.jpg" alt="Self Cert Sample" width="580" height="471" /></a>

    You can find more information about using CSS at the Custom Design support page:

    http://en.support.wordpress.com/custom-design/custom-css/

    Even though you don’t have the Custom Design upgrade, you can still use CSS on individual parts of your post using the style attribute.

    Let me know if there’s anything else I can help you with.

    Radford

  • Unknown's avatar

    This helped – thanks!!

  • Unknown's avatar

    No problem. Have a great day!

  • The topic ‘Border on images’ is closed to new replies.