• Resolved Larzymodo

    (@larzymodo)


    Simple question

    How do you post a picture into a page without it showing the border around the inserted image?

    Many thanks

    Larzymodo

Viewing 6 replies - 1 through 6 (of 6 total)
  • That depends upon the theme you are using and whether the image is linked to a larger version or not.

    Thread Starter Larzymodo

    (@larzymodo)

    Really ? But on my site https://myschoolweb.org.uk/wordpress/

    there is a screenshot on the main page, it is not linked to anything, yet it appears with what looks like 5 px white padding followed by a grey line border around the image. I just want to post the image and have no padding or border.

    As I said, it depends upon your theme. Try using Firefox with the Firebug add-on for this kind of CSS troubleshooting. Or use whatever developer tool is available in your web browser.

    Thread Starter Larzymodo

    (@larzymodo)

    Ok I’ll try find it, must be a setting within the Orginal twenty Eleven.

    go to code view of the post and remove the concerned class that is creating the border or you can edit the class on your theme css if you want it for all over the site.

    Thread Starter Larzymodo

    (@larzymodo)

    Got it!

    Thanks All

    Added below to child theme.

    /* Image borders */
    img[class*=”align”],
    img[class*=”wp-image-“],
    #content .gallery .gallery-icon img {/* Add fancy borders to all WordPress-added images but not things like badges and icons and the like */
    border: 0px solid #ddd;
    padding: 0px;

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Posting Images without borders’ is closed to new replies.