Skip to content

Instantly share code, notes, and snippets.

@wilornel
Created May 5, 2012 00:46
Show Gist options
  • Select an option

  • Save wilornel/2598824 to your computer and use it in GitHub Desktop.

Select an option

Save wilornel/2598824 to your computer and use it in GitHub Desktop.
<html>
<head>
<style>
#main{
border: 1px solid #000;
width:800px;
margin-left:auto;
margin-right:auto;
}
.long{
width:50px;
border: 1px solid #000;
margin-top:1px;
z-index:3;
}
.containers{
float: right;
margin-right:1px;
margin-top:1px;
z-index:3;
}
.post{
background: orange;
border: 1px solid #000;
margin:3px;
width:500px;
}
.lesage1{
background: rgb(0,150,255);
width:500px;
}
.levesque1{
background: rgb(255,0,0);
}
#fourrure{
background: rgb(200,100,100);
}
.more{
display: none;
}
</style>
<script src='jquery.js'></script>
<script>
$(document).ready(function(){
$('.long').click(function(){
var width = $(this).css('width');
$('.long').animate({'width':'50px'});
if(width == '50px'){
$(this).animate({'width':'500px'}, 'slow');
this['fat'] == 1;
}else{
$(this).animate({'width':'50px'}, 'slow');
this['fat'] == 0;
}
});
});
</script>
</head>
<body>
<div id ='main'>
<div class='containers' id='pouvoirs'>
<div class='long lesage1'>
1962-1966:
Jean
Lesage
</div>
<div class='long lesage1'>
1966-1970: Jean Lesage
</div>
</div>
<div class='post'>
1608: Cartier inaugure l'Abitation de Quebec
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment