Hi there,
I’m preparing this site and it’s for tabletop, ipad and iphone among others, but they are the most important.
I’ve been using <link rel> for the 720px and 480px stylesheets, but for some reason I can’t figure out they just don’t seem to load. I’ve consulted various sites to make sure that I am doing it OK and it seems I am. So I’m appealing to other wiser more experienced shoulders to tell me why it’s not working.
Those style sheets seem to be working to me, although there are a few bugs there. It looks a bit broken up on the iPhone. The first two video boxes are out of place.
Thanks Paul. I’ve had a few problems as you can see and I thought it would be very simple.
Of course, border and background on the container, it’s obvious isn’t it. Maybe I need to step back and examine these things with a bit more nous.
The showreels were always disappearing off the bottom until I gave them negative margins, which worked on fullscreen, but seems to have messed up badly on 720 and 480 widths.
I’ll redo it all tomorrow which will bring me some peace of mind, I hate having work screw up.
Indebted to you again, Paul. Thankyou.
Those are hacks that target IE6 (first line) and IE7 (second line) only. Those browsers don’t support display:inline-block properly, so we have to use display:inline. All other browsers are smart enough to know that the <html> element can neither be inside nor alongside anything, so they ignore those lines. IE6/7 isn’t that smart and so it uses them.
Stevie explains the hack mechanism and I discuss the inline-block behaviour below
It’s hack for ie6 and 7 so that they behave like inline block. IE7 and under don’t have native support for inline block on block elements but they do have support for inline-block on inline elements.
It’s more complicated than that as the inline-block behaviour is really achieved by giving an inline element haslayout. For a block level element you make it inline and then ensure it has haslayout.
For IE6, leave a space between * and html. I haven’t seen such a hack for IE8, but IE8 has good CSS support, so you most likely won’t need such an artifice. (And if you do, I guess just use a conditional comment.)