DIV does not appear in the CHROME and IE browser

Asked

Viewed 161 times

3

I’m trying to solve a CSS in my development:

HTML:

I created a Responsive DIV with 1 COLUMN (GRID of 6) for a specific content section. I already put text inside this.

CSS:

I created a class to style this DIV

#saldos{
    background-color:FFFFFF;
    height:200px;
    display:block;
}

The result is none in the browser, only the text appears, but no background. I think that some PAI class is preventing the result I want to SON.

How do I find out what’s going on? I’ve been to inspect element to see what might be influencing this CSS.

  • You must have # before the colour code, test with background-color: #FFFFFF; and give him a width also, if it has no content.

  • 1

    Thanks a lot Sergio :) It’s solved.

  • Mark @Sergio’s response with the green check please

1 answer

2


The color format in the CSS is in hexadecimal, but have a clerical error. You must have # before the colour code, test with background-color: #FFFFFF; and so the syntax is already correct.

jsFiddle: https://jsfiddle.net/kLzsv34r/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.