Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4

Thread: CSS popups?

  1. #1
    Junior Member
    Join Date
    Aug 2006
    Posts
    2
    Member #
    13719
    Hello, I am new to the forums!

    I have been coding webpages in HTML for years and recently started seriously getting into CSS. One thing I do not understand though, is how to do CSS popups.
    The best example I can think of is digg when you go to press "digg it" and your not logged in, that little box comes up and greys out the text and stuff. I would like to know how to do something similar, but instead of just greying out one area, the entire webpage is greyed, and having a popup without a new window.

    Can anybody help me? It would be greatly appreciated. Thank you!

  2.  

  3. #2
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    This is not a CSS thing alone. It is, in fact, Javascript. Generally speaking, I believe the Javascript creates a div that encompasses the entire page and makes it have a black background that is slightly transparent -- this creates the dimming effect; it then creates another div that acts as the popup in the middle.

    Some scripts that provide this functionality:
    - Prototype Window Class (based on the excellent Prototype library)
    - dojo

    I thought I'd be able to find more, but it looks like the Google search isn't as easy as I originally believed and it's late. Anyway, the Prototype Window Class looks to be particularly useful. But then, I'm a fan of Prototype :-)

  4. #3
    Junior Member
    Join Date
    Aug 2006
    Posts
    2
    Member #
    13719
    :laugh: Thank you so much! Wow that is so helpful thank you thank you!

    I'm definately sticking around these forums more.

  5. #4
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    That's why we're here :-)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:13 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com