fixed background

Change your online store into modern look with myStore eCommerce VirtueMart Joomla template - discussion forum.
GK User
Mon Feb 21, 2011 10:08 am
Hi,

Can you give the code for fixed background please ?
Thanks team.
User avatar
Gold Boarder

GK User
Mon Feb 21, 2011 10:14 am
add this to override.css and enable it from tèmplate manager
Code: Select all
body { background:url(../path/to.your/backgroundimage.png) fixed }
User avatar
Platinum Boarder

Konrad M
Mon Feb 21, 2011 10:17 am
or try to add to override.css
Code: Select all
body {
background-attachment:fixed;
}
User avatar

GK User
Mon Feb 21, 2011 10:23 am
No, both don't work
User avatar
Gold Boarder

Konrad M
Mon Feb 21, 2011 10:31 am
Can You give us url to your site ?
User avatar

GK User
Mon Feb 21, 2011 10:37 am
User avatar
Gold Boarder

Konrad M
Mon Feb 21, 2011 10:42 am
ok
try add to override.css
Code: Select all
body {
background:url("../images/main_bg.png") no-repeat fixed center 0 #EFEFEF;
}


and be sure that you enable it.

If not work go to template.css and change
Code: Select all
body {
background:url("../images/main_bg.png") no-repeat scroll center 0 #EFEFEF;
line-height:1.8;
}



to

Code: Select all
body {
background:url("../images/main_bg.png") no-repeat fixed center 0 #EFEFEF;
line-height:1.8;
}
User avatar

GK User
Mon Feb 21, 2011 10:50 am
just my words;)
User avatar
Platinum Boarder

GK User
Mon Feb 21, 2011 10:50 am
Yes, the second in a template css is good.

Thanks a lot.

Rv
User avatar
Gold Boarder

Konrad M
Mon Feb 21, 2011 10:52 am
True explodedk :) You inspired me ;)
User avatar

GK User
Mon Feb 21, 2011 11:40 am
yay... and welcome on the team;)
User avatar
Platinum Boarder

Konrad M
Mon Feb 21, 2011 11:43 am
Thanks I'm glad I will work with this team :)
User avatar


cron