Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS BLOGGER – Add black frame around photo AND remove margin under photo

  • This topic is empty.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #42678
    hendrix940
    Participant

    I really appreciate the help. How can I add a thin black border around IMG tag and also, how can I remove the margin that’s under a photo?

    Here’s HTML:

    <a style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;" imageanchor="1" href="http://simeonhendrix.com/images/boogeyman-poster-movie.jpg"><img width="320" height="218" border="0" src="http://simeonhendrix.com/images/boogeyman-poster-movie.jpg"></a>Check out this Pen!

    Here’s CSS:

    element.style {
    clear: right;
    float: right;
    margin-bottom: 1em;
    margin-left: 1em;
    }
    Check out this Pen!

    THANK YOU SO MUCH!!!

    #124253
    hendrix940
    Participant

    I realize that all I need to do is remove the ‘MARGIN-BOTTOM’ from the CSS and that will remove the margin, HOWEVER, when I go into the HTML/CSS for my blogger, ‘ELEMENT.STYLE’ is not able to be found.

    #124257
    hendrix940
    Participant
    #124258
    hendrix940
    Participant

    Awesome! Thank you @chrisp I very much appreciate your explanation sir!!

    #124259
    hendrix940
    Participant

    @chrisp , so if I wanted to remove a margin-bottom attribute

    element.style {
    clear: right;
    float: right;
    margin-bottom: 1em;
    margin-left: 1em;
    }
    Check out this Pen!

    #124260
    hendrix940
    Participant

    on only the IMG tags … then, I would write it like this:

    img {
    border: 1px solid black;
    margin-bottom: 0em;
    }
    Check out this Pen!

    #124261
    hendrix940
    Participant

    correct? THANK YOU SO MUCH!!

    #124266
    hendrix940
    Participant

    Okay, yes I think I understand. I’m trying it out right now sir.

    #124267
    hendrix940
    Participant

    @chrisp , I’m doing something wrong. Here’s the HTML:

    <div class="separator" style="clear: both; text-align: center;">
    <a style="clear: right; float: right; margin-left: 1em; margin-bottom: 1em;" imageanchor="1" href="http://simeonhendrix.com/images/boogeyman-poster-movie.jpg">
    </div>
    Check out this Pen!

    And this is the CSS that blogger automatically is generating. You’ll also notice I tried to implement your instructions but it didn’t remove the margin-bottom.

    element.style {
    clear: right;
    float: right;
    margin-bottom: 1em;
    margin-left: 1em;
    }

    The above code is what blogger is automatically generating for me.

    I tried:

    .separator {
    margin-bottom: 0 !important;
    }

    But this doesn't remove the 'margin-bottom'
    Check out this Pen!

    #124268
    hendrix940
    Participant

    Furthermore, when I got into the HTML/CSS of the blogger, I can’t edit and modify ‘ELEMENT.STYLE’

    #124292
    hendrix940
    Participant

    AH!! Thanks so much dude!!

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘CSS’ is closed to new topics and replies.