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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rust HTML skills - spacing in line question

Status
Not open for further replies.

awingnut

Programmer
Feb 24, 2003
759
US
I have an image that brackets my text. However, I need to space out the image from the text. I cannot use <pre> since that messes up my text formatting. I cannot remember how write the following so that the spaces are retained.

<font size=&quot;+6&quot; color=&quot;#ff0000&quot;><div align=&quot;center&quot;>
<img src=&quot;../Images/Stop.gif&quot; border=&quot;0&quot; alt=&quot;&quot;> Sorry <img src=&quot;../Images/Stop.gif&quot; border=&quot;0&quot; alt=&quot;&quot;>

Thanks for any help.
 
<img src=&quot;../Images/Stop.gif&quot; border=&quot;0&quot; alt=&quot;&quot; style=&quot;padding-right:10pt;&quot; > Sorry <img src=&quot;../Images/Stop.gif&quot; border=&quot;0&quot; style=&quot;padding-left:10pt;&quot; alt=&quot;&quot;>
change the 10pt to whatever works
 
You wish to print out spaces correct? The HTML code for a space is: &nbsp;

Hope this helps.
 
the browser is only going to recognize one space. to fill in the remaining you can use the code for space
<remove spaces>
& # 3 2 ;

or

& n b s p ;


____________________________________________________
[sub]The most important part of your thread is the subject line.
Make it clear and about the topic so we can find it later for reference. Please!! faq333-3811[/sub]
onpnt2.gif
 
Yes, onpnt is right. When I previewed my post it correctly printed & n b s p; , but I see now that when it acutally did post the HTML code was converted. Sorry about that.
 
Thanks. The & n b sp ; was what I forgot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top