Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

paulalbert

macrumors newbie
Original poster
Jul 24, 2004
2
0
hey all,

I am just about done with the design of a web site, one which uses frames:
http://www.malbertphoto.com/

Is there any way to prevent Safari from allowing users to resize the window one click in? It's the only browser that poses this problem.

I'm familiar with the "noresize" attribute and have it used in my Frameset.html file but it doesn't seem to work.

My theory is that Safari allows resizing no matter what-- even for frames, even when the code says otherwise.

What do you all think?


Paul
 
Im confused by your question. Do you not want the prevent user from resizing the window, or move the frame borders inside the page? In safari, I was unable to move the frame borders (ie resize the frames) so the noresize does work (Safari 1.2.2).

If you want to fix the window size, you need pass "resizeable='no'" as part of your last argument for the window.open() function in your javascript. But on that note, requiring users to scroll right is a big no-no in web development.
 
thanks for the feedback

What I was talking about was the resizing of the whole window. You're right that the frames can't be resized. I was just wondering if you could do that for the whole window.

Thanks,
Paul

p.s. Thanks for the tip on the no-no I'll try to keep future sites from scrolling right.
 
Re: side-scrolling

Horizontal scrolling is usually frowned upon when combined with vertical scrolling, but it can be employed for nice effect in certain instances.

e.g. CSS Zen Garden - What Lies Beneath

I'm not advocating everyone do it, by any means, just thought I'd point out instances where the pros can "break the rules" with success. ;)
 
There is also a problem with horizontal scrolling because of the doctype tag.

I had an iframe and no matter what I did in IE there was a horizontal scroll bar but after some searching I found the answer. Not sure if this is your problem but I will post it for future reference, it drove me nuts.

If you are using dreamweaver especially, it will put this tag at the top:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

It needs to be modified to be:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Weird problem but that can actually stop certain pages from scrolling horizontal oddly enough.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.