

With that style applied, our h1 heading will look like this: Then we target only the h1 element inside the navbar and specify the following styles: /* Sets font size, reduces font-weight, adds margin and line height */ Now, our content will not exceed the maximum width specified.Īfter that, we need to set the background color of our navbar section to purple: /* Sets background color, height and padding*/ Next, we need to define the styling for our container class: /* Centers it, sets a maximum width and makes sure elements can flow past it*/ With the default styles applied, our page will now look like this: * All images must not be larger than parent container */ * Make all link text black with no text decoration */ What we want to do first is set the base styling for our web page with the following code: /* Override default style and set padding and margin to nothing */ We now have to apply some CSS rules to style our nav section the way we want.
RESPONSIVE GRIDS HOW TO
Inside the div we have an h1 with class of logo and two navigation links li>a with the outline classes, respectively.Īt this point, our page will look all plain and bare like this: No CSS yet How to Apply CSS Styling to our Page

flex: we will use this utility class to display children elements in a horizontally aligned manner (side-by-side) using CSS Flexbox. container: we will use this utility class in every section to make sure that the inner elements do not exceed a certain width which we'll specify in CSS

On the div wrapping the elements inside this section (the navbar), we register the container and flex class. The Navigation Bar section is going to be comprised of our site's name as well as two navigation links: Log in and check courses. If you created an HTML biolerplate by yourself, copy the following link tag and paste it into your head tag: This will allow you use Font Awesome icons in your project Let's Get Startedįirst, make sure that your stylesheet file (.css) is properly linked to your HTML page.
RESPONSIVE GRIDS CODE
If not, you can copy this boilerplate code and paste it into your code editor: Īs you can see in one of the shots, we will be using some font icons to give better swap to our service section.įor this, we will be using font awesome from the CDN. Responsive grids are a method to systematically align your R Rabia Mustapha grids Web Design Tools Design Ios Web Graphic Design Web Design Tutorials Tool Design Report Design Website Design Layout Blog Layout Wordpress Website Design Designing web layouts is a very profitable job nowadays with so many marketplaces available. If you have emmet installed in your IDE, you can generate an HTML boilerplate for your project by typing ! and clicking the enter or tab key on your keyboard. And finally, we'll learn how to make the page responsive so that it works on all screen sizes.Įach of these sections will teach you some new CSS and web development skills and tools. We'll also cover many other CSS concepts. This tutorial will teach you how to use and implement CSS Flexbox and CSS Grid alignment. In this tutorial, we are going to build a simple landing page for an online education platform called Skilllz.
