Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text positioning problem

Status
Not open for further replies.

cactus1000

Programmer
Aug 31, 2001
149
US
I have a transparent gif of the letter "F" in fancy script. This letter must start a paragraph and the following lines of text must position themselves just right in order for this effect to work. I designed it for IE 5.0 at 400x600 and it looks o.k. (I even have a Netscape version).

Here's the url:


The problem is that the text doesn't wrap correctly in other screen settings. How can I enforce the exact line width for the text? I thought of putting this in a <div>, but the line width for the second line is different from the other lines of text (thus the &quot;&nbsp;'s&quot;).

Here's the code:

<style type=&quot;text/css&quot;><!--

.a {position: absolute; left: 253px; top: 165px;}

body {font-family: Optimum, Arial; font-style: regular; color: #000067; background-color:
#ffffff; font-size: 12pt; line-height: 13pt; margin-top: 5pt; margin-left: 25pt; margin-right:
32pt; margin-bottom: 35pt} p {font-family: Optimum, Arial; font-style: regular; color: #000067;
background-color: #ffffff; font-size: 12pt; line-height: 13pt;}

-->
</style>
<BODY LINK=&quot;#0000ff&quot; VLINK=&quot;#800080&quot;>
<span class=&quot;a&quot;><img src=&quot;f.gif&quot;></span>

<P><BR>
<img src=&quot;facultyword.jpg&quot;>
<P><br><br><br><br>
<img align=left hspace=15 vspace=5 src=&quot;anderson.jpg&quot;>
<p><b>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;aculty at the UCLA School &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;of Law</b> bring to the education of their students a variety of backgrounds blah blah blah...
 
I would have thought the best way around this would be to use tables with no borders, and no cell padding, you can align them close enough so as for it not to matter..
John x
 
Thanks! Actually, I ended up putting all of my html code into a table cell and set the table width in pixels. This keeps the lines the same width in all browser settings, and still allowes me to use absolute positioning for the letters.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top