In this post, I am going to explain how to use SASS mixin for responsive design which is very powerful way. In CSS, there is a media query you can use to present a different layout for different screen size. However, it would be very tedious to write media query break points in every CSS component you write. What if screen size changes for a phone or tablet? You probably do not want to go through everything to fix it. There needs to be a better way to handle different screen size flexibly and let’s take a look at each READ MORE
Tag: sass
CSS – Build Animating Nav Button
Today, we are going to take a look at how to build animating nav button using css properties.Please note that I have learned this from the udemy course by Jonas Schmedtmann. Example As soon as you click the button, you will see there is a cool animation making the button X. This is built by pure CSS properties which we will take a look at it soon. HTML Code checkbox input type is used here to make toggle easier. Please note that the checkbox input is hidden and the navigation__icon class is used to style like a button. CSS Code READ MORE
CSS SASS float grid explained
There is a couple of ways to implement CSS grid. Although float grid is not the most recommended method I still wanted to do that for academic purpose. In this example, I am going to implement a CSS grid like the image below. There will be 6 rows total and each row will have its own columns. HTML Code Here is the HTML code showing how each row/columns are respresented. There will be 6 css classes to represent each column.1. col-1-of-2: column size 1 out of 2 (50%)2. col-1-of-3: column size 1 out of 3 (33%)3. col-1-of-4: column size 1 READ MORE