Reconciling a thumbnail link with adjacent paragraph



I'm trying to resolve a contradictory situation in which I have rows
going down a page, and each consists of two elements: to the left is a
thumbnail image that is a hot link; to its right is a brief descriptive
paragraph.

The contradiction is that if I float the image to the left, the text in
the paragraph is shifted right in its the paragraph box by the
amount of the image width; if I put the text where I want it closer to
the image by moving the paragraph container left to fall under the
image, the area of the image that is over the paragraph box is no longer
hot.

<div class="row">
<a href="graphic.jpg">
<img src="graphic.jpg" />
</a>
<p class="right">The descriptive text</p>
</div>

div.row { overflow: hidden; }
img {
width: 100px; height: 100px;
border-style: none;
float: left;
}
p.right { position: relative; left: 110px; width: 40em; }
</div>

If I change the position of p.right to the left 100px so that the
paragraph it contains is where I want it, that area of the paragraph
box that falls under the image keeps that portion of the image from
being hot. Is there any way around this by using z-index?

There has to be an obvious answer to my problem, but it is not occurring
to me.
--

Haines Brown, KB1GRM



.



Relevant Pages

  • Re: Reconciling a thumbnail link with adjacent paragraph
    ... and each consists of two elements: ... thumbnail image that is a hot link; to its right is a brief descriptive ... The contradiction is that if I float the image to the left, ... the paragraph is shifted right in its the paragraph box by the ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: MESSENGER at Mercury: Flyby 2
    ... the closer you get? ... the trick with the CSS 'float' property which catches ... style of a paragraph is 'float: ... because of the DM albedo attenuation and its unexpected ability to ...
    (sci.space.history)
  • Re: Paragraph with caption in margin
    ... Replacing a float with a position:relative seems to be the nub of ... with display:inline the first line of the paragraph gets pushed ... I've reread the spec sections 9.4 and 9.8 yet again, ... validator: http://jigsaw.w3.org/css-validator/ ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Float issues
    ... Background images as well as background colors are *not* content so it does not get displace be the float. ... paragraph of the unfloated div slips "up and over" the float and I can't figure out why. ... No it a little confusing until you realize that the block in normal flow remains a rectangle and *not* L-shaped area, only the content get displace. ...
    (alt.html)
  • Re: Validated page falls apart in IE8
    ... Well if you have 2 paragraph blocks ... and within the 1st you have an image that you float. ... that paragraph 1 expands to fully contain the image. ... Internet Explorer 7 bugs: 175 bugs so far ...
    (comp.infosystems.www.authoring.stylesheets)