Hi Jason,
There are many roads that lead to Rome.
One way to make sure that your code validates is to go to Showing results for https://jaygtel.github.io/arcnet_main/ - Nu Html Checker I find this link valuable especially when the code does not behave.
I also tend to keep the code as simple as possible (KISS). When I see
<body> <div class="wrapper"> <div class="pageheader"> <div id="pageheaderimg"> <h1 class="pgheadertxt" id="pgheadertitle"> Welcome to arcnet.io</h1> <p class="pgheadertxt" id="pgheadersub"> Authentic | Relatable | Content</p> </div> </div> </div> </body> |
I immediately think, why are you not using the BODY tag as a wrapper? Why do you have a DIV with a CLASS followed by one with an ID? Why have an H1 tag with a CLASS and an ID. Similarly the P tag. There may be moments that you will require the extras, but always keep KISS in mind.
If I were to write the code, it would look like
<body> <header> <h1> Welcome to arcnet.io</h1> <p> Authentic | Relatable | Content</p> </header> </body> |
and the CSS would look like
@charset "UTF-8"; /* base CSS Document - defines the look and feel for the entire site. This document will define the base css for arcnet.io */ /* reset css rules before applying custom css */ * { margin: 0; padding: 0; border: none; min-width: 100%; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', Verdana, 'sans-serif'; } header { height: 500px; background-color: purple; color: white; } header h1 { font-size: 6em; padding-bottom: 10px; word-spacing: normal; text-align: center; position: relative; top: 40%; transform: translateY(-50%); } header p { font-size: 2.5em; text-align: center; position: relative; top: 40%; transform: translateY(-50%); } |
I also tend to use CLASS for my style rules, reserving ID's when I truly need a unique identifier for scripts that handle the DOM.
Having said that, there is nothing wrong with the code as you have got it. There are also other alternatives to what I have suggested. Whatever you do, make sure you have applied KISS 