Go Back   Novahq.net Forum > Computers > Web design and Programming
FAQ Community Calendar Today's Posts Search

Web design and Programming Discuss website creation and other programming topics.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-03-2009, 06:56 PM
EDGE is offline EDGE
EDGE's Avatar

Join Date: Feb 2003
Location: North Carolina
Posts: 7,184

Send a message via ICQ to EDGE Send a message via AIM to EDGE Send a message via Yahoo to EDGE
Repeating -TWO- images horizontally

So, is there any way to repeat two images horizontally in css? I can't figure it out. I can repeat the one image, but cannot get the second to repeat and don't know if it can even be done.

Code:
body {
	background-image: url("images/bg_repeat.gif");
	background-repeat: repeat-x;
}
That is the code I am using to repeat the first image. How could I go about repeating the second image?

see image below:

__________________
Quote:
Voltaire
It is forbidden to kill; therefore all murderers are punished unless they kill in large numbers and to the sound of trumpets.
Reply With Quote
  #2  
Old 02-03-2009, 08:30 PM
Bustin is offline Bustin
Bustin's Avatar
DF2 Forever

Join Date: Jun 2002
Location: Massachusetts
Posts: 1,596

There has to be an open line somewhere preventing it. That's how I'd lay the code out, and I opened up a forum layout that I know has repeating cell bg's and that's what it shows.
__________________
DF2 Forever!



Reply With Quote
  #3  
Old 02-04-2009, 12:35 PM
EDGE is offline EDGE
EDGE's Avatar

Join Date: Feb 2003
Location: North Carolina
Posts: 7,184

Send a message via ICQ to EDGE Send a message via AIM to EDGE Send a message via Yahoo to EDGE
ok, well I went back and was browsing around and figured I would try this:

Code:
body {
	background-image: url("images/bg_repeat.gif");
	background-repeat: repeat-x;
}
#bg_wrap {
	height: 100%;
	width: 100%;
	background: url(images/bg_repeat2.gif) repeat-x;
	background-position: bottom;
}
.container {
	width: 100%;
	background: #e5e5e5;
	margin: 0 auto;
	overflow: hidden;
}
and then sticking
Code:
<div id="bg_wrap"></div>
	<div class="container">
		<img src="images/bg_repeat2.gif" alt="" />
	</div>
in where it's supposed to repeat the second image.


Didn't exactly have the best luck with it. It is repeating, but for some reason, I can't get it to repeat all the way across. It repeats under the other image that it's supposed to be repeating behind. see screenshot

__________________
Quote:
Voltaire
It is forbidden to kill; therefore all murderers are punished unless they kill in large numbers and to the sound of trumpets.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Repeating Image and Static BG in same doc? EDGE Web design and Programming 14 11-22-2009 10:47 PM
New Images bigjoe11a Sigs and Graphics 7 08-04-2008 09:25 AM
Background Repeats (Repeating Images) EDGE Sigs and Graphics 2 07-03-2005 07:34 PM
keeping images from repeating itself? General Nuisance Web design and Programming 12 06-29-2005 08:07 PM
Images... HeadShot=ICE= Sigs and Graphics 7 09-01-2003 05:17 PM


All times are GMT -5. The time now is 02:52 PM.




Powered by vBulletin®