472,951 Members | 2,322 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 1983
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
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
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
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: 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
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
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
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
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
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
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

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.