The Web Squeeze: Using Display:table - The Web Squeeze

Jump to content

Forum

Cascading Style Sheets (CSS)

Cascading Style Sheets makes your website go from bland to SWEET! Learn CSS or teach CSS in this forum. Learn CSS Shorthand, how to use floats correctly, and how to style 2 and 3 column websites.
Digg Del.ico.us Slashdot Technorati furl Reddit Facebook Fark Google Magnolia Wink Yahoo Netscape
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Using Display:table IE no likey

#1 User is offline   overthemike Icon

  • Rapid Squeezer
  • PipPipPipPip
  • Group: Members
  • Posts: 341
  • Joined: 14-February 08
  • Gender:Male
  • Location:Las Vegas, NV

Posted 01 July 2009 - 12:25 PM

So I'd like to start using display: table for some layouts, however as I'm sure you all know, IE 6 and 7 doesn't support it. Anyone know of any good workarounds for this so that it can still be used without screwing up in IE? (That is without conditional IE statements...)
A Life? Cool! Where can I download one of those?
http://www.overthemike.com
0

#2 User is offline   MikeHopley Icon

  • Professional Squeeze
  • Icon
  • Group: Mentor
  • Posts: 1,382
  • Joined: 15-February 08
  • Gender:Male
  • Location:UK

Posted 01 July 2009 - 04:34 PM

I use {display: table} (and its family members) on my website. However, I consider that to have been a mistake.

There is no universal substitute for {display: table}, other than using an actual HTML table. Depending on what you are using it for, however, there are specific hacks. For equal-height columns, you can use a javascript hack (I do).

If you're trying to do this entirely without conditional comments, all I can say is...good luck. ;) I expect you'll need to use javascript browser detection instead, which is less trustworthy.

With the benefit of hindsight, I would steer well clear of this unnecessary code forking, and save {display: table} for when all major browsers can handle it.
0

#3 User is offline   rich97 Icon

  • Squeeze Machine
  • Icon
  • Group: Mentor
  • Posts: 858
  • Joined: 27-August 08
  • Gender:Male
  • Location:Sendai, Japan

Posted 02 July 2009 - 05:10 AM

Equal height, flexible columns with CSS I'm sure ive posted before but here again.

I still see no reason to use display:table :P
0

#4 User is offline   rich97 Icon

  • Squeeze Machine
  • Icon
  • Group: Mentor
  • Posts: 858
  • Joined: 27-August 08
  • Gender:Male
  • Location:Sendai, Japan

Posted 02 July 2009 - 05:16 AM

View Postrich97, on Jul 2 2009, 11:10 AM, said:

Equal height, flexible columns with CSS I'm sure ive posted before but here again.

I still see no reason to use display:table :P


Wait, I found the original! :)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


Page 1 of 1
Trackbacks
Trackback URL Trackback Date Total Hits
No trackbacks were found
Page 1 of 1

Similar Topics
  Topic Started By Stats Last Post Info
New Replies Icon Search Every Table? Jack Icon
  • 10 Replies
  • 1,900 Views
Locked Topic Icon Overwriting Default Table Style In Ie!? Jason Icon
  • 7 Replies
  • 1,808 Views
Hot Topic (New) Icon Creating Php Recordset And Display
Need some tips..
Monie Icon
  • 14 Replies
  • 2,297 Views
Hot Topic (New) Icon Dreamweaver: Why Are My Table Componants Spacing Out?
HTML, CSS, DW CS
Inkers Icon
  • 18 Replies
  • 3,131 Views
New Replies Icon Foreach Problem -- Table Of Contents Script
I have a shaky grasp of variables/arrays/foreach loops
MikeHopley Icon
  • 11 Replies
  • 1,904 Views

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users