Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Need Css help. What am I missing or not understanding,

My objective is to make the .main-header container display in the CSS. However, I'm not understanding why it won't display.

<doc html> <head> <title>Zeeshan Dawood</title> <link rel="stylesheet" type="text/css" href="mystylesheet1.css"> <link rel="stylesheet" href="normalize.css">

</head>
<body>
    <div class="main-wrapper">
        <div class="color-boxes">
            <ul class="flex-container">
                <li class="flex-item">1</p></li>
                <li class="flex-item">2</li>
                <li class="flex-item">3</li>
                <li class="flex-item">4</li>
                <li class="flex-item">5</li>
                <li class="flex-item">6</li>

            </ul>
        </div>

        <div class="main-header">
            <h1>Zeeshan</h1>
            <h1>Dawood</h1>

                <ul>
                    <li>Artist</li>
                    <li>Designer</li>
                    <li>Developer</li>

                </ul>
        </div>

        <div class="main-bottom">
            <p>places to place the links</p>
        </div>


    </div>
</body>

</html>
*{
    padding:0px;
    margin:0px;
}
/********************************
    BACKGROUND
*********************************/

.main-wrapper{
        background-color:white;
        width:90%;
        height:90%;
        margin:auto;
}

/********************************
    Color Boxes Bar
*********************************/
.color-boxes{
    background-color:red;





}
.flex-container{
    background-color:yellow;
    padding:0;
    margin:0;
    list-style:none;


      display: -webkit-box;
      display: -moz-box;
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;



     justify-content: space-around;
}     



.flex-item{

    background-color:blue;
    padding:0px;
    width:auto;
    /*height:100%;*/
    /*I am not understanding what happens here when the height is turned on ***/
    margin:0px;

    flex-grow:1;


    color:white;
    font-weight: bold;
    font-size: 2em;
    text-align: center;

}

/********************************
    Main Header
*********************************/
}
.main-header{

            background-color:black;
            color:white;
            margin:;
            padding:0;

            text-align:center;
            text-transform:uppercase;



}
.main-header li
{

            }


/********************************
    Main bottom
*********************************/
.main-bottom{
            background-color:gray;
            color:white;
            margin:0;
            padding:0;
            border:none;
            padding: 1px;
            height:45%;

}

/********************************
    Media Query 1
*********************************/

I found it. It was a syntax error. Sorry.

1 Answer

Glad you managed to solve your problem there Zeeshan.

Keep up the good work with your programming!