473,503 Members | 5,495 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE 5.2 for Mac CSS float problem (works when border enabled)...

Tim
hi,

I have some code that works in all web browsers except IE 5.2 for Mac
(heard this one before? :-)

the CSS code basically creates two id's, one is a container for the
other. eg:

CSS Code:
....
#main
{
background-image: url(../images/background_2.jpg );
width: 550px;
height: 390px;
margin: 30px auto 0 auto;
padding: 0;
border: 0px solid orange;

}

#main_scroll
{
overflow: auto;
float: left;
width: 550px;
max-width: 550px;
height: 310px;
margin: 40px 0 0 0;
padding: 0;
border: 0px solid orange;
}

....
HTML Code:
....
<div id="main">
<div id="main_scroll">
main stuff...
</div>
</div>
....

basically, main creates a box 550px wide and 390px high, then inside
this box should sit main_scroll, which will contain information that
may need to be scrolled...

This code works on all browsers, except IE for Mac AND works on IE for
Mac when I set "border: 1px..." on main_scroll. I don't understand why
IE for Mac doesn't position this correctly when there is no border - it

simply lines up the main_scroll box with the main box - instead of
having it sit inside the main box, 40px down...

thanks in advance.
Tim

Jul 28 '05 #1
3 1994
Tim wrote:

I have some code that works in all web browsers except IE 5.2 for Mac
[snip code]

I don't understand why
IE for Mac doesn't position this correctly when there is no border


MacIE has rather buggy overflow behavior. You're probably lucky it
renders anything like you want under any conditions.

I suggest you either set the border property to appease MacIE, or forget
about MacIE altogether and hide those rules from it. @media rules do
that easily, as does the escaped comment hack. Google for more info.

BTW, MacIE is a dead browser. There isn't much benefit in bending over
backwards for it unless you have a large MacOS user base. OSX users tend
to use Safari or some other browser. As long as the page is still
usable, you're covered.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 28 '05 #2
In article <3k************@individual.net>, kchayka <us****@c-net.us>
wrote:

BTW, MacIE is a dead browser. There isn't much benefit in bending over
backwards for it unless you have a large MacOS user base. OSX users tend
to use Safari or some other browser. As long as the page is still
usable, you're covered.


Amen. I tend to embrace dead technology till the bitter end. I lived
with IE5 and 640x480 resolution till early March when I switched to
Safari. Well, I wasn't quite that dim. I used Mozilla as my main
browser, but it hadn't been updated for OS9 users for ages. I think I
was the last person on earth to lease an AT&T phone.

leo

--
<http://web0.greatbasin.net/~leo/
Jul 30 '05 #3
Jul
Dans son message précédent, Tim a écrit :
hi,

I have some code that works in all web browsers except IE 5.2 for Mac
(heard this one before? :-)

the CSS code basically creates two id's, one is a container for the
other. eg:

CSS Code:
...
#main
{
background-image: url(../images/background_2.jpg );
width: 550px;
height: 390px;
margin: 30px auto 0 auto;
padding: 0;
border: 0px solid orange;

}

#main_scroll
{
overflow: auto;
float: left;
width: 550px;
max-width: 550px;
height: 310px;
margin: 40px 0 0 0;
padding: 0;
border: 0px solid orange;
}

...
HTML Code:
...
<div id="main">
<div id="main_scroll">
main stuff...
</div>
</div>
...

basically, main creates a box 550px wide and 390px high, then inside
this box should sit main_scroll, which will contain information that
may need to be scrolled...

This code works on all browsers, except IE for Mac AND works on IE for
Mac when I set "border: 1px..." on main_scroll. I don't understand why
IE for Mac doesn't position this correctly when there is no border - it

simply lines up the main_scroll box with the main box - instead of
having it sit inside the main box, 40px down...

thanks in advance.
Tim


Well, there is an other property wich has the same effect as setting
the border to something true in this case, it is the padding property.
Try to set it to 1px, and you'll have all it working. (this also
resolves other problems, try it whenever you can.
For the padding not to be visible, I once tryed to set it to 0.1px...
it worked as I expected on some browsers but still buggy on others.

--
Jul... réapparru comme par enchantement

Aug 1 '05 #4

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

Similar topics

1
2110
by: Robert | last post by:
I created two pages. One using CSS and the other using a table. I'd like the css version to work like the table version. The problem arises when the full image doesn't fit in the window. Click...
3
3440
by: Aaron C | last post by:
Hi, I'm having IE6 problems with interpreting stylesheets, and I'm hoping someone could clarify a couple of things for me: First of all,page I'm testing can be viewed at...
2
5695
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
5532
by: alex.krupp | last post by:
I have this webpage where I am getting the dreaded float drop bug in IE. I tried everything in the float drop FAQs online, but nothing can get it working. I have narrowed down the problem though....
9
5076
panachepad
by: panachepad | last post by:
I arrived here from a websearch that found this thread from your archives: http://www.thescripts.com/forum/thread97805.html It helped me to understand that I am on the right track, but I still have...
14
4959
by: Mark | last post by:
please view http://mnbayazit.com/misc/sample.gif i'm wondering how i can make the sidebar (green) float to the right of the main text, without specifying the width of the main content (because...
27
3830
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....
7
3277
by: Jim in Arizona | last post by:
I'm brand new at ajax. In fact, about 20 minutes ago was the first time I got it to work. The problem I'm having on another page did not work, however. I'm running into the following error: ...
13
7899
by: limelites | last post by:
In IE7, FF, Chrome and Safari, everything looks great but in Opera the display of the additional images in my product page looks awful. This is a site that does attract foreign visitors who do use...
0
7207
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
7291
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,...
1
7012
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5598
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,...
0
4690
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...
0
3171
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1522
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
402
bsmnconsultancy
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...

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.