desidude Posted January 5, 2006 Share Posted January 5, 2006 Is there any way to repeat images horizontally using CSS without setting it as the background?Thanks Link to comment Share on other sites More sharing options...
smiles Posted January 5, 2006 Share Posted January 5, 2006 I 'm not good at CSS , try this for experiment {background-image: url();background-repeat: repeat-x;} Link to comment Share on other sites More sharing options...
real_illusions Posted January 5, 2006 Share Posted January 5, 2006 he said to set it without using it as a background.i guess one way is to just repeat the img tags in one paragraph <p><img src="something.jpg"><img src="something.jpg"><img src="something.jpg"><img src="something.jpg"></p> would put 4 of the same image in one line, providing the overall width of all the images doesn't go over the width of whatever your putting it in. but no css involved. i dont know of a css way to do this. Link to comment Share on other sites More sharing options...
aspnetguy Posted January 5, 2006 Share Posted January 5, 2006 That isn't a good idea....if the width of your element is smaller than the 4 images then it will stretch the page and if the width is bigger it will leave gaps.setting it as background ans ue smiles suggestion is the only good way to this Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now