Menu
hi.
[code]<a href=”index.html” target=”_self”><img src=”img/tn_sample.jpg” alt=”link description” width=”140″ height=”125″ border=”1″>sample text</a>
Here’s my question with this code what i get is the image and text right next to it on the side.
Is there a way to have this text apper right under the image and wrapped (using the same width as the image)?
thx in advance
<i>
</i>#filmes {
padding: 0 0 0 10px;
display: block;
}
<i>
</i><div id="filmes"><ul>
<li><div style="width:140px; height:200px;"><a href="index.html" target="_self"><img src="img/tn_sample.jpg" alt="link description" width="140" height="125" border="1"><br />some sample text that wraps at the width of the image goes here.</a></div></li>
<li><div style="width:140px; height:200«0px;"><a href="index.html" target="_self"><img src="img/tn_sample.jpg" alt="link description" width="140" height="125" border="1"><br />some sample text that wraps at the width of the image goes here.</a></div></li>
</ul>
</div>
[i]Originally posted by MstrBob [/i]
[B]When in doubt, refer to the specs, eh?
[URL=http://www.w3.org/TR/html4/present/frames.html#adef-target]The Target Attribute[/URL]
[URL=http://www.w3.org/TR/html4/types.html#type-frame-target]Target Names[/URL]
The _self name states that the document being linked to should load in the same frame as the current document. [/B][/QUOTE]
[i]Originally posted by PeOfEo [/i]
[B]it is not the forum, it is cogumelo's post in this thread that is streaching it. He used a bunch of code that did not have line breaks in it. [/B][/QUOTE]
[i]Originally posted by MstrBob [/i]
[B][code] and [PHP] brackets parse it as
preformatted text. Basically, when browsers have long spans
of text, they'll escape it as the last line break to make it
all fit. But with preformatted text, the browsers doesn't
insert any line breaks at spaces, so the container stretches
to fit the content, resulting in a horizontal scroll.
[/B][/QUOTE]
[i]Originally posted by MstrBob [/i]Which I put my code inside [font=monospace][/font] tag like things.
[B][code] and [PHP] brackets parse it as preformatted text. Basically, when browsers have long spans of text, they'll escape it as the last line break to make it all fit. But with preformatted text, the browsers doesn't insert any line breaks at spaces, so the container stretches to fit the content, resulting in a horizontal scroll. [/B][/QUOTE]
0.1.9 — BETA 5.16