Log In · Register

 
background
Smarmosaur
post Jun 29 2008, 01:24 PM
Post #1


AKA RockIt Studios
******

Group: Official Member
Posts: 2,286
Joined: Jun 2006
Member No: 421,809



really quick question.
i'm trying to position my background (on myspace, obviously) with pixels:
CODE
background-position: 148px 200px;


the horizontal positioning (148px) works, but the vertical doesn't.
it this a myspace glitch, am i doing something wrong (although it looks pretty self explanatory, what's to mess up?), or is it just a coincidence?
 
 
Start new topic
Replies
fixtatik
post Jun 30 2008, 04:22 PM
Post #2


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



unfortunately, neither of those would work. in CSS, the syntax is selector { property: value; }. there is no selector "background-position," as there's no HTML tag for it; it's just a CSS property.

you also can't relatively position a background, because if you use position:relative; then it will position the entire body relative to the <html> tag (which will move the entire profile).
 

Posts in this topic


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