christian9997@hotmail.com wrote:[color=blue]
> Ok I've found what the problem is:
>
> Apparently in Internet Explorer you only need to use 2 values for
> "display":
> "none" = invisible
> "inline" = visible
>
> while in Netscape and Firefox
> "none" = invisible
>
> but then depending what item you want to display you need to use
> specific keywords:
> "table" = display table
> "table-row" = display table row
> etc...
> I suspect "inline" adds some sort of line break hence my problem.[/color]
Your issue has nothing to do with JavaScript, try either:
comp.infosystems.
www.authoring.stylesheets or
comp.infosystems.
www.authoring.html
To fix your immediate issue and achieve better cross-browser support,
toggle between 'none' and '' unless some other display attribute is
specifically needed. IE only follows some of the W3C specification in
for style.display, Netscape and Mozilla more fully implement it.
[color=blue]
>
> Here are more details:
>
http://www.w3schools.com/css/pr_class_display.asp[/color]
Which points out the faulty implementation of IE 5, but I presume you
also wish to support more modern browsers than IE 5 and Netscape 4?
[color=blue]
>
> This is all very confusing, I wish the browser companies would agree
> more on standards. My website works perfectly in IE and it's taking me
> ages to make it look ok in Netscape and Firefox.
>[/color]
Do not blame other browsers for not implementing the same faulty
style object as IE. You also do not specify a doctype in your HTML
which may cause other issues with browsers behaving differently for
the same markup (even IE behaves differently given different doctypes
for the same HTML).
Before complaining about browsers, first validate your pages to
ensure your markup is correct. Then if you raise your issues at one
of the above forums you will likely get very specific and complete
answers to any problems you may have.
--
Fred