Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <link rel="stylesheet" href="styletest.css" />
- </head>
- <body>
- <div style="width:700px;overflow:auto">
- <div class="anio">
- <div class = "semestre">
- <div class="floater"></div>
- <div class="floater"></div>
- <div class="floater"></div>
- <div class="floater"></div>
- <div class="floater"></div>
- <div class="floater"></div>
- <div class="floater"></div>
- </div>
- </div>
- </div>
- </body>
- </html>
- div.floater {
- margin: 4px;
- width: 110px;
- height: 82px;
- border: 1px solid #ccc;
- display: inline-block; /*this to make the floaters go horizontal*/
- }
- div.semestre{
- white-space: nowrap; /* this avoid the floater overflowing under the parent div*/
- margin-top: 5px;
- margin: 2px;
- height: 90px;
- border: 1px solid #ccc;
- min-width:98%;
- }
- div.anio{
- margin : 2px;
- border: 1px solid #ccc;
- min-width:98%;
- }
- div.floater {
- vertical-align:top;
- margin: 4px;
- min-width:110px;
- width: auto;
- height: 82px;
- border: 1px solid #ccc;
- display: inline-block; /*this to make the floaters go horizontal*/
- }
Add Comment
Please, Sign In to add comment