Flame1622 Posted August 28, 2009 Share Posted August 28, 2009 I'm a noob at html, but, how would I make the background stop repeating at a certain point? Link to comment Share on other sites More sharing options...
chibineku Posted August 28, 2009 Share Posted August 28, 2009 Hm, I think they either repeat, repeat horizontally, repeat vertically or don't repeat at all. Hide it behind another element? Create an image that is itself a mozaic of the repeating image that is only the size you want? Link to comment Share on other sites More sharing options...
Flame1622 Posted August 28, 2009 Author Share Posted August 28, 2009 I want it to repeat 2 times also it repeats horizontally how would I place an image behind text? Link to comment Share on other sites More sharing options...
chibineku Posted August 28, 2009 Share Posted August 28, 2009 If it's a background image, then it'll sit behind text anyway. If it's not, you need to give the text a higher z-index than the image (i.e. anything above 0) and position it where you want, either relatively or absolutely. But you can't trust that it will always look like that - better to make an image consisting of 2 repetitions of the image Link to comment Share on other sites More sharing options...
Flame1622 Posted August 28, 2009 Author Share Posted August 28, 2009 Would it be easier to just learn CSS code for the background? Link to comment Share on other sites More sharing options...
chibineku Posted August 28, 2009 Share Posted August 28, 2009 No, I still think it's easier just using a composite image, but it's worth learning the CSS anyway as it will be essential if you continue in web design. Link to comment Share on other sites More sharing options...
Flame1622 Posted August 28, 2009 Author Share Posted August 28, 2009 I learned HTML last night so I barely know half of it, how would I use background-repeat with repeat-x repeat-y? Link to comment Share on other sites More sharing options...
chibineku Posted August 28, 2009 Share Posted August 28, 2009 if you want to repeat on both axis, and the background is for the body element, then do this:body {background: url(path/to/image.jpg) repeat;}You have to add style at the top, between the head tags, and also between <style type="text/css> </style> tags. It's past my bed time, but I or someone else can give you a more thorough briefing tomorrow. Link to comment Share on other sites More sharing options...
Flame1622 Posted August 28, 2009 Author Share Posted August 28, 2009 thank you i'm going to learn HTML DOM now to be able to do stuff like that a more. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.