- Posts: 16
- Thank you received: 0
Replace backgroundColor with image
-
dav_jos
Inactive member - Topic Author
- New Member
Less
More
12 years 10 months ago - 12 years 10 months ago #15101
by dav_jos
Replace backgroundColor with image was created by dav_jos
Hello,
please how can one replace $backgroundColor = "#000000"; in style3.php with an image? hot_ecommerce template
I want image background
thanks
please how can one replace $backgroundColor = "#000000"; in style3.php with an image? hot_ecommerce template
I want image background
thanks
Last edit: 12 years 10 months ago by dav_jos.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 10 months ago - 12 years 10 months ago #15118
by ivan.milic
Replied by ivan.milic on topic Re: Replace backgroundColor with image
You don't need to replace you just add your rule for example in bottom of template_css.css , and if required add !important tag so it will override all other rules.
body {
background-color: transparent!important;
background:url(...) top center no-repeat!importnat;
}
body {
background-color: transparent!important;
background:url(...) top center no-repeat!importnat;
}
Last edit: 12 years 10 months ago by ivan.milic.
Please Log in to join the conversation.
-
dav_jos
Inactive member - Topic Author
- New Member
Less
More
- Posts: 16
- Thank you received: 0
12 years 10 months ago - 12 years 10 months ago #15124
by dav_jos
Replied by dav_jos on topic Re: Replace backgroundColor with image
Thanks, but how can I define it to fit like red part of the body(please see attached).
Before your code and after the code.
THE CODE:
body {
background-color: transparent!important;
background:url(../images/bg.png) center left no-repeat!important;
}
Before your code and after the code.
THE CODE:
body {
background-color: transparent!important;
background:url(../images/bg.png) center left no-repeat!important;
}
Last edit: 12 years 10 months ago by ivan.milic.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 10 months ago #15156
by ivan.milic
Replied by ivan.milic on topic Re: Replace backgroundColor with image
THE CODE:
body {
background-color: transparent!important;
background:url(../images/bg.png) center top no-repeat!important;
}
btw. I made mistake last time it's not
color: transparent!important;
it's
background-color: transparent!important;
body {
background-color: transparent!important;
background:url(../images/bg.png) center top no-repeat!important;
}
btw. I made mistake last time it's not
color: transparent!important;
it's
background-color: transparent!important;
Please Log in to join the conversation.
-
dav_jos
Inactive member - Topic Author
- New Member
Less
More
- Posts: 16
- Thank you received: 0
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 10 months ago #15164
by ivan.milic
Replied by ivan.milic on topic Re: Replace backgroundColor with image
Hi, if you want to repeat it then use:
background:url(../images/bg.png) center top repeat-y!important;
background:url(../images/bg.png) center top repeat-y!important;
Please Log in to join the conversation.
Time to create page: 0.171 seconds