-
Blockquote MUST have a block level child around inline level or cdata elements…
-
I meant the CITE tag, though the CITE attribute isn’t a bad idea either.
-
that last one probably shouldn’t have a div around it – though that depends on where in the code it ends up.
-
You’re attempting to use the same ID more than once – remember ID’s are supposed to be unique on a page… NOT that there’s any reason for those inner ID’s.
-
if you have to say …/ or even / from your markup or CSS, there’s probably something wrong with your directory structure…
-
You could REALLY do yourself a favor and forget that HTML 5 garbage even exists. It is NOT ready for real world deployment and does NOT offer any real improvements over what came before it, while it DOES loosen the structural rules and introduce redundancies to the point of undoing ALL of the progress STRICT (4 or X 1.0) had given us the past decade.
-
might ‘suck’ from an accessibility standpoint, but EM’s auto-enlargement means you can’t predict how many lines OR how tall your text will end up – I hate to say it but a switch to PX would be more predictable (though broken for geckotards who still use it’s broken/outdated text-only resize). Besides, 24px (150% of a default 16px “small fonts/96dpi”) is big enough it’s unlikely anyone will plotz over it.
-
TITLE should probably go on the Anchor to say where the A goes, not the image where it serves no purpose.
thinking on it I’d probably wrap a div around the groups, use a P inside the blockquote around both the image and the text (since that’s all one ‘thought’), the CITE tag around the inner anchor… well, here:
<div id="testimonialAndProspectus">
<blockquote cite="#videoAddress">
<p>
<span>The best thing for me, is that everything is in one place on campus</span>
<cite>
<a
href="#videoAddress"
title="Interview with James"
>
<img
src="../images/video-thumbnail.png"
width="204" height="125"
alt="James"
/>
</a>
</cite>
</p>
</blockquote>
<a
href="#"
class="order"
title="Learn more about the University, student life, courses and more; Order a prospectus"
>
<img
src="../images/pros.png"
width="200" height="125"
alt="Order a prospectus"
/>
</a>
<!-- #testimonialAndProspectus --></div>
#testimonialAndProspectus * {
margin:0; padding:0; /* in case you're not using a reset */
}
#testimonialAndProspectus {
overflow:hidden; /* wrap floats */
zoom:1; /* trip haslayout, wrap floats legacy IE */
padding-left:22px;
font:italic 24px/27px Georgia, "Times New Roman", Times, serif;
background:url(images/quote.png) 0 0 no-repeat;
}
#testimonialAndProspectus span {
float:left;
display:inline; /* prevent IE margin doubling */
width:236px;
padding-top:22px;
margin-right:22px;
}
#testimonialAndProspectus img {
display:block; /* kill any alignment */
}
#testimonialAndProspectus .order {
float:right;
}
The ‘need’ for the dummy span is annoying, but only way to predictably keep that from blowing out of it’s container. Notice the inclusions of width/height on the IMG tags, this lets the browser size their boxes before they load, so you don’t have an extra “reflow” of the page. I also avoid declaring padding the same time as width to increase the likelihood of this working in older browsers.
Remember, blockquote must have a BLOCK LEVEL children ONLY if you’re writing proper/modern (aka STRICT) code. You can’t put an A, or a SPAN, or CDATA as it’s direct descendant… Unless you’re writing transitional code like it’s 1998. Given that HTML 5 seems to be all about rolling the clock back to 1998, wonder where it stands on that – LIKE IT MATTERS - that’s something else I’d suggest, skip jumping the gun on the HTML 5 bandwagon and roll back to an actual recommendation specification like HTML 4.01 STRICT or XHTML 1.0 STRICT – you’re just causing more headaches for yourself ESPECIALLY with the stupid shim and total lack of anything resembling rules to make validation meaningful.
It might also help to get the FORM and FIELDSET in place for your inputs up top, since when you add those they’ll do all sorts of funky things to your style. There’s a reason I always recommend writing ALL your content up semantically BEFORE even THINKING about your media=“screen” appearance – especially since if you’re thinking on taking this into “responsive design” (New name for the entire POINT of using HTML in the first place) your desktop “screen” appearance will NOT be your only target.
Oh, and if that “order a prospectus” image is the ‘final’ appearance, I’d kill using a image for that and use text instead… Likewise I’d REALLY try to fit some text with that image on the vid link inside the CITE. Even images off and with TITLE it’s still a ‘unlabelled quote’.