mahdi_20 Posted August 3, 2008 Share Posted August 3, 2008 hi all, how can i show part of image in background, i want show part of image and use repeat-x thankX Quote Link to comment Share on other sites More sharing options...
haku Posted August 3, 2008 Share Posted August 3, 2008 You can't really do that. The way repeat-x works is that when it comes to the edge of the image (not the viewport), the image repeats. The way partial background images work is that you set a width and height and position to the element in which the background image is placed, meaning you can only see the part of the image that is that height, width, and position. If you repeat it, you can't see the repeat, because the viewport is smaller than the image, and the image repeats only when it comes to the end of the image. If you want to repeat something across x, then you need to get that image alone (it can't be part of another image, and set the height and width of the viewport to be wider than the image. Then have the image repeat. Since the image repeats when it gets to the edge of the image, and the image is smaller than the viewport, the image repeats until it gets to the edge of the viewport. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.