Link to home
Start Free TrialLog in
Avatar of MacLean Fitzgerald
MacLean FitzgeraldFlag for United States of America

asked on

jquey/css question

I have the following code below.

I'm trying to get the rounded corners piece to just slide down when clicked.  I cannot quite get it right.

Basicallty I want "panel" to be taller and start above the "flip".

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script> 
$(document).ready(function(){
    $("#flip").click(function(){
        $("#panel").slideToggle("slow");
    });
});
</script>

<style> 
  .container-cta{
     width: 250px;
    float: right;
  }
.main-cta{
height: 25px;
}
#panel, #flip {
    padding: 5px;
    text-align: center;
width: 400px;
-webkit-border-radius: 0px 0px 60px 60px;
-moz-border-radius: 0px 0px 60px 60px;
border-radius: 0px 0px 60px 60px;
background-color:#E3A20B;
}

#panel {
 padding: 5px;
    display: none;
width: 400px;
-webkit-border-radius: 0px 0px 60px 60px;
-moz-border-radius: 0px 0px 60px 60px;
border-radius: 0px 0px 60px 60px;
background-color:#E3A20B;
}
</style>
<div class="container-cta">
<div id="flip">Click to slide the panel down or up</div>
<div id="panel">Hello world!</div>
  </div>

                                          

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Tom Beck
Tom Beck
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MacLean Fitzgerald

ASKER

Apologies, I wasn't trying to ignore your comment.  I just got caught up in the latest entry.  I should have taken more time to look at both.  

This solution is perfect.  Thank you.
No problem. Thanks for the points.