I am trying to create a fuild layout using the flexbox CSS property. I am trying to design a three-column layout, but my attempts seem to be out of place. style sheet is as follows.
some background information: I am designing in C # ASP.NET. so my HTML has some code that makes it easier (for me) to have variable content with a layout layout. Basically, only content changes in the menu clicks, and the rest remain the same throughout the website.
.MainContainer{
display: flex;
flex-direction: column;
border-style: solid;
}
.ContentContainer{
width: 100%;
fill:aliceblue;
display: flex;
flex-direction: row;
border-style: solid;
}
.header{
width: 100%;
height: 15%;
text-align: center;
border-style: solid;
}
.footer{
width: 100%;
height: 15%;
text-align: center;
border-style: solid;
}
.navbar{
display: flex;
width: 15%;
align-self: stretch;
align-items: center;
flex-direction: column;
padding:2px;
margin: 10px;
min-width: 15%;
border-style: solid;
}
.content{
display: flex;
align-self: stretch;
width: 95%;
padding:10px;
margin: 10px;
text-align: justify;
min-width: 90%;
overflow:hidden;
border-style: solid;
}
.aside{
display: flex;
width: 15%;
align-self: stretch;
align-items: center;
flex-direction: column;
margin: 10px;
padding: 10px;
min-width: 15%;
border-style: solid;
}
HTML code:
<div class="header">This is the Header space</div>
<div class="ContentContainer">
<nav class="navbar">
<a href="Home.aspx">Home</a>
<a href="About.aspx">About</a>
<a href="Contact.aspx">Contact</a>
</nav>
<%-- start of variable content--%>
<form id="form1" runat="server">
<div class="content">
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div>
</form>
<%-- end of variable content--%>
<div class="aside">Content Area for Latest items.</div>
</div>
<div class="footer">Tis is the Footer space</div>
: , , . div , .
, , 15% .
?