HighDots Forums  

Re: Mozilla -moz-inline-box alternative

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: Mozilla -moz-inline-box alternative in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andy Dingley
 
Posts: n/a

Default Re: Mozilla -moz-inline-box alternative - 01-04-2007 , 12:00 PM







Aaron Gray wrote:

Quote:
I have two tables in <spans> I want side by side,
I'd suggest that you start by stopping doing that. It's not valid HTML,
so how it gets rendered is always going to be unpredictable. If you
want a pair of tables side-by-side, then there are valid ways to do
this. Pretending that a <table> can somehow be rendered inline though
isn't it.



Reply With Quote
  #2  
Old   
Michael Stemper
 
Posts: n/a

Default Re: Mozilla -moz-inline-box alternative - 01-04-2007 , 01:50 PM






In article <504qdgF1eem03U1 (AT) mid (DOT) individual.net>, Aaron Gray writes:
Quote:
I have two tables in <spans> I want side by side,

I'd suggest that you start by stopping doing that. It's not valid HTML,
so how it gets rendered is always going to be unpredictable. If you
want a pair of tables side-by-side, then there are valid ways to do
this. Pretending that a <table> can somehow be rendered inline though
isn't it.

Yes I have found out this now, but how do I go about putting two tables side
by side in a <div> then ?
Actually, you don't even need to put them in a div. Just apply a style
of "float: left;" to the first one, and if there's room for both to be
side-by-side in the user's agent, they will be displayed that way.

--
Michael F. Stemper
#include <Standard_Disclaimer>
COFFEE.SYS not found. Abort, Retry, Fail?



Reply With Quote
  #3  
Old   
Andy Dingley
 
Posts: n/a

Default Re: Mozilla -moz-inline-box alternative - 01-04-2007 , 06:27 PM




Aaron Gray wrote:

Quote:
Yes I have found out this now, but how do I go about putting two tables side
by side in a <div> then ?
Do it with CSS, and do whatever you like. Just don't mess with the HTML
rules, because those are fixed and not flexible.

Quote:
I have tried using "display: inline-block;" style but got no where.
This isn't widely supported, so I'm not surprised and I wouldn't
recommend using it this year. You can either set the display property
to something that's more inline, or you can set float:left to treat
them as two blocks that sit side-by-side. From the brief description
so far, I'd probably use floats. I doubt if you need to wrap the
<table> in a <div> either -- you can probably just do it all by
applying CSS directly to the tables. You might need a break afterwards
though. brainjar.com has a good explanation of how to use CSS
positioning.



Reply With Quote
  #4  
Old   
Ben C
 
Posts: n/a

Default Re: Mozilla -moz-inline-box alternative - 01-06-2007 , 06:12 AM



On 2007-01-04, Michael Stemper <mstemper (AT) siemens-emis (DOT) com> wrote:
Quote:
In article <504qdgF1eem03U1 (AT) mid (DOT) individual.net>, Aaron Gray writes:
I have two tables in <spans> I want side by side,

I'd suggest that you start by stopping doing that. It's not valid HTML,
so how it gets rendered is always going to be unpredictable. If you
want a pair of tables side-by-side, then there are valid ways to do
this. Pretending that a <table> can somehow be rendered inline though
isn't it.

Yes I have found out this now, but how do I go about putting two tables side
by side in a <div> then ?

Actually, you don't even need to put them in a div. Just apply a style
of "float: left;" to the first one, and if there's room for both to be
side-by-side in the user's agent, they will be displayed that way.
Really you should float both of them left, although what you suggest
does actually work in Firefox which some of the time appears to treat
tables as if they were display: inline-table.


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.