www.webdeveloper.com
Results 1 to 2 of 2

Thread: Div not showing up when button clicked

  1. #1
    Join Date
    Feb 2012
    Posts
    12

    Div not showing up when button clicked

    Trying to get the div with the id of #projectplanner to show up centered on the screen when i click the project planner button with the class of .pp-icon.

    When i click on the button i can see the scrollbar move but nothing shows up. if anyone can see what im doing wrong her that would be awesome

    the projectplanner button is the near the bottom of the page.

    Here is my url: www.travismichael.net

    Javascript
    Code:
    $("a.pp-icon").toggle(
          			 function (e) {
          				e.preventDefault(); // stops link from making page jump to the top
          				 $("#projectplanner").show();
           			 	 $("#projectplanner").slideUp(200);
         		 },
          		function () {
            		$("#projectplanner").slideDown(100); 
            		$("#projectplanner").hide();
        	    });
    CSS
    Code:
    /* ================= PROJECT PLANNER ===============================  */
    
    #projectplanner {width:800px; overflow:hidden; padding:15px; background:#222; display:none; position:absolute; margin-left:-400px; left:50%; z-index:5000;}

  2. #2
    Join Date
    Feb 2012
    Posts
    12
    never mind stupid me. sorry for wasting space my people!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles