View Full Version : holy crap this is cool- static section within page
moscarda
12-16-2006, 02:13 AM
how did they get the portfolio to scroll with the brower's scrollbar and the rest of the site stays static?!?!
http://www.nice-design.co.uk/
Kenny
12-16-2006, 02:37 AM
Nice side effect with Firefox
Same lame page design with IE
Looks like he's having troubles with opera
moscarda
12-16-2006, 02:44 AM
hmm all three look the same for me
any idea how to do it?
mwinter
12-16-2006, 03:15 AM
how did they get the portfolio to scroll with the brower's scrollbar and the rest of the site stays static?!?!
http://www.nice-design.co.uk/
Nothing special, just fixed positioning. However, it's used badly. Not only does it take up huge amounts of space, but view the document in much less than a maximized browser on a 1024x768 display and parts of the text are unreachable.
Fixed positioning has been around since the beginning of CSS 2 way back in '98 or so. Microsoft have only just got around to implementing it in IE 7, though it can be emulated with scripting.
Mike
benniaustin
12-20-2006, 09:28 PM
You really dont need to use any javascript, to do this in ie. Checkout http://www.benniaustin.com.
Using only CSS I've crafted a solution that works fine in both browsers. Have not tested opera yet though.
Forgive the state of the website, it's brand new.
mwinter
12-21-2006, 02:12 AM
You really dont need to use any javascript, to do this in ie.
It's one of the better ways as it doesn't prejudice other browsers.
Checkout http://www.benniaustin.com.
Using only CSS I've crafted a solution
You're far from the first person to use the overflow property, and that, on its own, is only suitable in some circumstances.
that works fine in both browsers.
What's "both browsers".
Have not tested opera yet though.
It breaks horribly in Opera 7.
Forgive the state of the website, it's brand new.
If you intend to offer development advice, I do hope you aim to use better markup and style sheets that promote best practice. At least start by steering clear of pseudo-XHTML, and runs of forced line breaks (br elements) are blatant abuse.
Mike
benniaustin
12-21-2006, 03:59 PM
yeah yeah yeah, like i said it's brand new. I wrote a bunch of articles, and literally just published the site yesterday. I know the BR's are a no-no, but whatever, I had to get back to work. I figured it was good for now, I'll fix it later.
As for the both browsers comment. You ask the question as if you dont' know what I meant. Obviously I meant, the 2 most common browsers, firefox and IE6. I guess that comes from where I work. We tell our clients that we only support firefox and ie, therefore, at work we say things like, "it works in both browsers".
benniaustin
12-21-2006, 04:02 PM
the forced line breaks at the bottom of the page were there, just to make the page scrollable to illustrate the effect.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.