I have two tables in <spansI want side by side, okay in IE but in Mozilla
I need to use "display: -moz-inline-box;" this does not work in Opera which
requires "display: inline-block".
Is there any other way out of this nightmare other than a isMozBug variable
that gets triggered is Mozilla is being used that substitues the appropriate
display value ?
Many thanks in advance,
Aaron 15 5572
Aaron Gray wrote:
I have two tables in <spansI 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 <tablecan somehow be rendered inline though
isn't it.
>I have two tables in <spansI 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 <tablecan 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 <divthen ?
I have tried using "display: inline-block;" style but got no where.
Could you give me some code or point me to an example please.
Many thanks for your reply,
Aaron
"Aaron Gray" <an********@gma il.comwrote:
>I have two tables in <spans>
Invalid HTML.
>I want side by side, okay in IE but in Mozilla I need to use "display: -moz-inline-box;" this does not work in Opera which requires "display: inline-block".
No on both counts as I already explained to you in comp.lang.javas cript.
>Is there any other way out of this nightmare other than a isMozBug variable that gets triggered is Mozilla is being used that substitues the appropriate display value ?
Here is the comp.lang.javas cript solution again without the JS:
table{display:i nline}
table{display:i nline-table}
(Do *not* combine the above 2 rules into one rule, or IE will trip up)
Note the caveats I already mentioned in comp.lang.javas cript
--
Spartanicus
"Spartanicu s" <in*****@invali d.invalidwrote in message
news:d2******** *************** *********@4ax.c om...
"Aaron Gray" <an********@gma il.comwrote:
>>I have two tables in <spans>
Invalid HTML.
>>I want side by side, okay in IE but in Mozilla I need to use "display: -moz-inline-box;" this does not work in Opera which requires "display: inline-block".
No on both counts as I already explained to you in comp.lang.javas cript.
>>Is there any other way out of this nightmare other than a isMozBug variable that gets triggered is Mozilla is being used that substitues the appropriate display value ?
Here is the comp.lang.javas cript solution again without the JS:
table{display:i nline}
table{display:i nline-table}
(Do *not* combine the above 2 rules into one rule, or IE will trip up)
Note the caveats I already mentioned in comp.lang.javas cript
I have a large ammount of DOM code with ,ultiple tables than need to be
combined in different ways in different usages that I would like to get to
work without the need for CSS.
Aaron
In article <50************ *@mid.individua l.net>, Aaron Gray writes:
>>I have two tables in <spansI 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 <tablecan 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 <divthen ?
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_Discl aimer>
COFFEE.SYS not found. Abort, Retry, Fail?
"Aaron Gray" <an********@gma il.comwrote:
>I have a large ammount of DOM code with ,ultiple tables than need to be combined in different ways in different usages that I would like to get to work without the need for CSS.
I see no reason to avoid CSS, even when you use the deprecated align
attribute a browser will likely map that to CSS and then apply it.
If you use JS to do this then you are simply manipulating CSS.
--
Spartanicus
Aaron Gray wrote:
Yes I have found out this now, but how do I go about putting two tables side
by side in a <divthen ?
Do it with CSS, and do whatever you like. Just don't mess with the HTML
rules, because those are fixed and not flexible.
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
<tablein a <diveither -- 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.
"Aaron Gray" <an********@gma il.comwrote in message
news:50******** ****@mid.indivi dual.net...
>I have two tables in <spansI want side by side, okay in IE but in Mozilla I need to use "display: -moz-inline-box;" this does not work in Opera which requires "display: inline-block".
Using :-
table.style.dis play = "inline";
On the tables in question solved the problem for all the browsers I am
testing on.
Thanks for the input,
Aaron
On 2007-01-04, Michael Stemper <ms******@sieme ns-emis.comwrote:
In article <50************ *@mid.individua l.net>, Aaron Gray writes:
>>>I have two tables in <spansI 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 <tablecan 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 <divthen ?
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Neil Zanella |
last post by:
Hello,
I just ran into an interesting problem with cookies while
using PHP 4 and Mozilla 1.6. Basically, I have been using
PHP on a site called:
foo.bar.net?script.php
Within that script I call setcookie() and manipulate
cookie variable $_COOKIE. All works fine
|
by: melledge |
last post by:
Mozilla Foundation Co-Hosts Europe's Leading XML and Web Developer
Conference
XTech 2005 Conference to Bring Together XML and Web Technology Thought
Leaders
|
by: Peter |
last post by:
Hello,
First of all, sorry for all the code. I don't know how to explain my
problem without it.
I have a javascript function which can build a webpage dynamically. A
striped down version of the function
looks like this:
BEGIN CODE
|
by: Peter Bremer |
last post by:
Hi all,
I've written this little piece of code, which doesn't seem to work in
Mozilla 1.5. I haven't tried it on other Gecko browsers, but I've found
some indication that Netscape 6+ has the same problem. Internet Explorer 6
and Opera 7 have no problems with it.
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN'
'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>
<script>document.write (window.history.length);</script>
|
by: tony kulik |
last post by:
This code works fine in ie and opera but not at all in Mozilla.
Anybody got a clue as to how to get it right?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<script language="JavaScript" type="text/javascript">
function show(that)
{
if (box.style.visibility=='hidden') { that.style.visibility =
'visible'};
}
| |
by: Jim Ley |
last post by:
Hi,
It seems the mozilla guys have chosen another (almost certainly poor
choice in my initial thoughts) of having document.all evaluate to
false, but document.all catch the chicken event - also
document.all.tags will work.
It seems that the document.all not evaluating to true is to stop the
really dumb object assumption scripts to fail and the document.all
scripts that don't bother with any object detection to all of a sudden
|
by: niftyhawk |
last post by:
Hi,
Can anybody give me a simple example of how to Call Web Services from
Mozilla based Browsers ? I can call web services from IE browser using
web service behavior file, without any problems. Just wanted to know an
easy way to call them from Firefox or Netscape.
Thanks,
Nifty.
|
by: News |
last post by:
I have a page up trying to learn how to ID a browser and other info.
http://wyght.com/warren/testPos.html
here is the code
<script type = "text/javascript">
var space = ", ";
var name = navigator.appName;
|
by: Thorsten Kampe |
last post by:
Hi,
I've already sent this to the Komodo mailing list (which seemed to me
the more appropriate place) but unfortunately I got no response.
I'd like to build a Python GUI app. Neither Tkinter nor Wxpython nor
PyQT are actually what I want (because the lack of GUI builders and
they don't really look good on Windows and Linux).
Komodo itself is an excellent example of a - at least Python driven -
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |