Log In · Register

 
coding help, centered background
smrkangl
post 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
 
 
Start new topic
Replies
YourSuperior
post 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. _smile.gif
 

Posts in this topic
smrkangl   coding help   Feb 25 2006, 11:50 AM
Maestro   Try this: CODE<div align="center"...   Feb 25 2006, 12:47 PM
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


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: