Solution 1 :

So, this is a table, and you have two cells in the first row, and only one cell in the second row. You’ll want that second cell to have colspan="2" as a property…

<td colspan="2">

And then, for the second part of your issue (“so my question [text] is next to the yes/no buttons”), you’ll want to change the first yes/no cell to have <nobr> so it doesn’t linebreak, and also set width="1"

<td class="data_yy" width="1">

Made a quick working demo.

Does this look right?

Solution image

Problem :

I have this issue. I have written this HTML code, but I am unable to align between the question, yes/no buttons and text area box. My question has huge space from yes/no buttons, but when I drag the text area box and making it smaller, the question and yes/no buttons come closer as I wanted it to look. How can I fix this issue so my question is next to the yes/no buttons and box is underneath and doesn’t move when I drag to make it bigger or smaller?
photo of html and css result

<table cellspacing="2" cellpadding="2">
 <tr>        
    <td class="data_yy">
       <input type="radio" name="jack" id="jack" value="Y" onclick="hideShowJacks('Y');"/><label>Yes</label> 
       <input type="radio" name="jack" id="jack" value="N" checked onclick="hideShowJacks('N');"/><label>No</label>
   </td>
       <td class="data_xx"> Are are taking English class in fall?</td>
   </tr>
   <tr>
       <td>
       <textarea cols="120" rows="5" maxLenghth="20" class="resizable" name="jack" id="jack">    </textarea>
          <div class="plaintext" style="justify:left" id="jack">&nbsp;</div>
      </td>
   </tr>
</table>

Comments

Comment posted by canbax

you can take a screenshot of your computer screen. I recommend you never take photo of your screen with an external device.

Comment posted by HoldOffHunger

@pg_max: Hey, I added an answer, let me know if this helps!

Comment posted by pj_max

@canbax- yea, you are right; totally makes sense, but for privacy i couldn’t use my work laptop and had to use my own personal ,and to get that screen shot that was only option I had.

Comment posted by pj_max

@HoldOffHunger- Thank you. So I see your screen shot and tried the demo, and it looks fine, but mine some reason the text area box disappears when i add some of the suggestions you mentioned. I am not sure if it is anything to do with my css stick to it.

Comment posted by HoldOffHunger

@pg_max – Hey, thanks for getting back to me! Hrm, maybe you’re running into a typo? Sometimes dropping a

Comment posted by HoldOffHunger

@pg_max – Let me know if you find a working solution, or if this ended up helping you out! Marking it as correct would help others if it did.

Comment posted by pj_max

unfortunately, I see the same issue. As I mentioned earlier I do not see the text box area after modified those. I am trying to see what could be the issue.

Comment posted by pj_max

Awesome you are totally right. I forgot to put “>” at

. Thank you very much. Now it solved the issue.

By