coding help, centered background |
coding help, centered background |
Feb 25 2006, 11:50 AM
Post
#1
|
|
![]() XOTY*06 :D ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 2,635 Joined: Mar 2004 Member No: 6,747 |
Hello! I am making a layout with the header centered, but when I put the background, in an 800x600 resolution, the background moves and the header does not align with the background anymore. Can someone hlep me in coding the background part?
QUOTE <div align="center"> <IMG SRC="http://img114.imageshack.us/img114/6426/esloveme6vg.jpg" WIDTH="356" HEIGHT="600 BORDER="0" ALT=""> </div> HEADER: http://img114.imageshack.us/img114/6426/esloveme6vg.jpg BACKGROUND: http://img123.imageshack.us/img123/5025/eslovemebg5sw.jpg |
|
|
|
![]() |
Feb 25 2006, 12:47 PM
Post
#2
|
|
![]() ;) ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 9,573 Joined: Feb 2005 Member No: 99,124 |
Try this:
CODE <div align="center"> <IMG SRC="http://img114.imageshack.us/img114/6426/esloveme6vg.jpg" WIDTH="356" HEIGHT="600 BORDER="0" ALT=""> </div> <style type='text/css'> Img { Margin-Left: -60px; } Body { Background-Image:url('http://img123.imageshack.us/img123/5025/eslovemebg5sw.jpg'); Background-Repeat: repeat-y; Background-Position: center center; } </style> I attempted to align it for you. |
|
|
|
smrkangl coding help Feb 25 2006, 11:50 AM
smrkangl thank you thank you thank you thank you thank you... Feb 25 2006, 06:23 PM
Maestro You're welcome. I'm glad I could help you ... Feb 25 2006, 07:57 PM
Szeh TOPIC CLOSED Feb 25 2006, 08:35 PM![]() ![]() |