WordPress.org

Forums

[resolved] Get rid of Border around Images (20 posts)

  1. leMaxim
    Member
    Posted 8 years ago #

    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?

  2. vavroom
    Member
    Posted 8 years ago #

    Well, if your image is in a div called "header", the CSS would be:

    div#header img {
    border:0;
    }

    Hope this helps.

  3. leMaxim
    Member
    Posted 8 years ago #

    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?

  4. leMaxim
    Member
    Posted 8 years ago #

    helllp

  5. leMaxim
    Member
    Posted 8 years ago #

    hellllllllp

  6. leMaxim
    Member
    Posted 8 years ago #

    ok sriously, plz help

  7. whooami
    Member
    Posted 8 years ago #

    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.

  8. leMaxim
    Member
    Posted 8 years ago #

    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

  9. whooami
    Member
    Posted 8 years ago #

    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.

  10. leMaxim
    Member
    Posted 8 years ago #

    no, i wasn't, let me link you to the code ...DUDE:

    http://pastebin.ca/78526

    Thanks in advance, whooami

  11. whooami
    Member
    Posted 8 years ago #

    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.

  12. leMaxim
    Member
    Posted 8 years ago #

    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

  13. whooami
    Member
    Posted 8 years ago #

    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.

  14. leMaxim
    Member
    Posted 8 years ago #

    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?

  15. whooami
    Member
    Posted 8 years ago #

    yes

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

    h3 img {border:0}

  16. vavroom
    Member
    Posted 8 years ago #

    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

  17. leMaxim
    Member
    Posted 8 years ago #

    Thank you :-)

  18. whooami
    Member
    Posted 8 years ago #

    so that worked?

  19. leMaxim
    Member
    Posted 8 years ago #

    yeah it worked. can you tell me how to close my Wp.org account. i dont deserve you guys.

  20. whooami
    Member
    Posted 8 years ago #

    you close it by not posting.. you just fade away into oblivian while your previous posts live on in the afterlife.

    Im happy to help btw, glad it worked, you can prolly see the pattern for doing that anywhere else.

    if you come back with another problem all you have to do is be patient (!!) and ppl will help as they can, thats all.. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags