Connecting Tech Pros Worldwide Forums | Help | Site Map

aligning a pragraph

Newbie
 
Join Date: Dec 2007
Posts: 14
#1: Dec 31 '07
Hi all,

I have 3 tables, all aligned one below the other and then I have this paragraph which I want to align on the right handside of the page at the top, but in spite of giving align = 'top', the paragraph and its contents seems to be appearing at the very bottom of the page after the last table.. how can I correct this? Please help.


[HTML]
<p valign = "top">
<fieldset align = "top">
<legend align = "center">
<font color = "magenta">
<b> Click a link! </b>
</font>
</legend>

<ul>

<li><a href = "ShowCandidates.php"><font size = "2.7" color = "blue">Select another Candidate for Viewing Report !!!</font></a></li>

</ul>
</fieldset>
</p>

[/HTML]

Newbie
 
Join Date: Dec 2007
Posts: 10
#2: Dec 31 '07

re: aligning a pragraph


Quote:

Originally Posted by hello2008

Hi all,

I have 3 tables, all aligned one below the other and then I have this paragraph which I want to align on the right handside of the page at the top, but in spite of giving align = 'top', the paragraph and its contents seems to be appearing at the very bottom of the page after the last table.. how can I correct this? Please help.


[HTML]
<p valign = "top">
<fieldset align = "top">
<legend align = "center">
<font color = "magenta">
<b> Click a link! </b>
</font>
</legend>

<ul>

<li><a href = "ShowCandidates.php"><font size = "2.7" color = "blue">Select another Candidate for Viewing Report !!!</font></a></li>

</ul>
</fieldset>
</p>

[/HTML]

Depending on how it is written I would place this table after the first of the three tables with the right alignment, so that it appears after the first, and aligned to the right.
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,566
#3: Dec 31 '07

re: aligning a pragraph


I assume you are saying this paragraph is not contained in any table. 'valign' can only be applied to tables and not paragraphs. To make your paragraph appear where you want, you must make room by reducing the tables width.

This would be easier if we had the complete markup or a link. Your markup, btw, is very old style and quite out of date.
Newbie
 
Join Date: Dec 2007
Posts: 14
#4: Jan 1 '08

re: aligning a pragraph


Thanks PunchBackJack and drhowarddrfine,

I have put my fieldset and links in a table instead of a paragraph now, still the foll table aligns vertically at the bottom of the page after the rest of the tables.. instead of appearing at the righthand side at the top of the page, please help!

[HTML]
<table valign = 'top'>
<tr>
<td>

<fieldset>
<legend align = "center">
<font color = "magenta">
<b> Click a link! </b>
</font>
</legend>


<ul>

<li><a href = "ShowCandidates_for_Company.php"><font size = "2.7" color = "blue">Select another Candidate for Viewing Report !!!</font></a></li>
<br/>
<li><a href="logout.php?log_out=1"><font size = "2.7" color = "blue">Logout </font></a></li>

</ul>
</fieldset>

</td>
</tr>
</table>
[/HTML]
Newbie
 
Join Date: Jan 2008
Posts: 2
#5: Jan 4 '08

re: aligning a pragraph


hi,
hope this code will help u.......


Expand|Select|Wrap|Line Numbers
  1. <div style="float:left; width:700px;">
  2.  
  3. <div style=" float:left">
  4.  <p valign = "top">
  5.  
  6.       <fieldset align = "top">
  7.  
  8.       <legend align = "center">
  9.  
  10.       <font color = "magenta">
  11.  
  12.       <b> Click a link! </b>
  13.  
  14.       </font>
  15.  
  16.       </legend>
  17.       <ul>
  18.       <li><a href = "ShowCandidates.php"><font size = "2.7" color = "blue">Select another Candidate for Viewing Report !!!</font></a></li>
  19.       </ul>
  20.        </fieldset>
  21.  
  22.       </p>
  23.  
  24.  
  25.       </div>
  26. <div style="float:right">
  27.       <table valign = 'top'>
  28.       <tr> <td>
  29.       <fieldset>
  30.         <legend align = "center">
  31.         <font color = "magenta">
  32.         <b> Click a link! </b>
  33.         </font>
  34.         </legend>
  35.        <ul>
  36.         <li><a href = "ShowCandidates_for_Company.php"><font size = "2.7" color = "blue">Select another Candidate for Viewing Report !!!</font></a></li>
  37.  
  38.       <br/>
  39.  
  40.       <li><a href="logout.php?log_out=1"><font size = "2.7" color = "blue">Logout </font></a></li>
  41.  
  42.       </ul>
  43.  
  44.       </fieldset>
  45.  
  46.       </td>
  47.  
  48.       </tr>
  49.  
  50.       </table></div>
  51. </div>
  52.  
Thank u...:-)
Newbie
 
Join Date: Dec 2007
Posts: 14
#6: Jan 4 '08

re: aligning a pragraph


Hi there,

Thanks for your help. My table is exactly where I wanted it now. Thanks again!
numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,571
#7: Jan 4 '08

re: aligning a pragraph


Just an FYI. While I am sure the code helped the OP, it would also help the moderators immensely if you would enclose ANY and all code you post into the forums in the proper, necessary code tags.

Regards,

Jeff
Reply


Similar HTML / CSS bytes