Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 9th, 2006, 06:42 PM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default HTML Table.

Hi
I want to show two different tables in asp page.
if i use:
<TABLE>
<TR>
    <TD>xxx</TD> <TD>xxx</TD>
    <TD>xxx</TD> <TD>xxx</TD>
</TR>
</TABLE>
<TABLE>
<TR>
    <TD>xxx</TD> <TD>xxx</TD>
    <TD>xxx</TD> <TD>xxx</TD>
</TR>
</TABle>

then table 2 will be shown below the table 1, but i want to show them horizontal way and not vertical.

So i do this:

<TABLE>
<TR>
<TD>
    <TABLE>
<TR>
    <TD>xxx</TD> <TD>xxx</TD>
    <TD>xxx</TD> <TD>xxx</TD>
</TR>
</TABLE>
</TD>
<TD>
    <TABLE>
<TR>
    <TD>xxx</TD> <TD>xxx</TD>
    <TD>xxx</TD> <TD>xxx</TD>
</TR>
</TABle>
</TD>
</TR>
</TABLE>

now the problem is that if second table grows vertically, and table 1 remains as it is e.g. table 2 has 100 rows and table 1 has 10 rows then table 1 appears at the center of screen so u have to scroll down to view table 1.

I tried to align top both the table but not working.

Any Idea?

Thanks in advance.

Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
 
Old March 9th, 2006, 06:45 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

And how did you do that? valign="top" should work.:)

--
http://yupapa.com
 
Old March 9th, 2006, 08:12 PM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

Great its working..Thanks.

Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
 
Old March 9th, 2006, 08:13 PM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

but just wondering what's difference between valign and align???

Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
 
Old March 9th, 2006, 08:26 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

'align' is horizontal and 'valign' is vertical alignment, v-align.:)
align=[left | center | right | justify | char]
valign=[top | middle | bottom | baseline]

http://www.w3.org/TR/html401/struct/...html#alignment

--
http://yupapa.com
 
Old March 9th, 2006, 08:51 PM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

thanks.

Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help on generating HTML table please!! minhnghia XSLT 5 September 2nd, 2007 12:35 PM
Dynamic HTML table bonekrusher XSLT 3 September 23rd, 2006 01:27 PM
XSL table to HTML ayamas XSLT 10 September 11th, 2006 06:45 AM
HTML Table p2pMember ASP.NET 1.0 and 1.1 Basics 1 November 9th, 2005 02:51 PM
Complex HTML table (at least for me) lcsgeek Classic ASP Databases 1 August 19th, 2003 03:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.