Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > question with display:table-cell

Thread Tools

question with display:table-cell

Gus Richter
Posts: n/a
On 1/3/2010 8:40 PM, Roy A. wrote:
> On 3 Jan, 22:49, Gus Richter<(E-Mail Removed)> wrote:
>> On 1/3/2010 3:21 PM, dorayme wrote:

> [...]
>> Here's my text from the other article which you may not see properly
>> after your sig and which responded to the OP rather than to you. Please
>> run the example as I provided.
>> ~~~~~~~~~~
>> Sorry about the "Edit Message as New", but I wanted your markup
>> unaltered but with his original, plus my addition - all included. I hope
>> it works in your (broken?) news reader.
>> You correctly pointed out that the floats were superfluous in his
>> example, however, note that with my addition I demonstrate its usage if
>> the float were to be repositioned anywhere from its only two normal
>> float states (left and right).
>> This also gives the answer/corrects another thread in CIWAS (My VALID
>> page:....) wherein GTalbot states "Float and position should never go
>> together" and Ben C responds with "Why not?" - GTalbot has not answered
>> so far.

> If the answer is that an float is superfluous with e.g. position:
> relative, then the answer/correction is wrong. If you want an element
> to act like a floated element, but need to change the position up,
> down, left or right; then you need both eg. 'float: left' and
> 'position: relative' .
> "It [the float property] may be set for any element, but only applies
> to elements that generate boxes that are not absolutely positioned."

"IF" ?? Darn it all, I read it over and over and can't see how you
could come up with an "IF" and reverse my position! Had you read it
properly you would have noted that an example of my position was also
provided. Nothing wrong with anything else you said.


Reply With Quote
Andy Dingley
Posts: n/a
On 3 Jan, 19:44, richard <(E-Mail Removed)> wrote:
> Playing around with this

You'd do so much better if you tried to _learn_ something, rather than
playing around randomly.

In general though, display: table-cell et al. are best ignored. They
were originally intended for use with XML+CSS, not HTML+CSS.

For tables from HTML, use <table>

For tables from XML, use XSLT to HTML, then <table>

For HTML use they don't work well - mostly because the most useful
elements to apply them to are the <table> family anyway, where they're
already implicit. You need three levels of nesting (table, row, cell)
to get anywhere useful with table rendering in HTML so you can't do it
with simple two-level lists like <ul>. As you have to mark up with
_something_, then it's either three levels of meaningless <div>, or
just using <table> anyway.

Then there's always the potential problems of browser support.
Reply With Quote

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 On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
question row filter (more of sql query question) =?Utf-8?B?YW5kcmV3MDA3?= ASP .Net 2 10-06-2005 01:07 PM
Quick Question - Newby Question =?Utf-8?B?UnlhbiBTbWl0aA==?= ASP .Net 4 02-16-2005 11:59 AM
Question on Transcender Question :-) eddiec MCSE 6 05-20-2004 06:59 AM
Question re: features of the 831 router (also a 924 question) Wayne Cisco 0 03-02-2004 07:57 PM
Syntax Question - Novice Question sean ASP .Net 1 10-20-2003 12:18 PM