PDA

View Full Version : Newbie in need of basic html help.


mcgrco
04-14-2006, 10:35 AM
Ok, Please dont laugh at how basic a question this is but Im trying to customise a form hack for my board. I have no html experience other than what I'm learning at the moment. Its a interesting learning curve! I'm also travelling at the moment so I dont have a perment pc! Anyway, Im chopping and changing a generic form but i can't 4 boxs to align properly. The html code is attached. Sorry about the bad indentation I'm using someone elses code!

The screen shot is attached. I want the second box with "general" to be smaller and the 2nd pulldown list to fit.

Code is

<tr>
<td class="alt1" valign="middle">
<b>General</b>:<br />
Place holder for Khmer</td>
<td class="alt1" valign="left" colspan="1">
<select name="General">
<option value="No apparant Distress">No apparant Distress</option>
<option value="Mild distress">Mild distress</option>
<option value="Severe Distress">Severe Distress</option>
</select></td>
<td class="alt1" valign="left" align="left" >
<b>General</b>:<br />
Place holder for Khmer</td>
<td class="alt1" valign="left" align="left" colspan="1">
<select name="General">
<option value="No apparant Distress">No apparant Distress</option>
<option value="Mild distress">Mild distress</option>
<option value="Severe Distress">Severe Distress</option>
</select></td></tr>

Any help is appreciated.

peterska2
04-14-2006, 01:56 PM
check the row above this and make sure that it is specified to be colspan="4" otherwise it will always kick out your 3rd column.

Also, as a freindly tip, don't have both dropdowns with the same select name as this will confuse the poor form when you go to submit the data.

mcgrco
04-14-2006, 03:42 PM
Kerry-Anne ,

Many thanks for your reply and for the tip. I'll give it a go when I get a chance. Its 10pm here so off for a beer. I can code in VBA so i know the importance of making variables unique. I was trying to get the format issue sorted before I gave it a unique name.
As a newbie constructive critism is important and I welcome it. Its the only way to learn.


thanks again.

Conor

arrrgh, Im going bad to worse her. Any chance you could have a quick look!

http://www.medicorps.org/mirn/newthread.php?do=form

these things usually take me a while before I realise what the hell I'm doing!


<!-- header -->
<tr>
<td class="tcat" colspan="4">
<b>This section deals with then general condition of the Patient</b>
</td>
</tr>


<tr>
<td class="alt1" valign="middle">
<b>General</b>:<br />
Place holder for Khmer</td>
<td class="alt1" valign="left" colspan="1">
<select name="General">
<option value="No apparant Distress">No apparant Distress</option>
<option value="Mild distress">Mild distress</option>
<option value="Severe Distress">Severe Distress</option>
</select></td>
<td class="alt1" valign="left" align="left" >
<b>General</b>:<br />
Place holder for Khmer</td>
<td class="alt1" valign="left" align="left" colspan="3">
<select name="General">
<option value="No apparant Distress">No apparant Distress</option>
<option value="Mild distress">Mild distress</option>
<option value="Severe Distress">Severe Distress</option>
</select></td></tr>

Thanks in advance

Ok, worked out what you meant and of course it makes sence now. all googd now.

Thanks again