Add a margin around text within a border

  • 1
  • Question
  • Updated 7 years ago
I want to have a text item within a border and add some space around the text. I can add this code;
margin:10px 10px;

to the code but I cannot figure out where to place it within the code I used to create this. Here is the code;

Do you have...etc
Photo of joe macmillan

joe macmillan

  • 20 Posts
  • 0 Reply Likes

Posted 7 years ago

  • 1
Photo of joe macmillan

joe macmillan

  • 20 Posts
  • 0 Reply Likes
Can someone advise me how I can show the code here as when I add it to show here it disappears.

Thanks
Joe
Photo of David

David

  • 465 Posts
  • 94 Reply Likes
Place your code in between these tags <!-- your code --> and it will show on the forum
Photo of joe macmillan

joe macmillan

  • 20 Posts
  • 0 Reply Likes
Thank you David. Great help.
Joe
Photo of joe macmillan

joe macmillan

  • 20 Posts
  • 0 Reply Likes
OK
This is the code I have used;

<!--<TABLE border=1 cellSpacing=0 borderColor=#00cc0 width=170>
<TBODY>
<TR>
<TD height=300 vAlign=top><FONT size=2 face=Verdana></FONT></TD></TR></TBODY></TABLE>-->

I want to create a margin using this code...margin:10px 10px;

I can't figure out where to place it within the present code.
Photo of jeremy

jeremy, Employee

  • 1349 Posts
  • 90 Reply Likes
Hi Joe,

You can also use this encoder - http://forsite.synthasite.com/encoder...
- you then don't need to add any extra code to it.

I hope this helps.
Photo of David

David

  • 465 Posts
  • 94 Reply Likes
Hi Joe
Try this

<!--
<table border="1" bordercolor="#00cc0" cellpadding="10" cellspacing="0" width="170">
<tbody>
<tr>
<td height="300" valign="top"><font size="2" face="Verdana"></font></td></tr></tbody></table>
-->
Photo of joe macmillan

joe macmillan

  • 20 Posts
  • 0 Reply Likes
Thanks Jeremy and David for your help. Problem solved. Much appreciated.
Best regards
Joe