<Table>,<div>,<p>,<li> ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Klen
    • Aug 2006
    • 32235

    #1

    <Table>,<div>,<p>,<li> ?

    What is best when it comes to usability and speed on site to create tables and anything similar to tables?
    Since you can use 4 different ways to accomplish same thing.When it comes to classic html tables code,that is easiest to create and you can also add css tag which allows instant changes like color,size and similar.
    But some people claim how it's better to use div because then site loading is faster since size of code is smaller.
    Is it really necessary to use div code?
    Or maybe we can use simple p or li code to make what we want?
    For example,what i want to do,is four pictures(thumbs)in row,to have a description text under each picture,and to be able to change instantly alignment,left/center/right.
    Another thing which should be instantly changed when needed,is to be able to change number of pictures without having a layout corrupted ,so you simply change one number instead changing entire code to get desired result.

    Which method do you use ?
  • Vendzilla
    Biker Gnome
    • Mar 2004
    • 23200

    #2
    Try them all and do a speed test on the page. Tables are the easiest I think but with faster and faster broadband does it really matter?
    Carbon is not the problem, it makes up 0.041% of our atmosphere , 95% of that is from Volcanos and decomposing plants and stuff. So people in the US are responsible for 13% of the carbon in the atmosphere which 95% is not from Humans, like cars and trucks and stuff and they want to spend trillions to fix it while Solar Panel plants are powered by coal plants
    think about that

    Comment

    • Sid70
      Downshifter
      • Dec 2002
      • 16413

      #3
      since when internet came back to 33600?
      Русня, идите нахуй!

      Comment

      • WarChild
        Let slip the dogs of war.
        • Jan 2003
        • 17263

        #4
        Tables are appropraite to use if you need to display data in a table format. Don't use the formatting otherwise. Simple.
        .

        Comment

        • FlexxAeon
          Confirmed User
          • May 2003
          • 3765

          #5
          go with div and p. tables are not as "easy" as some think, especially with complicated layouts and alignments all the <tr><td> span colspan rowspan blah blah blah blah blah gets ugly and confusing.
          flexx [dot] aeon [at] gmail

          Comment

          • martinsc
            Too lazy to set a custom title
            • Jun 2005
            • 27047

            #6
            tables for data, divs for design, p for paragraphs of text and li for list items....
            Make Money

            Comment

            • RyuLion
              • Mar 2003
              • 32369

              #7
              Originally posted by FlexxAeon
              go with div and p. tables are not as "easy" as some think, especially with complicated layouts and alignments all the <tr><td> span colspan rowspan blah blah blah blah blah gets ugly and confusing.

              Adult Biz Consultant A tech head since 1995
              Affiliate Support: Chaturbate | CCBill Live

              Comment

              • Serge Litehead
                Confirmed User
                • Dec 2002
                • 5190

                #8
                Use tables ONLY for tabular data, meaning one row equals one record set.

                If you're using multiple record sets per row/s it becomes real nightmare in maintaining and generation of table's rows and cells in your application, you will have to enable processes to count how many rows and cells there are, put some obscure conditions and the whole thing comes out not being elegantly implemented. It is simply not logical and not the best solution to use tables in such way. Also table is not rendered in a browser until it is fully loaded.

                For the rows of thumbs/titles/etc which are basically separate sets of records its best to stack them in to rows with DIV containers and having content positioned appropriately within them through the use of css classes
                Last edited by Serge Litehead; 03-06-2011, 12:22 PM.

                Comment

                Working...