CSS code help
Page 1 of 1
UserFriendly7
Moderator



Posts: 1471
Location: England
PostPosted: Mon, 4th Jun 2007 20:55    Post subject: CSS code help
this is a long shot and probably asking the impossible... I want to start a background image to repeat on the y axis from a given height from the top... is it possible in CSS? Confused

something like:

{background-position: 0px 165px;}

with it to repeat-y?? Smile


 Spoiler:
 
Back to top
$en$i
VIP Member



Posts: 3127

PostPosted: Mon, 4th Jun 2007 22:03    Post subject: Re: CSS code help
Unfortunately -and afaik- you can't do that... Sad

You can only define the x value if you use repeat-y and the y value if you use repeat-x.

which means either that:

<STYLE type="text/css">
<!--
BODY { background-image:url(test.gif);
background-repeat:repeat-x;
background-position:0px 165px;
background-attachment:fixed }
-->
</STYLE>

or that:

<STYLE type="text/css">
<!--
BODY { background-image:url(test.gif);
background-repeat:repeat-y;
background-position:165px 0px;
background-attachment:fixed }
-->
</STYLE>
Back to top
UserFriendly7
Moderator



Posts: 1471
Location: England
PostPosted: Sat, 9th Jun 2007 16:18    Post subject:
ah wicked... thanks for the help.. all resolved Smile


 Spoiler:
 
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - Programmers Corner
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group