Build this Portfolio-Gallery using CSS Grid | Complete Web Development Course #27

Coding Shuttle by Anuj Bhaiya
29 Nov 202219:30

Summary

TLDRIn this tutorial, the instructor walks you through creating an advanced grid layout with CSS, focusing on building a dynamic portfolio section with images. The video covers setting up the grid, applying styling with Flexbox, and adding background images from Unsplash. Additionally, the tutorial delves into creating a unique transition effect where the background color shifts from dark to light, simulating a day-to-night effect when hovering over images. The video concludes with a teaser for the next lesson on making the layout responsive using media queries.

Takeaways

  • 🌟 The video introduces a transition from a basic grid layout to a more advanced one, using CSS Grid to create a dynamic 'rain savera' effect.
  • πŸ“š The presenter encourages viewers to bookmark the playlist and subscribe to the channel for daily video updates.
  • 🎨 The layout consists of a big container with a flex box inside, divided into a content section on the left and a gallery on the right.
  • πŸ“ The left section contains text elements such as an h2 heading, a paragraph, and a quote, while the right section features a grid of images.
  • πŸ–ΌοΈ Images for the gallery are sourced from Unsplash, ensuring copyright-free usage, and are set as background images within div elements.
  • 🌈 A Bodoni Moda font is chosen for its elegance, with increased font size for better readability.
  • πŸ“ The container is styled with CSS, including a gradient background, flex properties for layout, and gap settings for spacing.
  • πŸ”² The grid layout is created with defined rows and columns using `grid-template-rows` and `grid-template-columns`, and items are positioned to span multiple rows/columns.
  • ✨ An overlay effect is achieved using `background-blend-mode` to blend the background color with the images for a darker appearance.
  • πŸ‘€ A hover effect is demonstrated, changing the background color and position smoothly with CSS transitions for an interactive experience.
  • πŸ“± The video concludes with a mention of making the layout responsive in a future video, hinting at the use of media queries for adaptability across devices.

Q & A

  • What is the main topic of the video script?

    -The main topic of the video script is creating a grid-based layout with a view transition effect for a website.

  • What is the term used to describe the night-to-day transition animation in the script?

    -The term used to describe the night-to-day transition animation is 'rain savera'.

  • What are the two main components of the container layout described in the script?

    -The two main components of the container layout are the left text part and the gallery part on the right side.

  • How many boxes are there in the gallery section of the layout?

    -There are seven boxes in the gallery section of the layout.

  • What is the source of the images used in the gallery?

    -The images used in the gallery come from Unsplash, a website that provides copyright-free images.

  • What CSS property is used to set the background image for all the boxes in the gallery?

    -The CSS property used to set the background image for all the boxes is 'background-image' with inline CSS.

  • What font family is used in the video script for styling the text?

    -The font family used for styling the text is Bodoni Moda, with both regular and black versions.

  • What is the purpose of the 'flex basis' property used in the script?

    -The 'flex basis' property is used to define the initial size of a flex item, which can be a width in a row direction or a height in a column direction.

  • How does the script handle the layout to make it responsive?

    -The script mentions that grid will try to make the layout responsive, but it also hints that media queries will be used in a future video to handle responsiveness properly.

  • What is the purpose of the 'background-blend-mode' property used in the script?

    -The 'background-blend-mode' property is used to blend the background image with a background color, creating an overlay effect on the images.

  • How does the script describe the hover effect on the gallery boxes?

    -The hover effect changes the background color, background position, and adds a box shadow to the gallery boxes, creating a smooth transition and a pointer cursor to indicate clickable elements.

Outlines

00:00

πŸ“š Introduction to Advanced Grid Layout Techniques

The speaker introduces the concept of transitioning from a basic grid layout to more advanced features, such as creating a 'rain savera' animation that simulates a day-to-night transition. They encourage viewers to subscribe and bookmark their playlist for daily updates. The tutorial begins by examining the layout's structure, which includes a flex box container with content on the left and a gallery on the right. The gallery consists of grid items that vary in row and column spans. The speaker provides a brief overview of the code structure, including the index.html and style.css files, and emphasizes the importance of understanding the basics of grid before proceeding with the tutorial.

05:03

🎨 Customizing the Grid Layout and Typography

The speaker delves into the customization of the grid layout, starting with the container's background and the division into left and right sections. They discuss the use of flex properties such as 'justify content', 'space evenly', and 'align items center' to align the content. The background is set with a linear gradient, and specific widths are assigned to the left text and gallery parts using 'flex basis'. The typography is enhanced with the 'Bodoni Moda' font, and the speaker demonstrates how to apply this font to the body and adjust the font size. They also provide styling tips for the left text section, including font size, color, and text alignment.

10:04

πŸŒ† Implementing Grid Layout for Gallery and Image Effects

The tutorial continues with the transformation of the gallery into a grid layout, defining columns and rows using 'grid template columns' and 'grid auto rows'. The speaker explains how to adjust the gap between grid items and how to set the size and position of background images using 'background size' and 'background position'. They introduce the concept of 'background blend mode' to create an overlay effect on images and discuss various blend modes available in CSS. The speaker also demonstrates how to apply these effects to individual grid items, ensuring that images with different dimensions are displayed correctly within the grid.

15:05

πŸ–±οΈ Adding Interactivity with Hover Effects and Responsive Design

The final paragraph focuses on adding interactivity to the grid layout through hover effects. The speaker explains how to use the ':hover' pseudo selector to change the background color and position of grid items when a user hovers over them. They also discuss the use of the 'transition' property to create smooth transitions between states. Additionally, the tutorial touches on the importance of making the layout responsive, hinting at the use of media queries to adjust the layout for different screen sizes. The speaker concludes by mentioning that responsive design will be covered in more detail in a future video.

Mindmap

Keywords

πŸ’‘Grid Layout

A grid layout is a structure used in web design to organize content in a grid of rows and columns. In the video, the creator uses a grid layout to display images in a gallery, explaining how certain items can span multiple rows or columns. The grid layout is central to the video's tutorial, as it shows how to arrange and style content efficiently using CSS Grid.

πŸ’‘Flexbox

Flexbox is a CSS layout model that allows for responsive design by distributing space along a container's main axis. The video mentions using flexbox to arrange the left-side text and the right-side gallery. It also covers the use of 'flex-basis' to control the width of these elements, which is crucial for achieving the desired layout.

πŸ’‘View Transition

A view transition refers to the smooth visual change from one state or layout to another on a website. The video demonstrates how to create a view transition that changes the background position and color of images when hovered over, giving the effect of 'night turning to day'. This concept is key to enhancing user experience through dynamic design.

πŸ’‘Background Image

A background image is an image used as a backdrop for an element on a web page. In the video, the creator shows how to apply background images to grid items using CSS, sourcing these images from Unsplash. The correct positioning and sizing of background images are also explained to ensure they fit well within the grid.

πŸ’‘CSS Reset

CSS reset is a technique used to remove default styling across different browsers by setting margins, padding, and other properties to zero. The video starts by applying a CSS reset to ensure consistency in how elements are displayed, which is an essential step before adding custom styles.

πŸ’‘Grid Template Columns

Grid template columns are used in CSS Grid to define the number and size of columns in a grid layout. The video explains how to use 'grid-template-columns' to create three equal-width columns in the gallery section. This property is crucial for controlling the structure of the grid.

πŸ’‘Background Blend Mode

Background blend mode is a CSS property that defines how an element's background image and background color blend together. In the video, this property is used to create a dark overlay effect on images, making the text more readable and the overall design more visually appealing.

πŸ’‘Pseudo Selector

A pseudo selector is a keyword added to a selector in CSS to style a specific state of an element. The video introduces the ':hover' pseudo selector, which is used to apply styles when the user hovers over an element. This is demonstrated by changing the background color and position of images in the grid when hovered.

πŸ’‘Utility Class

A utility class is a single-purpose CSS class that can be reused across elements to apply specific styles. The video shows how to create utility classes like 'row2' and 'col2' to easily expand grid items across multiple rows or columns. This approach simplifies the CSS and makes it more maintainable.

πŸ’‘Media Queries

Media queries are a CSS technique used to apply styles based on the device's characteristics, such as screen size. The video mentions that while the current layout is not yet responsive, media queries will be used in a future lesson to ensure the design looks good on all devices, including phones.

Highlights

Introduction to creating a grid layout with a transition animation that simulates the change from night to day.

Explanation of how to make a layout using grid and view transition for a website.

Encouragement to bookmark the playlist and subscribe to the channel for daily video updates.

Overview of the layout's components, including a flex box container with a text part and a gallery.

Description of the grid items in the gallery and the importance of understanding the grid concept.

Demonstration of creating a folder for the grid portfolio with index.html and style.css files.

Building a container layout with a green background and text content on the left.

Styling the text content with classes and using a quote for additional effect.

Creating a gallery with seven boxes and styling them with images from Unsplash.

Use of inline CSS to set background images for the gallery boxes.

CSS reset settings for margin, padding, and box sizing to border box.

Introduction of the Bodoni Moda font for a more elegant look and setting it in the body.

Styling the container with flex properties for layout and a gradient background.

Setting the flex basis for the left text and gallery parts to control their widths.

Styling the gallery as a grid with defined columns, rows, and gaps.

Use of background size and position properties to handle image display within grid boxes.

Creating utility classes for easy grid column and row expansion in elements.

Adding hover effects using pseudo-selectors and transition properties for smooth changes.

Discussion on making the layout responsive with media queries in future lessons.

Transcripts

play00:00

First it was a normal grid layout

play00:02

After that, I thought to move one step forward

play00:04

I will taught you some more cool things with grid

play00:07

This is a transition animation

play00:09

Here you can see that, night turns to day

play00:13

We will call that "rain savera"

play00:18

Today, we will see that how you can make such layout with the help of grid

play00:21

And along with that, how you can make a view transition in your website

play00:24

Before starting the video I want to tell you that, this our playlist

play00:27

Our daily videos use to come here

play00:29

You have to go and bookmark this

play00:31

And along with that, you have to subscribe our channel

play00:33

So that, you will not miss any important video

play00:36

First, we will check that what we have in this layout

play00:39

Here we have a big container

play00:42

We will make this container, a flex box, where in the left side we will have some content

play00:47

In the right side, we will have a gallery

play00:49

In this gallery, we have a lot of grid items

play00:53

We have already learnt Grid video

play00:55

If you don't know what is grid, you can now see that video here

play00:58

you must watch that video

play01:00

After watching that, see this video

play01:01

So that you will understand grid, well

play01:03

Here some items have two rows, some have two columns

play01:08

Basically it is expanded in various rows and columns

play01:11

We will come into our codes and will check how it is made

play01:14

For that I made a folder, this is our grid portfolio

play01:18

Within that we have index.html and style.css

play01:20

I have connected both of them also, like that

play01:22

After that we will start. At first we will build a container layout

play01:25

Which will contain all these things

play01:28

These is the green big background, which you have seen

play01:31

After that we will have two things inside this

play01:34

First we will have a text part at left and a gallery part

play01:42

First we will make the left text

play01:44

Inside that there's not much inside, only we have one h2.

play01:47

There are some texts written here

play01:49

my portfolio and with that, there is a paragraph,

play01:53

and this is a quote which, I don't know from where I have taken but I have not written by myself

play01:58

With that I will give some classes

play02:00

Like, for this I will give heading

play02:04

This I will give subheading

play02:07

For styling this

play02:08

After that I will make a gallery, where there will be so many boxes inside that

play02:12

So I will make 7 boxes here

play02:14

Because if you will count here you will find seven boxes, 1, 2, 3, 4, 5, 6 and 7

play02:19

So, there are 7 boxes

play02:21

For that i have made seven boxes

play02:23

Along with that I am giving some styling also to that

play02:26

with that i can post some images

play02:28

These all are my divs

play02:30

I am going to put these images inside these on the background

play02:32

So this will be our background image

play02:34

So for that, I will not give ID to separate divs to set the background image property

play02:40

I will select all of them together and with the help of inline CSA I will put the background image property here

play02:49

Background image or

play02:50

I have to just insert images within the url

play02:53

These images will come from unsplash

play02:55

You can use any images

play02:56

I will use images from unsplash only

play02:58

Because this is a cool website, where I get all images which are copyright free

play03:04

You can select any images from here, like, I will choose nature

play03:09

I can see some pictures of nature

play03:11

I have to select them and then right click and copy image address like that

play03:16

And then just paste the address here

play03:18

If I paste it like that, images will get inserted in all the boxes here

play03:23

I will do one thing that, I will insert images now in all the boxes

play03:26

So I have now inserted images in all the boxes here

play03:29

Where my divs are getting closed like here it is closing

play03:34

So I have written text also within the divs of what we are seeing

play03:36

Like this is the image of waterfalls , this is the image of hills and so on

play03:40

Now, If I want to see, how it is looking, I will open live server

play03:44

at this moment, it is looking like that

play03:46

We have lot of images which are appearing strangely

play03:51

So we have give style to them

play03:53

Within html we will move to the CSS

play03:56

At first we will insert resets, Margin-0, padding-0 and we will make the box sizing to border box

play04:03

This is a standard stuff

play04:05

After that, we will get a font, for this we will use a different font called, Bodoni Moda

play04:11

Which looks like this, the font is really looking elegant

play04:15

We will choose the regular version and the black version of it.

play04:22

We will check that, this is our font

play04:25

I have to input that and copy and will paste it at the top, like that

play04:31

With that, I will set that font in the body also

play04:34

Within font family I have to copy paste this

play04:39

Bodoni Moda and then serif, like that

play04:43

With that, I will increase the font size also to 1.2 ram

play04:48

Usually the font size is 1 ram

play04:50

I have made it 1.2 ram, so I have increased a bit big than the usual font

play04:55

So now if you will see the fonts, all had changed

play04:59

With that I will give styling to the container also

play05:02

Container and within that, I will set the "min height" as 100 view height

play05:10

It's text will display like that

play05:13

Then with that I will mention justify content, space evenly

play05:18

Align items center

play05:21

Now I will check how it is looking

play05:23

So, I have this part in my left side and this part in my right side. Alright?

play05:28

After that I have to mention gap of 20 pixel

play05:33

Background I will set with that cool green color which you have seen in the beginning

play05:39

This is a gradient, this is a linear gradient alright?

play05:42

I will insert that gradient by using linear gradient

play05:46

This is a function inside which I will pass two properties

play05:48

First I will mention the direction to right side then colors

play05:54

Like that, our background color got set here

play05:59

Now, if you see that, we have this color in the left side and this color is in the right

play06:04

And it is going to right

play06:05

After that, I will give some width to this left side element which is left text

play06:12

Along with that, I will give some width to this gallery part also

play06:15

For that I will come here and set the basics, first I will write left part as left text

play06:22

I will set it to flex basis to 30%

play06:27

If you are not understanding what this flex basis will do

play06:29

Then you have to check my flex video where I have explained about the flex basis

play06:33

Here I can tell you that, with the help of flex basis you can select a width

play06:38

For the moment as our direction of flex is out row

play06:41

If the direction of flex is become column then with the help of flex basis you can select a height

play06:45

So, I have informed that the width of my left text should be 30%

play06:49

So you can see that, the width of my left text has become 30%

play06:51

30% of the width of the entire container is given to the left text

play06:55

Now, I want to set the width of the gallery part also like that

play07:00

Dot gallery and I will set the flex basis to 50%, like that

play07:09

Now, here the width changed and it is taking 50% of the container

play07:13

Now, I will give styling to the left portion

play07:16

At this moment, it is looking black, let's give it a bit styling

play07:20

For that I am copy pasting some codes

play07:22

I have not chosen anything dangerous,

play07:23

First I chose the heading and whose font size I took 3 rem, color white and text align center

play07:29

Similarly, I have changed the color of the subheading to off-white

play07:33

It is getting the margin from the top and I chose text align center for this also

play07:36

So, it will look like this here

play07:37

Now we will move to gallery

play07:40

Our gallery will become a grid

play07:43

I will take this gallery to down

play07:45

This gallery will become a grid

play07:47

For that I will mention display grid

play07:51

Grid you already know

play07:53

You can see that, it will not make any difference if by default you mention grid

play07:58

Now I will provide some gap here

play08:02

Let's give a gap of 8 pixel

play08:05

For that, a horizontal gap will come within all items like this

play08:08

Now, I will check how many rows and columns we have here

play08:11

If you count it, there are 3 columns

play08:14

First is this second is this and third is this one

play08:17

With that we have 4 rows, 1 row, 2 row, 3 row and 4 row

play08:21

Now we will make these columns and rows here

play08:24

We will define them with the help of Grid template rows and grid template columns

play08:28

First we will define grid template columns

play08:31

We have 3 columns

play08:33

I will give 1 fr to three of them, so that it will be evenly distributed by 1 fraction

play08:38

With that I will define grid auto rows also

play08:41

grid auto rows, It means give a height to all the rows that are being made here.

play08:48

How much height we will give? I am giving a height of 120 pixel

play08:53

So if we give a fix height here, they will get a fix height here

play08:59

Let's make this first

play09:01

Our text color is white

play09:03

At the moment, our images are showing in full

play09:09

Some portion is getting cut because we have not defined the position property of the background image

play09:14

and also not defined the size property of the background image

play09:17

So, for that we will come to our box

play09:20

I will set the property of all the boxes

play09:22

First we will choose the background then size and cover

play09:27

When we defined the cover, then we are seeing complete images like that

play09:31

With that we can set their position also

play09:34

At the moment our images are getting cut also

play09:37

If you have any image that does not have this dimension

play09:41

whatever expected ratio we have given here, that image will overflow and some portion will get cut

play09:46

So, we can set the portion, which we want to show at the beginning

play09:49

For that, we can use background position

play09:54

And I can mention here that, which position I want to show here

play09:57

If you want, you can show the top position

play10:00

Whatever images we have, we can see the top portion of all the images like that

play10:03

So, here there is an ocean, if you see the third image

play10:06

We can only see the sun portion of that ocean picture

play10:08

Then I will set the position as bottom

play10:11

Then you will be able to see the ocean portion here in this image

play10:13

And here you will be able to see the bottom part of the waterfalls

play10:16

You will see the bottom part of the beach

play10:18

First I will start with the background position as top

play10:23

And Transitioning we'll bring it to the center

play10:26

Now it is looking like this

play10:27

With that I will set my color also, color I will choose white

play10:32

By that, our text which is showing here, has become white

play10:37

If you want the text to be in the center, we have to make this div, a flex

play10:42

By making flex, we can easily move this div to the center

play10:47

Within that div whichever text was there, display flex and justify content - center

play10:54

and align items center

play10:56

By this, our text will come in the center like that

play10:58

I want an overlay on this image

play11:02

Basically, it should look a bit dark black

play11:05

To get a black overlay you have two options

play11:08

Either you make a div and get it over the box

play11:12

After that, set the height and width of that div according to that box

play11:16

you can then set the transparency

play11:17

But since we are working with the background

play11:20

I don't want to put any graveyard here

play11:24

I want an overlay should come inside this whole picture evenly

play11:28

Because, I want to set the overlay on the whole image

play11:31

We can add background blend mode

play11:35

So here we can set a blend mode

play11:37

How does blend mode work? for that basically you need two backgrounds

play11:42

One background we already set here, you can see that, all the boxes have one background image

play11:47

With that I will set another background, which is background - color

play11:54

At the moment, I will set the background color, let's say #222

play11:58

Now, you will not be able to see any difference

play12:00

Because the image is above and below that we have this background color

play12:04

What I will do now? I will blend this image and the background color together

play12:09

There are many ways to blend

play12:11

From here you can say background, Blend mode

play12:15

Here we have many ways to do that, for example we can apply multiplication here

play12:18

Our background color 222 and the images above that, will multiply within them and look like this

play12:23

It will look like this, It has already become dark as you can see

play12:27

if you want to understand the other values of this, then we will come here inside the inspect rule

play12:33

We will select any of the box here

play12:37

And here we can change the property of the blend mode to check what other values are there

play12:42

We have multiply property but we also have another property that is color

play12:45

Like how you can see the images

play12:48

color burn property, color dodge property then darken. difference, exclusion, hard light and so on

play12:57

So you can use any of the blend mode whichever you like

play13:01

I will use this hard light here like that

play13:05

I will set, hard light here

play13:08

I have set the hard light in background blend mode

play13:11

Now it will look like that

play13:14

Now our images are looking fine

play13:16

But I have to insert them in the grid like our actually grid was made there

play13:19

If we have to show like this

play13:21

For that we have to check the first box where our water falls is present

play13:25

It is expanded within two rows

play13:27

Similarly this box with hills expanded in two columns

play13:30

What we can do, we can back to our code

play13:33

And I will select a box, For example, for this div I can give an ID

play13:38

or we can give a class here

play13:40

But suppose you gave an ID and selected box 1

play13:46

And I will come here and take the box 1

play13:51

And I will give it Grid columns and then span 2

play13:58

Grid column basically is, grid column start and grid column end, right?

play14:02

So, it will start from span 2 and will end at auto

play14:07

If you don't want to write auto, that means it will end to auto only

play14:10

Basically, it will take the place of two columns

play14:12

If you will see this here, it is taking the place of two columns like this

play14:17

If you want to give the place of two rows to it

play14:19

We will write Grid row, because we want to give place of two rows to box 1

play14:23

You can see that, this waterfalls have taken the place of two rows

play14:26

Same thing we can do, we can access all the other boxes together

play14:29

and change the grid row and grid column property of all

play14:31

But instead of this, I will use an excellent property called, utility class

play14:36

Basically, we will make an utility class, row 2

play14:41

Whichever element will get this class, the grid row of that element will expand in 2 rows like that

play14:49

I will make another utility class called, col2

play14:53

Whichever element will get this class, the column of that element will expand in 2 columns like that

play14:58

So, what I will do, I will give, col 2 class to box 1

play15:04

Now we can see that, our box 1 has expanded in 2 columns

play15:08

If I will give it row 2 then it will expand in 2 rows

play15:14

I will set like that, for example, I will give this hills, col 2 class

play15:21

Now, we will see that the hill is expanded in two columns

play15:26

Similarity, We will do this to all other elements

play15:29

We will see what else we have, we have ocean, with that I am not doing anything

play15:33

We will expand rain in two rows

play15:35

and will expand mountain in two columns

play15:38

which one is rain, this one, I will mention row 2 here

play15:44

the mountain must be the one, below it, which we will expand in 2 columns, so, col 2, like that

play15:52

Here we can see that, we don't have to repeat the code of box 1 and box2

play15:57

And they are getting classes on their own

play16:01

I will give col 2 class to the beach

play16:04

This last one is for beach, so, I will give it col 2 class

play16:08

So it will expand in two columns

play16:09

Like that, our layout is complete here

play16:12

So, with the help of grid layout it was made very easily

play16:15

Now we will see the hover effect

play16:17

To create the hover effect we will use a pseudo selector, which is called hover

play16:22

We have not learnt this yet

play16:24

In the coming class we will study this in CSS

play16:26

I should have taught you earlier

play16:29

If you just wanted to learn the grid, you can stop here in this video.

play16:32

But, if you want to learn more that, how the hover effect is happening

play16:35

For that, I will use here the box and hover effect with that

play16:39

This is basically a pseudo selector, with the help of which

play16:41

you can select the hover state of this box and give styling in a different way

play16:47

I will change the background color of this

play16:51

When you will hover, I will change the background color from 222 to 999 like that

play16:57

You will see, when I will hover, the color will change to white, like that

play17:03

So their hover state is changing like this

play17:05

If you want a smooth transition within this background changes

play17:10

For that we can use a transition property

play17:13

We will study about it later but just understand it now

play17:17

Transition property, I will set as all then 1 second and ease in out

play17:23

By this we are saying that, all property which are changing into hover state

play17:26

Give transition to all of them, and the transition should happen within 1 second

play17:29

The curve, which is present in the transition, basically in which style the transition should come

play17:35

We call it animation curve

play17:37

That should be ease in out

play17:38

This we will study within transition

play17:40

But, if you will see this now

play17:42

While hovering, It will change it's state smoothly within 1 second like that

play17:48

With that, I want the background position will change to center from top

play17:57

So, we will change the background position from top to center like that

play18:00

So, when we will hover, our background position will change from top to center

play18:04

And because I am changing the background color also with that

play18:08

This kind of effect is coming, like there is night

play18:10

and as soon as you hover, it is becoming day

play18:15

This is a cool effect

play18:17

Along with that, I have given some box shadow also

play18:19

Let's put a box shadow here, box shadow, which is zero from horizontal and zero from vertical

play18:27

And then 4 pixel blur and color will be white

play18:32

So, when you will hover on any one of them, a shadow will come behind that like this

play18:37

With the help of which, you will be able to see a different effect here

play18:40

Other than this, we can do one more thing here, we can change the cursor to pointer

play18:44

What will happen by this? When you will hover your mouse on the image

play18:47

Your mouse will change into pointer

play18:51

which shows that we can click on that

play18:53

Also separately, you can handle your clicks on it

play18:56

Our layout is ready here

play18:58

But at the moment, it is not responsive

play19:00

Grid will try it's level best to make it responsive

play19:03

But you will see, when we will squeeze it

play19:07

then left side text and right side images will get too squeezed

play19:11

Column will become narrow

play19:13

Yes, this is the usual behavior of grid

play19:16

But we will learn to make it responsive by using media queries

play19:19

Now it is looking like this, we can change it to something like this

play19:22

So that it looks elegant on the phone too, but this we will learn in our next video with media queries.

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
Grid LayoutCSS TechniquesWeb DesignTransition EffectsFlexbox BasicsResponsive WebImage GalleryPortfolio ShowcaseMedia QueriesCSS Animation