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
Zeeshan Dawood
7,210 PointsNeed 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.
Zeeshan Dawood
7,210 Points*{
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
*********************************/
Zeeshan Dawood
7,210 PointsI found it. It was a syntax error. Sorry.
1 Answer
Luke Glazebrook
13,564 PointsGlad you managed to solve your problem there Zeeshan.
Keep up the good work with your programming!
Zeeshan Dawood
7,210 PointsZeeshan Dawood
7,210 Points<doc html> <head> <title>Zeeshan Dawood</title> <link rel="stylesheet" type="text/css" href="mystylesheet1.css"> <link rel="stylesheet" href="normalize.css">