Jump to content

how to set background image for cms pages.


Recommended Posts

hi, 

 i have created one custom cms page i want to set background image for cms page. how to give background image to that page.

i tried like this but it is not working:

<div style="backgroud-image:url('my image url');">

<p>

..............

..........................

 

</p>

</div>

Link to comment
Share on other sites

you have to know that page id

then in styleshet file use something like:

 

.cms-1 {

background:('http://myimage/file.jpg');

}

 

where 1 is the id of the CMS page for which you want to apply background

i tried this, but not affecting, my cms page id is 16

 

.cms-16{

background:(' my image url');

}

 

in cms page:

 

<div class="cms-16">

<p>

.

.

.

.

.

</p>

</div>

 

i coded like this, but background image not affecting..

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...