| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
I ain't afraid of no post
Join Date: Mar 2004
Location: Bradford, Uk
Posts: 416
|
Dreamweaver problem2
I am having difficulties with my background image, its just to the left and I can't seem to arrange to the centre, can any1 help? Would I have to go back to my image and edit it with space on the left and right sides placing the image into the centre, I have created it in photoshop. Cheers |
|
|
|
|
|
#2 (permalink) | |
|
Dr. Lucien Sanchez
Join Date: Mar 2003
Location: UK
Posts: 5,527
|
Quote:
http://www.w3schools.com/css/css_reference.asp Have a look at background-position. |
|
|
|
|
#3 (permalink) |
|
Ur mother's ur brother?
Join Date: Jun 2003
Location: Liverpool
Posts: 880
|
or you could put the background image in a table and centre the table. would mess with the whole rest of any design you had though as content would have to sit within than table. follow stick's guide, he knows best ::: TC Magazine :::
|
|
|
|
#12 (permalink) |
|
hmmm...
Join Date: Jan 2004
Location: Yorkuk
Posts: 2,127
|
body { background-image: url(photoshop/background.jpg); background-repeat: no-repeat; background-position: center; margin-left: 0px; margin-right: 0px; } missing a semi-colon there. you could also do it all in one background definition like this: background:url(blah) no-repeat center; |
|
![]() |