Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Mar 2006
    Thanked 0 Times in 0 Posts

    CSS results table.

    CSS screws with my head lol. here's the situation, i have an asp script that pulls some results from a database, and i want to display them in a list. i would of used a table, but as i'm tryin to use as much CSS as possible, this does.nt feel right. is this a case where you should use tables? how would i in about it in CSS? maybe wiv a series of div's? cheers.

  2. #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Sydney, Australia
    Thanked 932 Times in 919 Posts
    If it is tabular data (as results from a database usually is) then the correct element to use is a table.

    See http://www.felgall.com/xtutt09.htm where I have a table showing all of the appropriate elements to allow styles to be applied using CSS.
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


Posting Permissions

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