hahaitwork Posted October 31, 2012 Share Posted October 31, 2012 On my website Is like this: Cart Buttons Products So, i want my background image to "stick" with the buttons and products, any idea how I can do that ? I can manage to load the background and no repeat, but I really need it to stick together with the content because when my cart gets filled up.. everything on the site will drop down some PX.. That is why I need it to stick. - Also thanks for everyone that answers, you are helping a lot! Quote Link to comment https://forums.phpfreaks.com/topic/270119-background-follow-content/ Share on other sites More sharing options...
nodirtyrockstar Posted October 31, 2012 Share Posted October 31, 2012 It would appear that your question belongs in an HTML forum. Quote Link to comment https://forums.phpfreaks.com/topic/270119-background-follow-content/#findComment-1389057 Share on other sites More sharing options...
hahaitwork Posted October 31, 2012 Author Share Posted October 31, 2012 It would appear that your question belongs in an HTML forum. Might be, as I was not sure where to put the code, as it had to be dynamic and such. Should I try there insted? Quote Link to comment https://forums.phpfreaks.com/topic/270119-background-follow-content/#findComment-1389062 Share on other sites More sharing options...
hahaitwork Posted November 1, 2012 Author Share Posted November 1, 2012 I notice that the topic is moved to CSS, but is this right? I mean, it's dynamic etc but CSS is more "style" and can CSS work dynamic with the rest of the script? Quote Link to comment https://forums.phpfreaks.com/topic/270119-background-follow-content/#findComment-1389229 Share on other sites More sharing options...
hahaitwork Posted November 1, 2012 Author Share Posted November 1, 2012 On my website Is like this: Cart Buttons Products So, i want my background image to "stick" with the buttons and products, any idea how I can do that ? I can manage to load the background and no repeat, but I really need it to stick together with the content because when my cart gets filled up.. everything on the site will drop down some PX.. That is why I need it to stick. - Also thanks for everyone that answers, you are helping a lot! I have now changed the site, so it is: buttons products cart This way my BG can work but i still need to find out how to make 2x background, 1 for top (no repeat) and 1 that go down, (repeat) Quote Link to comment https://forums.phpfreaks.com/topic/270119-background-follow-content/#findComment-1389239 Share on other sites More sharing options...
hahaitwork Posted November 1, 2012 Author Share Posted November 1, 2012 Solved : background-image: url(test.jpg), url(test2.jpg); background-position: left top, left; background-repeat: no-repeat, repeat; Quote Link to comment https://forums.phpfreaks.com/topic/270119-background-follow-content/#findComment-1389241 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.