I am currently working on the portfolio project and I am having some serious trouble.
I figured I would kind of build out the template for the site and then go back through and add all my content/style it.
I got through the template side of things pretty easily, but I am having serious trouble with positioning anything where I want it to go. One example is that I have a box on the very first page with a welcome note and is also where I will add the links to my social media accounts. I was able to make the box and get the first headline in there no problem, but I can’t for the life of me get it to center inside the page its on. I actually get get it to move vertically at all.
this is the code that I have it in. I know I am missing something, but I have tried adding other divs to center it inside and nothing seems to work. Does it have something to do with it being inside a “section” instead of a
Welcome to CMH Designs
this is the css for the block and heading
h1 {
margin-top: 5px;
font-family: Arvo;
display: block;
color: white;
text-align: center;
margin: 0px;
padding-top: 0px;
}
.block {
background-color: #36454F;
opactiy: .85;
width: 75%;
height: 25%;
margin: 0px auto;
opacity: .85;
border: solid black 0px;
border-radius: 10px;
}