Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > display: table-cell and IE

Reply
Thread Tools

display: table-cell and IE

 
 
Nik Coughin
Guest
Posts: n/a
 
      01-26-2005
I'm so sick of IE. display: table-cell is just too useful not to have.

I was thinking of using php to deliver different code to IE... sending
display: table-cell in the css for non-IE browsers, or wrapping the
appropriate markup inside table markup for IE. Everything else will get
nice, semantic table-free markup. I realise that browser sniffing is not
100% reliable, but all that that means is that in a few very rare exceptions
a compliant browser will be handed table markup instead of semantic
markup -- the page will still look the same, it will still work, and it will
still validate.

Comments?

--
"Come to think of it, there are already a million monkeys on a million
typewriters, and the Usenet is NOTHING like Shakespeare!" - Blair Houghton
-=-=-=-=-=-=-=-=-=-=-=-
http://www.nrkn.com/
-=-=-=-=-=-=-=-=-=-=-=-


 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      01-26-2005
"Nik Coughin" <nrkn!no-spam!@woosh.co.nz> wrote:

> I'm so sick of IE. display: table-cell is just too useful not to have.


Maybe. What would you use it for? Maybe there's a different approach.
Sometimes display: inline-block does what you want.

If display: table-cell is essentially, maybe your data structure actually
_is_ a table. I've seen that. People "get rid of tables", the rebuild the
tables in CSS, without realizing they had _data_ tables, not layout tables.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


 
Reply With Quote
 
vesedrema vesedrema is offline
Junior Member
Join Date: Nov 2006
Posts: 1
 
      11-13-2006
There's a potential work-around for this... in your <style>, try

* html .cell {display:inline}

...where .cell is the class name of the div that is supposed to act like a table cell. You should also leave the normal .cell class in there for (shall we say) normal browsers such as Firefox.

I did try to use the width attribute but it had no effect. Not sure if this works in all versions of IE, but it seemed to work in 6. This solution might not be what you're after!
 
Reply With Quote
 
bugmenot bugmenot is offline
Junior Member
Join Date: Jul 2006
Posts: 14
 
      12-15-2007
Quote:
Originally Posted by vesedrema
There's a potential work-around for this... in your <style>, try

* html .cell {display:inline}
And add
Code:
height:100%
in both your row-div and cell-div. (Use conditional CSS though)

Should do the job for IE6...
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
question with display:table-cell richard HTML 11 01-05-2010 11:37 AM
form input text in table; how to fill table cell space sdf HTML 3 12-06-2007 02:29 PM
How to display a list box in a table cell after selection? tomix Javascript 3 10-23-2006 02:08 PM
How do I have a table cell fetch another page to display within the cell? Phillip Roncoroni HTML 14 04-05-2004 05:58 PM
How to display HTML page in a table cell Sturny Gerard HTML 2 12-27-2003 10:52 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57