View Full Version : css code help please
England
10-22-2009, 08:59 PM
how can i code this right to centre the image and to stop the image been repeated
.altbg {
background: #000000 url(http://www.moddedwarfare2.com/forum/-images-/SniperRifle.png) repeat-x top left;
height: 70px;
width: 100%;
vertical-align: text-bottom;
border: 1px solid #434647;
}
thankyou in advance
Lynne
10-22-2009, 09:07 PM
This should help - CSS Background (http://www.w3schools.com/css/css_background.asp)
DeanLag
10-22-2009, 09:07 PM
.altbg {
background: #000000 url(http://www.moddedwarfare2.com/forum/-images-/SniperRifle.png) no-repeat;
height: 70px;
width: 100%;
text-align: center
vertical-align: text-bottom;
border: 1px solid #434647;
}
Not sure, try it and lemme know
firstimecaller
10-22-2009, 09:10 PM
.altbg {
background: #000000 url(http://www.moddedwarfare2.com/forum/-images-/SniperRifle.png) ;
background-repeat:no-repeat;
background-position:top center;
height: 70px;
width: 100%;
vertical-align: text-bottom;
border: 1px solid #434647;
}
England
10-22-2009, 09:11 PM
ty lynne and the rest much appreciated working fine now.
and thankyou every 1 else !
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.