Results 1 to 7 of 7

Thread: [RESOLVED] Tables and Text area

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2009
    Posts
    233

    Resolved [RESOLVED] Tables and Text area

    hi guys, does anyone have any idea on how to achieve this, i have a table on the left side of my page and i want to put some text on the right side of the table.. how to do it? attached is the pic for the graphical layout...thanks... any help is greatly appreciated..
    Attached Images Attached Images  
    The taller the bamboo grows the lower it bends...

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Tables and Text area

    How many columns does your table have?
    Last edited by Nightwalker83; May 12th, 2009 at 04:38 AM. Reason: Fixing spelling!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2009
    Posts
    233

    Re: Tables and Text area

    Quote Originally Posted by Nightwalker83 View Post
    How many columns does your table have?
    table is only 3 columns and 2 rows.. i want to put some text parallel to that table.. any ideas? thanks
    The taller the bamboo grows the lower it bends...

  4. #4
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Tables and Text area

    Quote Originally Posted by JJJCR_FOX View Post
    table is only 3 columns and 2 rows.. i want to put some text parallel to that table.. any ideas? thanks
    Add a 4th column to the table. And in that 4th column (TD) put a table and whatever inside it you want to have.
    Or maybe add a parent table with just 2 columns - one column has the left side table, the other column has the right side text.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  5. #5
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: Tables and Text area

    If you wrap the table in a div with relational positioning and a float of left, and then do the same to the content you want on the right of the table you can achieve the required result.

    You will have to wrap both of the above divs in another div with absolute positioning, though.

    Example:

    Code:
    <div id="main" style="position: absolute; top:100px; left:100px; border: 1px solid black;">
      <div style="float: left; position: relative;">
        <table width="200px" border="1">
         <tr><td>blahblah</td><td>testing</td><td>hmm</td></tr>
         <tr><td>blahblah</td><td>testing</td><td>hmm</td></tr>
         <tr><td>blahblah</td><td>testing</td><td>hmm</td></tr>
         <tr><td>blahblah</td><td>testing</td><td>hmm</td></tr>
       </table>
      </div>
      <div style="float:left; border: 1px solid black; position: relative;">Testing</div>
    </div>

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jan 2009
    Posts
    233

    Thumbs up Re: Tables and Text area

    Quote Originally Posted by kfcSmitty View Post
    If you wrap the table in a div with relational positioning and a float of left, and then do the same to the content you want on the right of the table you can achieve the required result.

    You will have to wrap both of the above divs in another div with absolute positioning, though.

    Example:

    Code:
    <div id="main" style="position: absolute; top:100px; left:100px; border: 1px solid black;">
      <div style="float: left; position: relative;">
        <table width="200px" border="1">
         <tr><td>blahblah</td><td>testing</td><td>hmm</td></tr>
         <tr><td>blahblah</td><td>testing</td><td>hmm</td></tr>
         <tr><td>blahblah</td><td>testing</td><td>hmm</td></tr>
         <tr><td>blahblah</td><td>testing</td><td>hmm</td></tr>
       </table>
      </div>
      <div style="float:left; border: 1px solid black; position: relative;">Testing</div>
    </div>
    thanks for the input..i'll try it out..
    The taller the bamboo grows the lower it bends...

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Jan 2009
    Posts
    233

    Re: Tables and Text area

    Quote Originally Posted by Pradeep1210 View Post
    Add a 4th column to the table. And in that 4th column (TD) put a table and whatever inside it you want to have.
    Or maybe add a parent table with just 2 columns - one column has the left side table, the other column has the right side text.
    Hi, thanks for the reply.. yup..i can do what you suggested.. but the text i want to put it outside the table..i mean i like to make a separate filed..the text should not be a part of the table.. but anyways.. i'll try the suggestion of kfcsmitty..
    Last edited by JJJCR_FOX; May 12th, 2009 at 08:18 PM.
    The taller the bamboo grows the lower it bends...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width