NameSilo

What is the exact css code to put a background behind a centered div tag?

Spaceship Spaceship
Watch

pzqwpo

New Member
Impact
0
I want to center my website and behind the centered div tag i want to have a plain gray background but i can't seem to get any codes to work.

Please give me the exact codes and where to put them...i dont know if i should put it in a css or right in the page code.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Code:
#div-id {
        width: 100%;
	margin: 0 auto;
	background: url('imagehere.jpg');
	background-repeat: x;
}
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back