Hi ekka,
There is actually a lot of things that can be cleaned up in both the HTML and CSS. Several rulesets in the CSS have styles that are not doing anything because they are in conflict with CSS specs. And as mentioned earlier, a lot of repetitious styles can be removed.
Starting from the top of you stylesheet, I may not get everything and I’ll add comments in the CSS at times.
No need to declare width/height on the body again, it was already done when it was grouped with the html.
body, html {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
body {
height: 100%; /*repeated*/
width: 100%; /*repeated*/
background-color: #d0d0d0;
padding: 0 20px;
box-sizing: border-box;
}
.formwrapper {
float: right;
margin: 0 30px auto auto; /*auto margins are ignored on floats*/
/*overflow: hidden; /*not really needed here*/
}
Don’t use spans for what should be heading tags, this heading in your header would be the <h1>
tag on that page. You can use a span for further styling inside the <h1>
<div class="titlewrapper">
<span class="utopic-flowers"><!-- This should be an H1 tag -->
<span>u</span>topic <span>f</span>lowers
</span>
<span class="utopic-flowers2">free PSD webSite template</span>
</div>
An element can’t be a float and an inline-block at the same time, float wins in this case.
Add clear:both so the floated menu drops below the form and heading. That way it won’t jump around.
@media (min-width : 730px) {
.navbartop {
display: inline-block; /*this rule does nothing*/
float: right; /*float trumps inline-block*/
/*margin-top: 52px; /*remove top margin and add clear:both*/
margin-bottom: 0;
clear:both; /*clear the form and title floats so the menu doesn't jump around on page resize*/
}
.headerText p {
width: 70%;
font-style: italic;
font-size: 18px;
text-align: center;
vertical-align: center; /*no such animal in css specs, v-align does not apply to display:block, which a p-tag is*/
/*vertical-align accepts top, middle ,bottom, baseline is default, see specs for more info and values*/
margin: auto auto;
padding: 25px 0;
}
I’ll continue later with other parts of the page. 