javascript - How to position boxes like a posterboard with CSS? -


This posterboard layout looks like trying to create a page in the box:

right now , All have fixed width and resizable heights (depending on the length of the content / images) in my box. However, I can not take them upwards in the form of layouts in the stack. Any suggestions?

It's by now I have: I was hoping that the elements with the maximum height will be pushed to the right in the next column, but they only keep the lid from the bottom

Html:

  & lt ;; Doctype html & gt; & Lt; Body & gt; & Lt; Div class = "container" & gt; & Lt; Div class = "panel" & gt; Overall accusator Droramac ludentium, total rim aparium, and apc api apo & lt; / Div & gt; & Lt; Div class = "panel" & gt; Voltaptium expensitium Dolaremic londantium, Lymph rim epiarium, AAK i & lt; / Div & gt; & Lt; Div class = "panel" & gt; Fully Dualrelic Lyudentium, Overall Remors, and Imperology Dollymalum Laundry, Kulam & lt; / Div & gt; & Lt; / Div & gt; & Lt; / Body & gt;  

CSS:

 . Container {width: 500px; Max-height: 300px; }. Panel {display: block; Status: Relative; Width: 100px; Margin: 10px 5px 10px 5px; Border-style: solid;  

Responsible, CSS is the only solution by using the CSS column property

html

  & lt; Div class = "container" & gt; & Lt; Div class = "panel" & gt; Volvotom Acidicatrium Dollaramac Ludentium, Kulam Rim EpiRium, and APC ABI Eno & lt; / Div & gt; & Lt; Div class = "panel" & gt; Volpathamem Abishantium Dollarmech Laundamentium, Kulam Rim Aparium, AAK IT & lt; / Div & gt; & Lt; Div class = "panel" & gt; Voltatium charger Doloram ludentium, Kulam ram aperium, and APC ABO Delloremic ludentium, Kulam & lt; / Div & gt; & Lt; Div class = "panel" & gt; Charger Doloram Ludentiam voltage, total rim Apriam, and Imperial processing Doloram Ludentiam total Voltaptiam Android Doloramic Fedentiam, total rim Arirm, and Apisio Dolremak Ludentiam, Cullum & lt; / Div & gt; & Lt; Div class = "panel" & gt; Voltatium charger Doloram ludentium, Kulam ram aperium, and APC ABO Delloremic ludentium, Kulam & lt; / Div & gt; & Lt; Div class = "panel" & gt; & Gt; Accused Prosecutor Doloram Lyudentium, Kulam Rim EpiRium, and APC Apo Apo & lt; / Div & gt; & Lt; Div class = "panel" & gt; Volpathamem Abishantium Dollarmech Laundamentium, Kulam Rim Aparium, AAK IT & lt; / Div & gt; & Lt; / Div & gt;  

css

  body {font: 1em / 1.67 'open sessions', aerial, sense-serif; Margin: 0; Background: # E9799; }. Container {margin: 1.5 AM; Padding: 0; -Moz-column-inter: 1.5 AM; Webkit-column-difference: 1.5 AM; Col.-Gap: 1.5 AM; Font-size: .85em; }. Panel (display: inline-block; background: #fff; padding: 1 AM; margin: 0 0 AM 1.5; width: 100%; box-sizing: border-box; -mojh box-shaped border-box; -vebkit -boks size: border-box; box-shadow: 2px 2px 4px 0 #ccc;} @ media only screen and (min-width: 400px) {. container {-moj-column-count: 2; -webkit-column -count 2, column-count: 2;}} @ media only screen and (min-width: 700px) {. container {-moj-column-count: 3; -webkit-column-count: 3; column-count : 3;}} @ Media's Evl screen and (min-width: 900 pics) {. Container {-moj-column-count: 4; -vebkit-column-count: 4, column-count: 4;}} @ media only screen and (min-width 1100 pics) {. container {-moj-column-count: 5; -webkit-column-count: 5; column-count: 5;}}  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -