Forums

Get rid of image border? (4 posts)

  1. neodan
    Member
    Posted 2 years ago #

    How can I get rid of the border in the images in my blog? I tried checking the css and changed the border to 0 and still no luck...

  2. mattyza
    Member
    Posted 2 years ago #

    Hi neodan,
    In your style.css file, type the following:

    img { border: 0px; }

    If there are any styles of img tags anywhere in your css file, add the border: 0px; attribute to them as well, to be sure. :)

    Cheers,
    Matty.

  3. neodan
    Member
    Posted 2 years ago #

    Hmm my css is here and here herethe border is set to 0.

    a img {border:0 none}

  4. mattyza
    Member
    Posted 2 years ago #

    Hi neodan,
    In style.css, add border: 0px; to the following declaration, below margin: 0; :

    .wp-caption img {
    	margin: 0;
    }

    It looks like your typography.css file takes care of images within a tags. The above code is for images within caption tags.

    I hope this helps. :)

    Cheers,
    Matty.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.