Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    Regular Coder Doctor_Varney's Avatar
    Join Date
    Mar 2008
    Location
    Midlands, UK
    Posts
    649
    Thanks
    45
    Thanked 29 Times in 28 Posts

    Experiments With Scrolling Tricks Using Fixed BG - This Could Be So Cool, But...

    Take a look at this, if you wouldn't mind.

    I'm sure you can see how my mind is working and where I'm hoping to get with it, but it's something I coded from scratch and therefore done on guesswork alone.

    Yes it's fraught with problems and limitations at the moment. The most obvious being a distinct 'rolling up' of the background, as the page scrolls. It's not so much been coded with authority, as poked into submission with constant changes, to get this far. I feel I could do with some guidance, in order to develop it into something I could use as part of my page design repertoire.

    The basic premise of the design, is a background set OVER the content (as opposed to BEHIND it) with a simple hole cut out (via transparency) for the page to show through.

    One of the main problems was in getting the entire paragraph to show... It kept getting cut off; as if the page was restricted somehow, in the amount that it would scroll, which wasn't enough. In some incarnations, as said, the background would literally 'roll up' and dissapear into itself, as the content scrolled, leaving me with the text hanging out of an incomplete background. How this could be so, I can't fathom. Any ideas? (If this doesn't make sense, I can force the problem back in, in order to demonstrate. Please let me know. It's an intriguing and unexpected fault.) This will probably only scroll for you, if browsed in a smaller window. In a maximized state, the scrolling effect is nulled completely, so the full text is unavailable to the viewer.

    Edit: Setting HTML {height:200%} has just told me why the above happens. Still, I don't have a solution for taming it.

    I don't imagine for one moment this is the best way of achieving the effect, though I would be very grateful for any pointers in the right direction, towards perfecting it.

    I am also concerned about the wideness of browser support for fixed backgrounds and scrolling, in this manner. But as you can imagine, if this can be proven a goer, then I'm excited about the possibilities. I'd love to develop a site which could do this and hang together in all popular browsers and, as far as possible, remain resolution independant.

    It would be absolutely perfect for building a gallery of my artwork, so I could have supporting text, which took up little space, among the pictures. I really don't like scrollbars invading the content area; for me, they belong on the outside edge of the browser. Otherwise, I'd have just used divs, with their overflow set to :auto;.

    Many thanks



    (Tested in FF4 and IE7).
    Last edited by Doctor_Varney; 11-24-2008 at 08:07 PM.
    Definition: Computer rage is a heightened physiological response with associated feelings of anger and frustration[1] resulting from using a computer or other complex electronic device. It may result in the physical assault of the computer or similar item.[2] Computer use often leads to verbal abuse and occasionally physical violence towards the object.[3] Computer rage may be caused by distress due to a hardware or software problem which the enraged person is unable to correct.

  • #2
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Not quite sure what you want, but this might be useful reading. Lower down there is stuff on fixed backgrounds.

    How do you get your menu to stay fixed like that?
    How do you get your background to stay fixed like that?


    for instance.

    Frank
    Last edited by effpeetee; 11-24-2008 at 09:04 PM.
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello Doctor_Varney,
    Have a look at this: http://nopeople.com/Doctor_Varney/

    I put it up on a test server because I edited the bg image.
    As always, View Source to get the code if you want it.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #4
    Regular Coder
    Join Date
    Oct 2008
    Posts
    130
    Thanks
    0
    Thanked 4 Times in 4 Posts
    The height of your body extends after the content when it rolls up. You could try decreasing this or setting the width of your two margins less so that they would'nt do this.

  • #5
    Regular Coder Doctor_Varney's Avatar
    Join Date
    Mar 2008
    Location
    Midlands, UK
    Posts
    649
    Thanks
    45
    Thanked 29 Times in 28 Posts
    Quote Originally Posted by Excavator View Post
    Hello Doctor_Varney,
    Have a look at this: http://nopeople.com/Doctor_Varney/

    I put it up on a test server because I edited the bg image.
    As always, View Source to get the code if you want it.
    Thank you, except the intented result is to eradicate scrollbars from the inside of the design; rather utilizing the main browser's bar only. Is this even possible, I wonder? I'll have to check the links at BonRouge, as Frank suggests...

    Thanks

    Definition: Computer rage is a heightened physiological response with associated feelings of anger and frustration[1] resulting from using a computer or other complex electronic device. It may result in the physical assault of the computer or similar item.[2] Computer use often leads to verbal abuse and occasionally physical violence towards the object.[3] Computer rage may be caused by distress due to a hardware or software problem which the enraged person is unable to correct.

  • #6
    Regular Coder Doctor_Varney's Avatar
    Join Date
    Mar 2008
    Location
    Midlands, UK
    Posts
    649
    Thanks
    45
    Thanked 29 Times in 28 Posts
    Here is a good example, I just found, at the Zen Garden. The CSS looks rather complex though. I was hoping it could be made simpler and also work for mutiple boxes...?

    Last edited by Doctor_Varney; 11-24-2008 at 10:17 PM.
    Definition: Computer rage is a heightened physiological response with associated feelings of anger and frustration[1] resulting from using a computer or other complex electronic device. It may result in the physical assault of the computer or similar item.[2] Computer use often leads to verbal abuse and occasionally physical violence towards the object.[3] Computer rage may be caused by distress due to a hardware or software problem which the enraged person is unable to correct.

  • #7
    New to the CF scene
    Join Date
    May 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    using javascript to control the scroll on determined contet (div)

    Hi Doctor, how are your experiment?

    I'm looking for the same thing, starting rght now.

    Well, I'm think that javascript can observer the default browser scroll bar and use it only to scroll a determined div with overflow:scroll.

    What do you think?

  • #8
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    FYI Firefox is only officially at version 3.0.10 but has a beta at version 3.5. Check out the fixed layouts here: http://www.cssplay.co.uk/

    Its under layouts.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •