adding spaces (tab) in html

P

pete0085

There is a table with a couple radio buttons in the same row. I'm trying to
space them out equally, but the spaces do not look good and you are not able
to add tabs in html so I'm wondering what can I do to fix this? I tried the
<pre> code that I read about.

<input type="radio" name="R1" value="V8"> Family Sickness
<input type="radio" name="R1" value="V9"> Death in Family</td>
 
T

Trevor Lawrence

You can place each in its own cell in a table

<table>
<tr>
<td><input type="radio" name="R1" value="V8"> Family Sickness</td>
<td><input type="radio" name="R1" value="V9"> Death in Family</td>
</tr>
</table>

The width of the cell can be set by
<td width="20px">
<td width="10%">
or better with a style
<td style="width:20px;">
<td style="width:10%;">

Another simple, but not very elegant, way is to add spaces
e.g.
<input type="radio" name="R1" value="V8"> Family Sickness&nbsp;&nbsp;
<input type="radio" name="R1" value="V9"> Death in Family

Each occurrence of &nbsp; is a single space
 
P

pete0085

That's weird, I posted my entire code, but it removed the "spaces". I was
using all spaces and the bullets on the right side were not aligned correctly
and that's the problem i was having. The left was fine, but there is 4 sets
a bullets (four left....four right) and not all of them would line up in a
row, the right side is giving me issues.
 
T

Tom Miller

pete0085 said:
That's weird, I posted my entire code, but it removed the "spaces".

In FP, if you are working from the design screen and put in tabs or spaces,
the actual html code (I think) is &nbsp (non-breaking space, I think).

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top