Archived

This topic is now archived and is closed to further replies.

  • 0

Content Background On Home Page


Question

Posted · Report post

Hi there,

please.. anyone can sugget my a custom css code for customize the background ONLY in the home page.. as trasparente or black?

Thanks for fast reply

Home page that i would like to change background: http://stefanoferruggiara.com

Share this post


Link to post
Share on other sites

5 answers to this question

Posted · Report post

Catrina... doesn't work :(

Share this post


Link to post
Share on other sites

Posted · Report post

Hi Stefano

Please you can try with this CSS selector

.page-id-2 

If you also wish to know how I find the page ID, all you need to do is load up FireBug or Google Chromes web dev tool and inspect your page html, at the top you should see body which has a number of classes assigned to it, one of these is page-id-XX (replace XX with your pages id value. I have added a screenshot to assist you.

Captura%2520de%2520pantalla%25202012-11-07%2520a%2520las%252019.23.51.jpg

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks... please the complete code for trasparent or black then is?

.page-id-2 {background-color:#000000;}

??I would like that the white content became black or better transparent

Share this post


Link to post
Share on other sites

Posted · Report post

Stefano,

Try:


body.home .content {

    background: none repeat scroll 0 0 transparent;

    margin: 0 auto;

    position: relative;

    width: 100%;

}

If that doesn't work, replace body.home with .page-id-2

Share this post


Link to post
Share on other sites