www.webdeveloper.com
Results 1 to 7 of 7

Thread: Use css (or any means) to ignore tables

  1. #1
    Join Date
    Jul 2008
    Posts
    89

    Use css (or any means) to ignore tables

    I want to create a quick mobile edition of my site, pretty much just for myself. Is there a way I can tell the browser to ignore tables and just display everything in one column?

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,278
    Firefox has an add on or two for that and I seem to recall that Opera has this feature built in.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  3. #3
    Join Date
    Jul 2008
    Posts
    89
    I was hoping to do it server side.

  4. #4
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,278
    Then parse your HTML or XHTML and remove all the table related tags.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  5. #5
    Join Date
    Mar 2005
    Location
    Sydney, Australia
    Posts
    7,974
    I haven't tried it but perhaps the following might be a step in that direction.

    table, tr, td {display:block;}

  6. #6
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,278
    That won't linerize. Perhaps display:inline. Better to just use the proper tools in Firefox or Opera.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  7. #7
    Join Date
    Jul 2008
    Posts
    89
    display:inline; seemed to work. Thanks!

    I need to redesign the site without tables, but I only have minimal control over the template, unfortunately, which makes life very difficult. :'(

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles