Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Background position, margin-top?

Tags:

css

I currently have my background set to top right as:

#thedivstatus {     background-image: url("imagestatus.gif");     background-position: right top;     background-repeat: no-repeat; } 

BUT! I need to add a margin-top:50px; from where its rendering via above. Could anyone give me a suggestion?

Thanks

like image 971
fred randall Avatar asked Mar 16 '12 19:03

fred randall


1 Answers

If you mean you want the background image itself to be offset by 50 pixels from the top, like a background margin, then just switch out the top for 50px and you're set.

#thedivstatus {     background-image: url("imagestatus.gif");     background-position: right 50px;     background-repeat: no-repeat; } 
like image 182
BoltClock Avatar answered Sep 28 '22 15:09

BoltClock