473,396 Members | 2,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

IE 5.5 Mac - float width problems + general review

Hi
about 1% of my clients use macs, and I've spent an inordinate amount of time
trying to get things working on them...
I've validated my html and css - the html has 5 errors (strict), all due to
asp.net. I don't believe these to be the problem (missing
type='text/javascript' and that sort of thing).

The site works fine in NS7.1 and IE6, and has done so when i used
transitional and strict doctypes.
It is currently strict.

On the mac, apparently the floated inner panels (badly named LeftPanel and
InnerRightPanel) are the full width of the parent (RightPanel), wheras in NS
and IE they are the width of their own content. I have set them as
display:inline, as I believed this would solve the issue, but it doesn't :(

If anyone could have a look in any other browsers and tell me of any issues,
I'd be very grateful - ditto as to solving the mac problem.
The site can be found at www.intrepidnoodle.com.
Thanks in advance.

Aaron Robson
Intrepid Noodle Ltd

Jul 20 '05 #1
4 2999
and then Aaron Robson said:
On the mac, apparently the floated inner panels are the full width of the
parent (RightPanel), wheras in NS and IE they are the width of their own
content.
CSS2 #9.5 Floats:
"A floated box must have an explicit width (assigned via the 'width'
property, or its intrinsic width in the case of replaced elements)."

Your div is not replaced. You must specify the width or it could be
anything. IIRC most browsers will set it to the width of the container.
I have set them as display:inline,


CSS2 #9.5.1 Positioning the float: the 'float' property:

"The 'display' [property on floated elements] is ignored, unless it has the
value 'none'."
Jul 20 '05 #2

"viza" <no**@example.invalid> wrote in message
news:na*****************@newsfep1-win.server.ntli.net...
and then Aaron Robson said:
On the mac, apparently the floated inner panels are the full width of the parent (RightPanel), wheras in NS and IE they are the width of their own
content.
CSS2 #9.5 Floats:
"A floated box must have an explicit width (assigned via the 'width'
property, or its intrinsic width in the case of replaced elements)."

Your div is not replaced. You must specify the width or it could be
anything. IIRC most browsers will set it to the width of the container.
I have set them as display:inline,


CSS2 #9.5.1 Positioning the float: the 'float' property:

"The 'display' [property on floated elements] is ignored, unless it has

the value 'none'."

Thanks for your response Viza. I think I'd read that, but hoped it didn't
really mean it! hence my futile attempt with the display:inline :)
Hmmm. Is there any solution to this if I want to have the DIVs size to the
content ?
As I see it I could set a percentage width, but as I don't know what will go
into them on any particular page, this could lead to some unfortunate
wrapping or even overflow.
Since it is working in IE5.5, IE6 and NN7.1, it seems as if one option would
be to use the \*/ hack to make the Mac read css with % widths in for those
elements.
I wonder how many users are likely to hit my site with a browser which does
it 'correctly' ? Not many I imagine.
Thoughts / solutions anyone ?

Cheers
Aaron
Jul 20 '05 #3
> CSS2 #9.5 Floats:
"A floated box must have an explicit width (assigned via the 'width'
property, or its intrinsic width in the case of replaced elements)."

Your div is not replaced. You must specify the width or it could be
anything. IIRC most browsers will set it to the width of the container.
I have set them as display:inline,
CSS2 #9.5.1 Positioning the float: the 'float' property:

"The 'display' [property on floated elements] is ignored, unless it has

the
value 'none'."

Thanks for your response Viza. I think I'd read that, but hoped it didn't
really mean it! hence my futile attempt with the display:inline :)
Hmmm. Is there any solution to this if I want to have the DIVs size to the
content ?
As I see it I could set a percentage width, but as I don't know what will

go into them on any particular page, this could lead to some unfortunate
wrapping or even overflow.
Since it is working in IE5.5, IE6 and NN7.1, it seems as if one option would be to use the \*/ hack to make the Mac read css with % widths in for those
elements.
I wonder how many users are likely to hit my site with a browser which does it 'correctly' ? Not many I imagine.
Thoughts / solutions anyone ?

Cheers
Aaron


Just an update... the site works with Opera 7.11 too...
How come it works with the latest versions of Netscape and Opera - I
thought they were meant to be standards compliant ?

Jul 20 '05 #4
In article <NT*****************@newsfep1-win.server.ntli.net>,
viza <no**@example.invalid> wrote:
Since it is working in IE5.5, IE6 and NN7.1, it seems as if one option
would be to use the \*/ hack to make the Mac read css with % widths in for
those elements.
I wonder how many users are likely to hit my site with a browser which
does it 'correctly' ?

One thing you need to remeber is that if you make a site that relies on a
bug, or in this case relies on a browser happening to do what you want at
random, then you have no guarantee that future versions will behave in the
same way.
Of IE/Mac there will be none.
You need to make your site so that it works on a theoretical
'perfect css compliant' browser, because this is what browsers are moving
towards* and then work backwards towards the hacks you need to make it
work.


Your point still stands. :)

--
Kris
kr*******@xs4all.netherlands (nl)
"We called him Tortoise because he taught us" said the Mock Turtle.
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Mad Butch | last post by:
void Test() { float fValue = 0.5678f; // Value is 0.567800 double dValue = (double)fValue; // Value is 0.56779998540878 } Is there anyway I can round a float at 6 positions behind the...
4
by: Florian Brucker | last post by:
Hi! I've got a problem with float & clear. Take this example code: <div style=" width:100px; height:100px; background-color:#FF0000; float:left; margin:10px;"></div> <span...
2
by: Rainer Birkenmaier | last post by:
Hi Folks, I have 2 little problems: 1) http://birkenmaier.org/b.php IE 6.0 does something weired here: in the red box the first lines of text have a slight indet (2 or 3 pixels only). This...
5
by: Chris Beall | last post by:
See http://pages.prodigy.net/chris_beall/BeallSprings/WC.Deed%20GG.116-17.html using the CSS at http://pages.prodigy.net/chris_beall/BeallSprings/BSstyle.css The page is a transcript of a...
2
by: Dr. Richard E. Hawkins | last post by:
I've googled around, and asked everyone I know, but I still can't find any reference to anyone else having faced this particular IE bug with floats. I've put a page at...
7
by: Gnolen | last post by:
Hi, I have a problem with float in firefox/mozilla, the 'ads'-div doesn't resize on the height with the 'ads_left' and 'ads_right'. In IE there is no problem but in FF there is. The 'ads'-div do...
5
by: S | last post by:
Whew! Thanks for your help on that last post. I actually understand what you wrote. I'm trying not to use these groups as a way to get my code written for me, I really want to understand what...
5
by: Oliver Block | last post by:
Hello everybody, I wonder why a <span style="float:right">some text</span> might be displayed out of a surrounding div element. It is shifted to the next line. I thougt it is supposed to...
27
by: GloStix | last post by:
WARNING VIDEO TAKES A WHILE TO LOAD http://screencast.com/t/BWQ6DNtsM I really don't know how to fix this other than putting another div. But I dont' exactly want to do that for every page....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
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,...
0
tracyyun
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.