Jump to content

Background


Flame1622
 Share

Recommended Posts

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

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

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

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.

Edited by chibineku
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...