Username: Password:   Forgot your password?
 
Forums
» View Categories » Help! How Do I...? » How do I ad a background image?
Previous 30
Page of 1 Next 30

Member:17,043
Posts:114
Joined:2-21-2007
Seen:11-23-2009
Oct 9,`08 12:14am | Quote |

Alright, I've been playing around with my website, but I'm having a hell of a time adding a background image. Basically I just want to add an image tiled across the background (preferably a fixed one). But it seems like my code isn't working or I'm just doing it wrong. Any ideas? Thanks...

 
Member:60,304
Posts:144
Joined:8-5-2008
Seen:3-11-2009
Oct 15,`08 8:32am | Quote |

Normally, you code background images to website elements right into the specific field's style, or into a Cascading Style Sheet.


A style sheet element with a background on the body would look like this;

body {
background-image:
url('[URL HERE]');
}


Then there's various extra stuff that can be defined, as well, such as the repeat direction (Repeat-x, repeat-y or repeat-none).

body {
background-image:
url('[URL HERE]');
background-repeat: repeat-x (or repeat-y or even repeat-none).
}

This post was last edited on Oct 15,`08 8:49am


Previous 30
Page of 1 Next 30

 

Not Registered?
Signup for a FREE Account!


Registered users can:
Comment on comics!
Create their own comics!
Vote in polls and contests!
Use the forums!
   Latest News
   DD Cam (Now Featuring: DDBook)