How to lay out a paragraph and a table side by side on HTML

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fatima haider
    New Member
    • Nov 2011
    • 1

    How to lay out a paragraph and a table side by side on HTML

    I want to put a table and a paragraph beside each other on my html webpage. The table on the left and the paragraph on the right. How do I do it?
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Use divs as containers, set the width of each to 50%. and float one on the right.

    Comment

    • hellodipak
      New Member
      • Jun 2010
      • 26

      #3
      p, table{
      float: left;
      }
      p{
      width: 200px;
      }
      table{
      width: 200px;
      }

      Comment

      Working...