1

I've used a solution from Replacing H1 text with a logo image: best method for SEO and accessibility, but I need to insert two divs, each float right, under each other. I have some problems with that. How to fix that?

Please see the example here: http://jsfiddle.net/QnFZT/1/ (updated)

Community
  • 1
  • 1
Haradzieniec
  • 8,150
  • 26
  • 100
  • 199

1 Answers1

0

Putting the image in a floating div solved it. See http://jsfiddle.net/dgSCy/1/

But you definitely shouldn't put block elements inside inline elements such as headers...

Jonas
  • 891
  • 8
  • 16
  • But even if he used an inline element as span, it would be turned into block by the float property. –  Aug 03 '12 at 12:15
  • Putting an image in an additional {floating} div reduces accessibility (please see the question I've started from, it's a logo for SEO and accessibility, not just an image)... Am I right? – Haradzieniec Aug 03 '12 at 13:07