WordPress.org

Support

Support » Themes and Templates » [Resolved] Get rid of Border around Images

[Resolved] Get rid of Border around Images

  • I use images as my post titles, and I’m very new to css. A border about 2 px wide envelops my images. What’s the css to make it disappear, or at least white, and where do i put it?

Viewing 15 replies - 1 through 15 (of 19 total)
  • Well, if your image is in a div called “header”, the CSS would be:

    div#header img {
    border:0;
    }

    Hope this helps.

    Here’s the CSS:

    I tried sticking it in everywhere, but it still doesnt work, where would I put it, if I’m using the image headlines plugin to make my post tile an image?

    [long code moderated – use a pastebin service]

    I tried sticking it in everywhere, but it still doesnt work, where would I put it, if I’m using the image headlines plugin to make my post tile an image?

    helllp

    hellllllllp

    ok sriously, plz help

    a link to your site would be most helpful, as would NOT bumping your thread once an hour.

    You want help so bad, then provide enough info that someone can help. Anyone that can help only needs a url, not a long piece of code they have to decipher.

    that is the style.css file of my site. It is exactly what you would see if you went to it. anyway, im running a local install and the above is it.

    once again, im lookin to make sre that nowhere, especially in the post title, do images have borders. thas all! thx

    dude, your code was removed from that post, scroll up.

    and werent you reminded in another post about the bumping? indeed you were, so you know better too. sigh.

    no, i wasn’t, let me link you to the code …DUDE:

    http://pastebin.ca/78526

    Thanks in advance, whooami

    yes, you were and its right here:
    http://wordpress.org/support/topic/38480?replies=7

    at any rate,
    paste your source code starting from right before one of your image things starts to right after it ends, then I can tell you exactly what to do.

    That was a year ago, you ARE magical

    see the thing is, i have no clue where these image things are…they are a snipped added into “thetitle”. so i guess id need to put the proper styling into the h2, thetitle. and I did..as you can see, yet the image still has a border of 2px…thanx in advance

    paste your source code starting from right before one of your image things starts to right after it ends, then I can tell you exactly what to do.

    /me wanders off to try to answer another question.

    alright:

    index.php:

    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h3 class=”storytitle”>” rel=”bookmark”><?php the_title(‘-image-‘); ?></h3>

    style.css: see pastebin.

    is this what you need?

    yes

    Im not going back to your pastebin just yet. For this one though.. you might try this:

    h3 img {border:0}

    Hmmm, first, this bumping 30 minutes apart *really* turns me off from wanting to help.

    Second, I did give you the way to do it. YOu had but to do a wee bit of digging.

    You have to learn a bit, not get everything delivered on a silver platter.

    /me shrugs

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘[Resolved] Get rid of Border around Images’ is closed to new replies.