We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,248 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Help with CSS - background extending to 100%

Hey, I'm having some issues with my background images in a page I'm making. I basically have two background images, left border and right border.. and I'm trying to make them repeat in the y direction and fill up 100% of the page. Seems simple enough, but it's not working....

Here is my code:

#EA19 {
 position:absolute; 
 right:0px; 
 top:331px; 
 width:70px; 
 height:100%;
 z-index:19; 
 background-image: url(images/EA2_19.gif); 
 layer-background-image: url(images/EA2_19.gif); 
 border: 1px none #000000;
 background-repeat: repeat-y;
}



#EA20 {
 position:absolute; 
 left:0px; 
 top:331px; 
 width:140px; 
 height:100%;
 z-index:-20; 
 background-image: url(images/EA2_20.gif); 
 layer-background-image: url(images/EA2_20.gif); 
 border: 1px none #000000;
 background-repeat: repeat-y;
}

Any help would be much appreciated. I'm attaching an image of what it looks like in the browser. Thanks.

Moderator: placed code in code-brackets.

Attachments EAproblem.jpg 28.95KB
2
Contributors
1
Reply
1 Year
Discussion Span
7 Years Ago
Last Updated
2
Views
stellargirl2012
Newbie Poster
3 posts since May 2004
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0

This article might help:

http://www.alistapart.com/articles/fauxcolumns/

Hey, I'm having some issues with my background images in a page I'm making. I basically have two background images, left border and right border.. and I'm trying to make them repeat in the y direction and fill up 100% of the page. Seems simple enough, but it's not working....

Here is my code:

#EA19 {
position:absolute;
right:0px;
top:331px;
width:70px;
height:100%;
z-index:19;
background-image: url(images/EA2_19.gif);
layer-background-image: url(images/EA2_19.gif);
border: 1px none #000000;
background-repeat: repeat-y;
}

#EA20 {
position:absolute;
left:0px;
top:331px;
width:140px;
height:100%;
z-index:-20;
background-image: url(images/EA2_20.gif);
layer-background-image: url(images/EA2_20.gif);
border: 1px none #000000;
background-repeat: repeat-y;
}


Any help would be much appreciated. I'm attaching an image of what it looks like in the browser. Thanks.

jeweline
Newbie Poster
2 posts since Nov 2005
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0765 seconds using 2.69MB