Log In · Register

 
background question
Yuniechan
post Aug 6 2008, 08:17 PM
Post #1


Senior Member
***

Group: Member
Posts: 84
Joined: Mar 2007
Member No: 511,742



ive seen people with centered backgrounds just going along the top bottom or middle in a line, anyone know the code to do this ?
 
 
Start new topic
Replies (1 - 2)
karmakiller
post Aug 7 2008, 12:26 AM
Post #2


DDR \\ I'm Dee :)
*******

Group: Mentor
Posts: 8,662
Joined: Mar 2006
Member No: 384,020



You question is a bit confusing, do you mean something like this?
CODE
<style>body{background-image:url('http://IMAGE')}</style>
So it's only on the sides?
 
Mickey
post Aug 7 2008, 01:46 AM
Post #3


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



I'm guessing you're talking about a background's position/repeat option? If you want it centered and you want it to repeat horizontally, use this code:

CODE
<style>
body {background-image:url("URL"); background-position:center; background-repeat:repeat-x;}
</style>

If you want it to repeat vertically, just change repeat-x to repeat-y. If you want to change its position, just change center to top, right, left, center, or bottom. There are more, but those are the basic ones.
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: