CSS issue: Problem with change background color
-
(Disclaimer: I’m new at wordpress and CSS)
Hi,
I could need some help with an issue regarding my background color. I tried to change the background, but there is still two white bars on my site.
I did following:
}
.site {background: whitesmoke;
}How do I either remove the two bars or change the color of the bars?
This is my site: http://www.tuekraemer.dk
-
Hi tueklarsen,
The .site css tag that you are using is changing the color for a specific class of div’s on your page.
If you would like all the content on your page to have the background: whitesmoke; you can add the following to your CSS:
body {background: whitesmoke;}
This will change the background of the entire body section of your site to be the same color as the site div.If you would like to learn more about divs feel free to read the information available here: Tag on w3schools.com” rel=”” target=””> HTML div Tag on w3schools.com
-
Hi starker3
Thank you for the answer. I tried to add body {background: whitesmoke;} but I still have two white bars on my site?
-
I see on your site that you added
.body {
background: whitesmoke;
}This would only work if you had a class called body, if you remove the . from before the body like this
body {
background: whitesmoke;
}
then it should work -
-
You are very welcome,
I’m glad that the solution worked for you.If you want to learn more about CSS check this website out, it has a ton of information and guides for free
http://www.w3schools.com/css/
- The topic ‘CSS issue: Problem with change background color’ is closed to new replies.