Websnare Which Is A Largest Company And Store Good Gadgets

We’ll begin with a visual demonstration so in front of you is a very simple web page Websnare it includes a header a bit of content and a footer so what is responsive web design well let’s see it in action if I start to make my browser window smaller.

We can see that the columns begin to shrink a bit but the layout isn’t changing it’s still three columns here and two columns here if I make my browser window a bit smaller we see that now this top section is only two columns and that if I go even smaller it’s now single column it’s only one column throughout the entire page and this is a layout that is actually very well suited to smartphones and this should look familiar.

Websnare
Websnare

This is a strategy that a lot of websites use if you view them on a smartphone so what is responsive web design it’s simply responding to the size of the browser window or the device with our code hence the name responsive now the goal of responsive web design is to be able to create one website.

That looks great both on large desktop monitors and small smartphones and everywhere in between it’s this notion that we can use responsive code to adapt and cater to the user’s device size now I think one of the best ways to fully understand responsive web design is to look at a layout that’s not responsive and try to make it responsive so behind the scenes.

Websnare
Websnare

I actually just went ahead and removed all of the responsive code from this layout and I hit the refresh button so now #instagram if I make the window smaller nothing changes it stays three columns no matter how small the window gets so this is emulating what a smartphone might look like and this is simply unacceptable these columns are too small.

This needs to be single column and this is what it would look like on a tablet about and that doesn’t look good either so the remainder of this video is going to be recreating the responsive layout that you saw in the beginning of the video and you are going to learn all of the code necessary to send conditional CSS to the browser at different times depending on its size.

Comments are closed, but trackbacks and pingbacks are open.