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 Re: BLOGGER – Add black frame around photo AND remove margin under photo

#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!