css grid of squares with flexbox

edit 2022 Nowdays, aspect-ratio becomes widely avalaible. set a width or an height then for a square use the 1/1 ratio : aspect-ratio: 1 / 1 ; ressources: tutorial https://css-tricks.com/almanac/properties/a/aspect-ratio/ description https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio browsers that understand it https://caniuse.com/?search=aspect-ratio snippets becomes (note: no width nor height set, since we are in flex layout and flex-grow is set … Read more

Swap DIV position with CSS only

Someone linked me this: What is the best way to move an element that’s on the top to the bottom in Responsive design. The solution in that worked perfectly. Though it doesn’t support old IE, that doesn’t matter for me, since I’m using responsive design for mobile. And it works for most mobile browsers. Basically, … Read more

Fancy Media Queries with some LESS Magic

Here is what I’ve done in my projects: @desktop: ~”only screen and (min-width: 960px) and (max-width: 1199px)”; @tablet: ~”only screen and (min-width: 720px) and (max-width: 959px)”; @media @desktop { footer { width: 940px; } } @media @tablet { footer { width: 768px; } } This allows you to only define your media queries once and … Read more

Twitter bootstrap hide element on small devices

On small device : 4 columns x 3 (= 12) ==> col-sm-3 On extra small : 3 columns x 4 (= 12) ==> col-xs-4 <footer class=”row”> <nav class=”col-xs-4 col-sm-3″> <ul class=”list-unstyled”> <li>Text 1</li> <li>Text 2</li> <li>Text 3</li> </ul> </nav> <nav class=”col-xs-4 col-sm-3″> <ul class=”list-unstyled”> <li>Text 4</li> <li>Text 5</li> <li>Text 6</li> </ul> </nav> <nav class=”col-xs-4 col-sm-3″> … Read more

Why does Twitter Bootstrap Use Pixels for Font Size?

Well it seems that they are hiding behind the browser zoom excuse. Really sad to see such a heavily used and influential framework completely ignore accessibility issues and a fundamental cornerstone of responsive design. They are in a position of great responsibility and unfortunately seem to have no intention of acting accordingly. [Update] So today … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)