I have a page with text, and a div with image and short text about the image in the right.
I want to set only the max-width of the image (and not the width) and I want the text of the image to be limited to the width of the image. I used one of the answers here: Limit text to the width of sibling image / auto width in CSS - and set the right div: display:table and width:1px. But now I have a problem in ie8, because ie8 has a bug described here: http://bytes.com/topic/html-css/answers/870359-ie8-display-table-cell-max-width-bug - It gives wrong width to element when the child's max-width is smaller than intrinsic width.
In the link above there is a solution - to set table-layout:fixed, but it causes my div to be in width 1px.
Does anyone have a solution?
Thank you!
PS I have pictures that illustrate the problem, but I am a new user so I can not post them...