Forum Moderators: not2easy
I have valid xhtml 1.0 transitional and valid css.
here is the code:
img {
float: left;
}
hr {
color: #000099;
width: 90%;
height: 1px;
text-align: center;
}
#wrapper{
position: relative;
display: block;
width:97%;
margin:0px auto;
margin-top: 0;
text-align: justify;
}
#textr {
margin-top: 0px;
margin-left: 320px;
height: 51px;
}
and the html:
<div id="wrapper">
<div id="pic"><img src="../images/image.gif" alt="text" width="296" height="196" align="left" /></div>
<div id="textr">paragraph of text<br />
<br />
<strong><a name="link"></a>text text</strong><br />
text text text<br />
text<br />
text<br />
text<br />
text<br />
Email: <a href="mailto:addy">linky</a></div>
<br />
<br />
<br />
<hr />
<strong>yadda yadda yadda<br />
also how do I fill the text with other text that I can't read like it is done here? I used to know but forgot.
¦---------------------¦
¦img here text here----¦
¦img here text here----¦
¦img contact info------¦
¦ hr rule 90%----------¦
¦more text here-------¦
¦more text here-------¦
¦some links-----------¦
¦---------------------¦
is that a good enough example?
If you go to my profile I have a link under interests that goes to the page I'm having the trouble with.
if you remove the height in textr it should work no problem
As long as the text in #textr is longer than the image, yes. If there's any chance that the text there will be shorter than the image (even if you never change the amount of text on the page, a user can still resize it to asignificantly smaller text size), you should take extra precautions to preserve the layout by adding a clear property to the <hr>...
hr{
clear:left;
}
That ensures that the HR stays below the image, no matter how tall #textr is.
cEM