Oct 30, 2019 05:25 PM
(This post was last modified: Oct 30, 2019 06:17 PM by craigOwnsYou.)
I'm making my Dad a website. I have this CSS code and I am trying to center the menu before I get to everything else. The reason is I'm trying to get a basic structure going to work with for the site.
I looked it up on Stack Overflow a couple of places and made some progress, but the menu isn't centering:
Lol, once I get a good structure for the website before I continue to the next portion of the website.
Hoping to add in more pages but for now I'm just looking to get a basic structure going.
But first, I need to get the menu working.
Please advise.
UPDATE!!!
I got it working!!!
Nevermind.
I looked it up on Stack Overflow a couple of places and made some progress, but the menu isn't centering:
Code
#vcontainer {
display: table;
height: 100%;
width: 100%;
}
#hcontainer {
display: table-cell;
vertical-align: middle;
text-align: center;
}
#content {
display: inline-block;
border: lightGray 1px solid;
background-color: lightBlue;
text-align: left;
}
#menu {
justify-content: center;
}
div.button {
float:left;
margin-right: 20px;
}Lol, once I get a good structure for the website before I continue to the next portion of the website.
Hoping to add in more pages but for now I'm just looking to get a basic structure going.
But first, I need to get the menu working.
Please advise.
UPDATE!!!
I got it working!!!
Nevermind.



![[Image: AAjOYL.gif]](https://vgy.me/AAjOYL.gif)