background picture repeating
Posted: Mon May 09, 2005 4:25 am
hi there....is there a way i can control the background picture not to repeat?thnx
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
background-image:url(/images/jobdesc/adwgrid.gif);
background-repeat:no-repeat;Code: Select all
body{
background:url(/images/interface/body-bg.gif) no-repeat;
}Code: Select all
body{
background:url(/images/interface/body-bg.gif) no-repeat;
background-position: top left;
}Code: Select all
body{
background:url(/images/dome.jpg) no-repeat;
background-position: top left;
}Are you sure? If you're using an external CSS file the path to the image needs to be relative to the CSS file, not the php script. So if your CSS is in a directory you'd need a "../" in the path..pleigh wrote:thanks...yes, the url is correct...
not if he is using root relative paths, which i think he isonion2k wrote:Are you sure? If you're using an external CSS file the path to the image needs to be relative to the CSS file, not the php script. So if your CSS is in a directory you'd need a "../" in the path..pleigh wrote:thanks...yes, the url is correct...
Code: Select all
background:url(./images/dome.jpg) no-repeat;tried this one and still not working....i tried to call the css file to another page, but it is also not working....below is my css code for body{}wwwapu wrote:TryOne dot (.) means the current directoryCode: Select all
background:url(./images/dome.jpg) no-repeat;
Code: Select all
body {
background-image: url(/images/table.jpg) no-repeat;
background-position: top right;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px
}try:pleigh wrote:tried this one and still not working....i tried to call the css file to another page, but it is also not working....below is my css code for body{}wwwapu wrote:TryOne dot (.) means the current directoryCode: Select all
background:url(./images/dome.jpg) no-repeat;
Code: Select all
body { background-image: url(/images/table.jpg) no-repeat; background-position: top right; font-family: Arial, Helvetica, sans-serif; font-size: 12px }
Code: Select all
body {
background: url("e;/images/table.jpg"e;) no-repeat top right;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}Code: Select all
background-image: url(/images/table.jpg);
background-repeat: no-repeat;
background-position: top right;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px