Jump to content

100% div with 3 images.


brown2005

Recommended Posts

		#network { position: absolute; top: 0px; left: 0px; overflow: auto; width: 100%; height: 30px; line-height: 30px; }

	* html #network { height: 30px; }	

	#networkleft { float: left; background: url(left.bmp) !important; width: 115px; height: 30px; }	
	#networkcenter { float: left; background: url(center.bmp); width: 500px; height: 30px; }	
	#networkright { float: right; background: url(right.bmp) !important; width: 15px; height: 30px; }	

 

when i change networkcenter to width:100% it goes all wrong, how can I change the css code to make the middle image repeat as much as is avalible.

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/158110-100-div-with-3-images/
Share on other sites

The shorthand version is

background: url(center.bmp) repeat-y;

where "repeat-y" repeats the image vertically; there's also an option to "repeat-x" which repeats the image horizontally; and "repeat" which repeats both horizontally and vertically.

 

Btw, I should mention I just assumed you meant repeat vertically. Just switch "repeat-y" to "repeat" if you wanted it repeated it continually both ways.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.