Forums

[resolved] Page background not changing in CSS (6 posts)

  1. GDW
    Member
    Posted 4 years ago #

    Been going around in circles for about three hours now, I have searched the forum and also the docs for the answer but to no avail so thought I would see if anyone can help.

    I have taken the default theme and removed all images and I am "playing around" with the CSS, finding out what does what before developing my new site theme. I am reasonably experienced in CSS having developed several sites in the past, but have been "out of it" for a couple of years so am a little rusty.

    I am trying to change the background colour of the #page div but can not do so.

    #page {
    	background: white;
    	border: 1px solid #FF0033;
    	text-align: left;
    	}

    I have tried all of the usual fault finding techniques but still can not resolve this. What am I missing?

    Any help is much appreciated.

  2. t31os
    Member
    Posted 4 years ago #

    #page {
    	background-color: #fff!important;
    	border: 1px solid #f03;
    	text-align: left;
    	}

    That work?

  3. GDW
    Member
    Posted 4 years ago #

    It certainly does t31os!

    I had forgotten about the !important rule and had been messing around with z-index instead. Like I said, a little rusty!

    Embarrassed at having to post, but thanks for your help!

  4. t31os
    Member
    Posted 4 years ago #

    No problem.. ;-)

  5. talha8877
    Member
    Posted 3 years ago #

    I have the same problem and !important doesn't do it for me.
    I checked the css using FireBug and somehow another #page is generated in the header. I removed all the lines to test and that kubrickbg-ltr.jpg background is still there.
    FireBug addresses it as ;

    #page  {
    background:url("http://gumbetbeachresort.com/wp-content/themes/GBR_theme/images/kubrickbg-ltr.jpg") repeat-y scroll center top transparent;
    border:medium none;

    and this is strangely in gumbetbeachresort.com(which is my url) and not stylesheet.css

  6. talha8877
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic