Hi all I am trying to resolve an issue when I select an expanding div, the first div selection pushes the second div element to the right. is there css fix or other to get this not to push div element to the right
Thanks in advance
D
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Papermashup.com | Show Hide Plugin</title>
<link href="../style.css" rel="stylesheet" type="text/css" />
<style>
body{
font-family:Verdana, Geneva, sans-serif;
font-size:14px;}
#display { float:left;}
#slidingDiv, #slidingDiv_2{ height:100px;padding:20px;margin-top:10px;display:none;}
</style>
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
<script src="showHide.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.show_hide').showHide({
speed: 300, // speed you want the toggle to happen
//easing: '', // the animation effect you want. Remove this line if you dont want an effect and if you haven't included jQuery UI
changeText: 0, // if you dont want the button text to change, set this to 0
//showText: 'View',// the button text to show when a div is closed
//hideText: 'Close' // the button text to show when a div is open
});
});
</script>
<div id="display">
<a href="#" class="show_hide" rel="#slidingDiv"><img src="click.png"></a>
<div id="slidingDiv" >
<p> Fill this space with really interesting content.</p>
</div>
</div>
<div id="display">
<a href="#" class="show_hide" rel="#slidingDiv_2"><img src="click.png"></a>
<div id="slidingDiv_2">
<p>Fill this space with really interesting content.</p>
</div>
</div>
</body>
</html>
`