Web Analytics Made Easy -
StatCounter CSS Tables that stretch - CodingForum

Announcement

Collapse
No announcement yet.

CSS Tables that stretch

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CSS Tables that stretch

    I have my website set up using the <div> elements. I was looking around but couldn't really find anything that helped me. Is it possible to make divs stretch to fit the content inside of them. For example, making a web page get longer because there is more text in it.

  • #2
    So you want a fluid layout that resizes with the browser window? If you set a width to a div the text will wrap and make the div higher not wider.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

    Comment


    • #3
      Vertical extension

      making a web page get longer because there is more text in it
      That is standard behaviour, provided there's no fixed height specified.
      Can we see some markup and styles?
      Regards,
      Ronald.
      ronaldvanderwijden.com

      Comment


      • #4
        Sure . . . I didn't see that I had even done that. I think I'm still stuck thinking in the way of tables. I'll post again if that doesn't work.

        Comment


        • #5
          anyone know how to get a full length div to expand longer if the content does? Like say you wanted three stripes essentially as your layout, two side columns of one colour and a middle column of a different colour for the content. But this design looks stupid if they don't all touch the bottom of the screen.
          Once I thought I was wrong but I was mistaken.

          Comment

          Working...
          X