Easyish – can anyone help find the CSS that makes these 2 validation errors?
-
Hi, I think this might be an easy probelm to sort, but not for me as I am quite new to this. I got some validation errors which I have copied below, and also copied the piece of code which I think they relate to.
Does anyone know what changes I ought to make to that code?
Thank you soooooo much!!
1. Line 90, Column 10: Element hgroup not allowed as child of element header in this context. (Suppressing further errors from this subtree.)
<hgroup>
Content model for element header:
Flow content, but with no header, footer, or main element descendants.2. Line 90, Column 10: The hgroup element is obsolete. To mark up subheadings, consider either just putting the subheading into a p element after the h1-h6 element containing the main heading, or else putting the subheading directly within the h1-h6 element containing the main heading, but separated from the main heading by punctuation and/or within, for example, a span class=”subheading” element with differentiated styling. To group headings and subheadings, alternative titles, or taglines, consider using the header or div elements.
<hgroup>The code I used to put a logo by my site title. I wonder if this is bad code because it amkes the site-header the h1 when in fact I think the page titles ought to be. Incidentally, when i remove the three H1s in it my logo appears multiple times overlapping the menu bar. I am too new to know just yet what is going on! (My website is still in maintenance mode just now)
/* ===== begin logo ===== */ .site-header h1 a:before { content: ""; display: block; width: 48px; height: 48px; margin: 0 auto 12px; background-image: url("https://joygodfreyplaytherapy.co.uk/wp-content/uploads/2014/10/Logo-for-Play-Therapy.jpg"); background-size: cover; } .site-header h1 { margin-bottom: 0; } @media screen and (min-width: 600px) { .site-header h1 a:before { width: 72px; height: 72px; position: absolute; top: 0; left: -96px; } .site-title, .site-description { position: relative; margin-left: 96px; } } /* ===== end logo ===== */
Thanks for all your help. I appreciate it so much!!
- The topic ‘Easyish – can anyone help find the CSS that makes these 2 validation errors?’ is closed to new replies.