Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
- <script type="text/javascript">
- var x = $( "div[id^='post_']" );
- var i;
- if(x.length > 1){
- for (i = 0; i < x.length; i++) {
- if(i%2 != 0)
- x[i].className = "blog2";
- else
- x[i].className = "blog1";
- }
- $( "#module_body_35209140 > td > div" ).last().addClass( "bloglapozo" );
- }
- </script>
- <style type="text/css">
- .blog1 {
- float: left;
- width: 47%;
- }
- .blog2 {
- float: right;
- width: 47%;
- }
- .bloglapozo{
- clear: both;
- width: 40%;
- margin: auto !important;
- text-align: center;
- }
- .bloglapozo div{
- float: none;
- }
- .bloglapozo > div >div {
- padding-top: 8px;
- margin: 0px !important;
- }
- </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement