d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Color Outside Of Background Image > Need Code
Add Reply New Topic New Poll
Member
Posts: 10,304
Joined: Mar 31 2008
Gold: 2,500.00
Trader: Trusted
Mar 1 2013 11:07am
Currently I have background image displayed, but on larger screens it is filled with white around background image.

I would not like the background to repeat but rather the color be black around the image.

This is background code in the css.

Code
}
body {
background: url(../images/2.png) no-repeat center top;
font-family: Arial;
min-width: 960px;
margin: 0;
}
img {



What is needed to add so that the entirety of the webpage beyond the background image will display in black?

Thanks in advance for any help.
Member
Posts: 10,812
Joined: Oct 15 2009
Gold: Locked
Warn: 20%
Mar 1 2013 12:24pm
try
Code
background: #000000 url(../images/2.png) no-repeat center top;
Member
Posts: 2,757
Joined: Nov 26 2007
Gold: 1,214.81
Mar 1 2013 01:09pm
nm

This post was edited by labatymo on Mar 1 2013 01:10pm
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll