diff --git a/code/index.css b/code/index.css new file mode 100644 index 0000000..02ba8bb --- /dev/null +++ b/code/index.css @@ -0,0 +1,71 @@ + +.all-container { + display : flex; /* + align-items: baseline; + width : min-content; + flex-direction: row; + flex-wrap: wrap;*/ + +} + +.flex-container { + /* We first create a flex layout context */ + display : flex; + align-items: baseline; + width : min-content; + /* Then we define the flow direction + and if we allow the items to wrap + * Remember this is the same as: + * flex-direction: row; + * flex-wrap: wrap; + */ + + + /* Then we define how is distributed the remaining space */ + + flex-direction: column; + } + /* + + .flex-item { + padding: 5px; + width: 200px; + height: 150px; + margin-top: 10px; + line-height: 150px; + color: white; + font-weight: bold; + font-size: 3em; + text-align: center; + }*/ + + .vitraux { + /* We first create a flex layout context */ + display : flex; + align-items: baseline; + width : min-content; + /* Then we define the flow direction + and if we allow the items to wrap + * Remember this is the same as: + * flex-direction: row; + * flex-wrap: wrap; + */ + + + /* Then we define how is distributed the remaining space */ + + flex-direction: column; + } + /* + .vitrail { + background: tomato; + padding: 5px; + width: 200px; + height: 150px; + margin-top: 10px; + line-height: 150px; + color: white; + font-weight: bold; + font-size: 3em; + text-align: center; + }*/ \ No newline at end of file diff --git a/code/index.html b/code/index.html index 06cbec9..52ef980 100644 --- a/code/index.html +++ b/code/index.html @@ -1,368 +1,445 @@ + + - - - - - - - - - - - - - - + - - toutDessiner(tab1,canvas1,ctx1); - toutDessiner(tab2,canvas2,ctx2); - toutDessiner(tab3,canvas3,ctx3); - toutDessiner(tab4,canvas4,ctx4); - - - - +