How to get text besides image using Float: left and Padding in HTML?

Prashant Thanka
Tera Contributor

I have attempted to upload a Word document to create a knowledge base article and the result is not what I wanted.

I am writing up a KBA and it has image and I was looking to enter text besides it, however, when I use the float: left function, the text does show up on the right side of the image but it is very close to the image.

I am not well versed with HTML and I have not been able to find a solution. Any help will be immensely appreciated.

I am pasting the text here:

<html><p>We have upgraded our IT Telecommunications services to increase user productivity and collaboration capabilities. This upgrade includes a new CISCO IP desk phone, meeting room conference phones and the Jabber Instant Messenger client and Softphone. This KBA will help to familiarize you with the features and functionality of your new phone and Instant Messenger and Softphone client.</p>
<p>Quick Start Guide for 7841 Phone Model</p>
<p><img style="float: left;" title="" src="sys_attachment.do?sys_id=0d59031d1bed8d9053a8c9522a4bcbf6" alt="" width="701" height="566" align="baseline" border="0.75" hspace="" vspace=""></p>
<style>
{
padding-left: 50px;
}
</style>
<body>
<p><code><code>Your Phone</code></p>
<p><code>Cisco IP Phone 7841 shown.</code></p>
<p><code>1 Incoming call or voicemail indicator</code></p>
<p><code>2 Line and feature buttons</code></p>
<p><code>3 Softkeys</code></p>
<p><code>4 Navigation (navigation ring and Select button)</code></p>
<p><code>5 Hold, Transfer, and Conference</code></p>
<p><code>6 Speakerphone, Headset, and Mute</code></p>
<p><code>7 Voicemail, Applications, and Directory</code></p>
<p><code>8 Volume</code></p>
</body>

</html>

Can someone please let me know where I am going wrong?
Many thanks.

6 REPLIES 6

AnirudhKumar
Mega Sage
Mega Sage

This look good?

<div>
<p>We have upgraded our IT Telecommunications services to increase user productivity and collaboration capabilities. This upgrade includes a new CISCO IP desk phone, meeting room conference phones and the Jabber Instant Messenger client and Softphone. This KBA will help to familiarize you with the features and functionality of your new phone and Instant Messenger and Softphone client.</p>
</div>
<div>
<p>Quick Start Guide for 7841 Phone Model</p>
</div>
<div>
<div style="float: left;">
<p><img title="" src="sys_attachment.do?sys_id=0d59031d1bed8d9053a8c9522a4bcbf6" alt="" width="701" height="566" align="baseline" border="0.75" hspace="" vspace="" /></p>
</div>
<div style="float: right;">
<p><code><code>Your Phone</code></code></p>
<p><code>Cisco IP Phone 7841 shown.</code></p>
<p><code>1 Incoming call or voicemail indicator</code></p>
<p><code>2 Line and feature buttons</code></p>
<p><code>3 Softkeys</code></p>
<p><code>4 Navigation (navigation ring and Select button)</code></p>
<p><code>5 Hold, Transfer, and Conference</code></p>
<p><code>6 Speakerphone, Headset, and Mute</code></p>
<p><code>7 Voicemail, Applications, and Directory</code></p>
<p><code>8 Volume</code></p>
</div>
</div>

AnirudhKumar
Mega Sage
Mega Sage

Hey @Prashant Thankappan ,

Did the code work?

 

Prashant Thanka
Tera Contributor

Hello Anirudh,

Thank you for your reply.

It now has a big gap. Is there any way we can mention the pixel or percentage?

 

Taylor20
Tera Contributor

Hi Prashant, 

Have you tried using a table for this? It's often easier to create a table with invisible borders and play around in the WYSIWYG if you're new to HTML. 

You'll be able to play around with percentage, pixels, and padding.