Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8208275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:17:05+00:00 2026-06-07T09:17:05+00:00

I have coded a div that is mostly hidden until clicked on where it

  • 0

I have coded a div that is mostly hidden until clicked on where it expands and then is hidden again when clicked on. You can look at the jsfiddle for that here: http://jsfiddle.net/Z8vEs/1/

I have used this method on another website and it works there, but for some reason not on a new website I am crafting, and frankly I am stumped and frustrated. I am not very well versed in jQuery so I am not sure how to go about debugging, so any suggestions would be appreciated. The only other jQuery I am using is an edited version of an image slider from codrops: http://tympanus.net/codrops/2011/08/09/portfolio-image-navigation/

You can view my website to see the issue for yourself at http://quintinmarcus.com/

Thanks for any help
-Quintin

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T09:17:07+00:00Added an answer on June 7, 2026 at 9:17 am

    Because ‘custom.js’ file is loaded before <div id="about"> is created, you might wanna do something like this:

    $(document).ready(function() {
        $("#about").click(function() {
        if($('#about').css('width') == '83px'){
          $('#about').animate({'width':'380px'},350);
          $('#about').animate({'height':'457px'},350);
        }
        else{
          $('#about').animate({'width':'83px'},350);
          $('#about').animate({'height':'11px'},350);
        }
        });
    
     });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have code that uses jquery.slideup and jquery.slidedown How can i know that div
I have coded a simple div containing an image that follows the mouse cursor
I have a <div> that holds a google ad. My website is mostly AJAX
My Code I have a div that when you hover over it shows different
I have code that adds a pre-determined HTML snippet into a pre-determined <div> element
ok so i have code that fundementally has this structure: firstly a main div
I have Repeater Control and in that i have code like this <div runat=server
I have this code that changes the opacity of the div on hover. $(#navigationcontainer).fadeTo(slow,0.6);
I have a jquery line of code that outputs some HTML to a div.
i have the following problem with that code in my html tag: <div id=searchbar><input

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.