1 reply [Last post]
cmartin19
cmartin19's picture
Offline
newbie
Last seen: 8 years 31 weeks ago
Timezone: GMT-7
Joined: 2008-05-12
Posts: 10
Points: 5

Hello, I'm trying to place text besides an image within a border 1px thick. The problem is the border ignores the image if the text is say, only 1 line long. The border will not expand height wise to accomodate the image. As a result, the length of the image ends up laying over the bottom of the border. The only way around this is to create enough content so that it is longer than the height of the image in which case the bottom border will see the text and accomodate both image and text. Thanks for any help, cm :?

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 4 years 47 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Sorry but the code you

Sorry but the code you posted has become invisible Wink

What's the betting though that the images are floated?

If they are have you accounted for any float containment for the parent element?

Search on 'clearing float containers' or 'containing floats' if the above applies.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me