Marius Ruthven
Aaaah it works! auto was missing, thanks Yoshi!
blaugh
I have another question though...xD
how can i put more code into a background url instruction and not only one? for example:
body { background: url(http://i18.photobucket.com/albums/b128/marius-kun/Dirge_Of_Cerberus_07800x600.jpg) 3600px 3600px ; }
If i want to put another instruction like no-repeat at the end it wont work, like:
body { background: url(http://i18.photobucket.com/albums/b128/marius-kun/Dirge_Of_Cerberus_07800x600.jpg) 3600px 3600px,
no-repeat top ; }
What should i do? how should i write these kind of code?
Sorry its slightly long.
sweatdrop
As far as I know of you can't set exact pixel locations for images, you can set the image alignment which is
top left
top center
top right
center left
center center
center right
bottom left
bottom center
bottom right
body { background: url(http://i18.photobucket.com/albums/b128/marius-kun/Dirge_Of_Cerberus_07800x600.jpg) top left no-repeat scroll}
-----------------------------------------------------------------------------------------------------
Also, you already know about '
repeat' versus '
no-repeat', so I won't bother explaining it
body { background: url(http://i18.photobucket.com/albums/b128/marius-kun/Dirge_Of_Cerberus_07800x600.jpg) top left no-repeat scroll;}
OR
body { background: url(http://i18.photobucket.com/albums/b128/marius-kun/Dirge_Of_Cerberus_07800x600.jpg) top left repeat scroll;}
------------------------------------------------------------------------------------------------------
And then last but not least is '
scroll' versus '
fixed'. As it sounds is what it does, '
scroll'when you scroll the page/box the image will '
scroll'with it. While '
fixed' keeps the image in one place.
body { background: url(http://i18.photobucket.com/albums/b128/marius-kun/Dirge_Of_Cerberus_07800x600.jpg) top left no-repeat scroll;}
OR
body { background: url(http://i18.photobucket.com/albums/b128/marius-kun/Dirge_Of_Cerberus_07800x600.jpg) top left no-repeat fixed;}