I have the following div layout:
Everything is fine when I put normal txt elements in both the blue and the orange div. However, when I place an image in the orange div (which is 31px), the elements in the blue div get pushed down by about half the height of the blue div.
(additional info, when hovering over the html for the orange div in firebug, it seems like only half of the image is contained within it, even though to the naked eye it appears fine).
Would appreciate any help, I’m still a bit rusty on the box model. Thanks.
Related Questions
No related questions found
You might want to try floating the image to the left of the text. This way the text will sit next to the image without the need for positioning. For example:
Adjust the layout by giving your container div some padding and/or the image a margin and you should be able to get exactly the look you’re after. Good luck!