Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Safari issues

Safari issues
Thread Tools
stayinguplate
Fresh-Faced Recruit
Join Date: Nov 2004
Status: Offline
Reply With Quote
Nov 3, 2004, 08:12 PM
 
I'm having problem with Safari but not IE, Netscape, Opera or Firefox.

Example of a page with this problem is here and style sheet is here.

The text is within a <div> and is made scrollable by javascript. The problem is the text extends down beyond the bottom of the container in the Safari browser.

Any suggestions? I'm on a PC not a Mac, but have checked the site on a Mac.
     
philzilla
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Nov 4, 2004, 03:15 AM
 
you can just use overflow: scroll in that div, surely?
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Chris O'Brien
Grizzled Veteran
Join Date: Nov 2003
Location: Hebburn, UK
Status: Offline
Reply With Quote
Nov 4, 2004, 06:23 AM
 
The clip CSS property is only supposed to apply to absolutely positioned elements. Change divContainer to have an absolute position and it will work.

Edit: What I said above is actually wrong. The CSS property should work for any element with overflow: set to anything but visible. Which you have done. Oh, the link to the spec is here.

However, I am sure I seen something about having to use position: absolute somewhere, but maybe that is only supposed to apply to safari...

Anyway, it works if you do set it to absolute, but it'll mean you'll have to change the CSS somewhat. Just go with Phils suggestion if you want an easy life

Edit (again): OK. It seems like Safari has issues with floating the element. (Your float: left). Taking that out and everything seems to work (apart from layout). So there's a bug in Safari's layout engine I never knew of - it can't set dimensions of relatively positioned floating elements...

Oh. Next time, I'll go through a problem thoroughly rather than posting a tonne of edits like this
( Last edited by Black Book; Nov 4, 2004 at 06:48 AM. )
Just who are Britain? What do they? Who is them? And why?

Formerly Black Book
     
philzilla
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Nov 4, 2004, 07:05 AM
 
Originally posted by Black Book:
Oh. Next time, I'll go through a problem thoroughly rather than posting a tonne of edits like this
where's the fun in that?
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 06:57 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,