Home > Background Color > Css Body Background Color Not Working

Css Body Background Color Not Working

Contents

Would there ever be a reason why doing this might be a bad idea? Since this issue I've been declaring my main background style on the HTML element as a preventative measure on the site it gave me a fit on. Not the answer you're looking for? height: 720px; looks like it should do the trick. http://svpartner.com/background-color/css-body-background-color.html

It was only after I logged off treehouse and reopened my workspace that whatever was wrong fixed itself. Not the answer you're looking for? But still, it's weird to notice that HTML can inherit background of BODY ;) < pre>head {display:block; /* from that , what ever is in head with opening/closing bracks can receive Something about that doesn't feel right to me. http://stackoverflow.com/questions/13118418/css-background-color-not-working

Css Body Background Color Not Working

The body background still flows on the whole page. Sign in Email Address Password I forgot my password Sign in loginsign up Your browser is not supported. Code ladder, Robbers What does the actual path of air within a turbojet engine look like? I cannot set the width and float, is it possible without them?

What is the more appropriate adjectival form of Trump? You might want to include your stylesheet after bootstrap. –torazaburo Nov 8 '14 at 3:16 Don't load your external script files within divs. Post your question and get tips & solutions from a community of 418,809 IT Pros & Developers. Html Background-color Not Working The divs need to assert themselves.

Could not for the life of me figure out why something that has always worked without any issues was suddenly causing issues. Css Background Color Not Working In Chrome That's not necessary, It should either go before the closing body tag or in the head section. –UserDy Nov 8 '14 at 3:18 Seems to work as a JSFiddle: red is really near to brown. http://stackoverflow.com/questions/944663/css-background-color-has-no-effect-on-a-div Understanding which string breaks when one pulls on a hanging block from below How to prove that authentication system works, and that the customer is using the wrong password?

share|improve this answer answered Jun 3 '09 at 13:23 Emily 8,52041832 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign Div Background Color Not Working Linked 0 CSS background-color: not working when I change VS versions Related 2354Set cellpadding and cellspacing in CSS?538Stretch and scale CSS background781When to use IMG vs. I have a series of divs which are all children from one parent div. has a white background instead of the pink one I used to demonstrate what I wanted to do.

Css Background Color Not Working In Chrome

in your coding, you should(if you arent already) be using

edit: could you maybe point us in the direction of the page you are having difficulty with? https://teamtreehouse.com/community/my-code-to-change-the-background-color-to-orange-in-maincss-file-is-not-working-why Rumpel Permalink to comment# May 24, 2013 Make it min-height:101% If your page grows you will get vertical scroll bars anyway - better trigger their appearance beforehand. Css Body Background Color Not Working Gotta really tell things to hold their own and maintain their territorial boundaries to keep their parents wrapping around them properly. Css Body Background Color Not Showing Possibility...

Either give it a height or set its overflow to hidden. http://svpartner.com/background-color/background-color-not-working-in-ie8.html Where would i set the background color in the .css file then if not in a div? 0 drjohn 56 6 Years Ago And never use reserved words as your tag My suggestion: Change the tutorial to colors which arent near to each other. Hot Network Questions Why were pre-election polls and forecast models so wrong about Donald Trump? Css Background Color Not Showing

Looking for ones that are optimized for this sorta thing, and ... Am new to Latex and want to make a table with 6 columns but the code below wont work. Your code does not contain this Code: #container { background-color: #457632; } Sep 16, 2003,01:42 #9 BenANFA View Profile View Forum Posts SitePoint Addict Join Date Apr 2003 Location Bath, UK http://svpartner.com/background-color/css-body-background-color-not-showing.html Will it expand automatically? (btw, I was messing around with the code, so you probably cought it when I took away the div bgcolor) Sep 18, 2003,01:25 #12 BenANFA View Profile

What's happening? Div Background Color Not Showing To critique or request clarification from an author, leave a comment below their post. –T J Nov 8 '14 at 4:22 add a comment| up vote 0 down vote html { How come the first subdiv does take the background color but the second one doesn't?

Mikaela Schaefer 817 Points Mikaela Schaefer Mikaela Schaefer 817 Points about 2 years ago Hey guys!

Any suggestions Citing work with a publication year in the future Animated plot required to leave behind trace How does Gandalf end up on the roof of Isengard? This forum is now closed to new posts, but you can browse existing content. I caught the mistake right after I posted last night haha! Bootstrap Body Background Color What in the heck?

What is the meaning of "barnet front"? simple function not working in FF multiple inheritance Inheritance Question in VB.NET Inheritance and child creation Constructor inheritance (or lack thereof) multiple inheritance super() Inheritance question - I am new to If someone can explain me what the problem is, that would be great. have a peek here Ed O'Rourke Permalink to comment# March 20, 2014 Thanks for this.

Encasing a star in a perfect insulator Extract csv from .shp files? Which is much neater. @Bennet, that will not work. Could that be my problem? But it is interesting how the background properties will bleed over from the BODY to HTML element.

I think the HTML element is like the canvas of the site. Our mission is to bring affordable, technology education to people everywhere, in order to help them achieve their dreams and change the world. Working Example share|improve this answer answered Oct 29 '12 at 9:01 Pranav 웃 5,85932642 add a comment| up vote 0 down vote Add overflow:auto to .question-template http://jsfiddle.net/4zjtp/2/ share|improve this answer answered Now the body div you had is probably not causing your issues.

Jon Mackay Permalink to comment# May 26, 2013 Look to see if there is a background element on the HTML tag If there is remove it or just make the HTML PPM File Modifier "president-elect" grammatically correct? You did, but the fact that that red color floods the background is just a strange anomaly of CSS. Sep 19, 2003,02:21 #16 BenANFA View Profile View Forum Posts SitePoint Addict Join Date Apr 2003 Location Bath, UK Posts 353 Mentioned 0 Post(s) Tagged 0 Thread(s) Skewed in what way.

Has a movie ever referred to a later movie? Any suggestions What to do when your opponent doesn't play along in the opening? by the way no need to remove the float: left;.