NameSilo

CSS Code For setting the bottom margin

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch

TWM

Web Marketing SpecialistEstablished Member
Impact
9
I have

img.newsbar { margin-top: .8cm; margin-bottom: .8cm;}

the margin-top works fine, but the bottom wont. I have tried everything from using px instead of cm to putting it in its own line and everything. Any ideas on how to set the bottom margin with CSS?
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
bump
 
0
Close
Hello
why not set the environment height

like <div id="bump" style="height: 120px">
<img src="....." width="30" height="30" style="padding-top: 8px" alt="">
</div>

i am trying to help...
 
0
Close
The way i am doing it is i set the image height at 100% so that when i add the CSS, no matter how long the page is, it will always be X amount of pixels away from the top of the page and the bottom.

The top part works, but the bottom wont.
 
0
Close
0
Close
Just add a <div> around your image. If that doesn't work, then remove the margins from the image, and just add this CSS to the newly created DIV:

<div style="padding: .8cm 0cm .8cm 0cm;">
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

New: watch any domain
You can now watch domains on NamePros. We check each one and notify you when something changes. Search for a domain and press Watch on...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back