I'm struggling to find a solution for my current HTML setup. Here's what I have:
<script>
$(document).ready(function(){
$("#flip").click(function(){
$("#panel").slideToggle("slow");
});
});
</script>
<style type="text/css">
</style>
</head>
<body>
<div id="flip">
<p>Click to slide the panel down or up</p>
<img class="ux" src="/path" alt="complete" height="32" width="32" align="right" />
<img class="ux" src="/path" alt="add" height="32" width="32" align="right" />
<img class="ux" src="/path" alt="edit" height="32" width="32" align="right" />
<img class="ux" src="/path" alt="remove" height="32" width="32" align="right" />
</div>
<div id="panel">Hello world!</div>
CSS:
body {
width: 80%;
margin: auto;
margin-top: 30px;
}
#panel,#flip
{
padding:5px;
text-align:center;
background-color:#e5eecc;
border:solid 1px #c3c3c3;
}
#panel
{
padding:50px;
display:none;
}
Currently, the images appear at the bottom right corner of the div border and shift when slideToggle()
is activated. My goal is to have all 4 images aligned inline with the paragraph tag. Any assistance would be appreciated.
EDIT: The jfiddle link for reference: http://jsfiddle.net/4jNp8/
EDIT: Same JSFiddle but with placeholders: http://jsfiddle.net/4jNp8/1/