We always want when we’re creating a column layout we want it to add up to a hundred percent most of the time right so to create denver custom web design three columns the width of each column is going to need to be approximately % but we want a bit of margin between each column and that’s where we make the number a bit smaller.
We add a bit of margin and then we tell the final column to have zero margin so it adds up to a hundred percent so let’s just tweak this a little bit in our new responsive file to get it to be two columns instead of three so we will say div one third no longer a width of let’s go with and a half percent so.
If we refresh we see that a change is taking place but something’s not quite right we need to tell the second div to no longer have any margin so we’ll say div one third second margin zero and now we see that we’ve got the two column layout let’s go ahead and go that extra mile and make this third column full width because this looks a little bit odd there’s.
This empty space so all we need to do there is just say div one third last it targets that third column that used to be the third column let’s go ahead and clear the floats above it we no longer want it to be floated we’ll make it a width of full width with Auto and then we’ll give it a bit of padding on the top.
It’s a bit down from the other two so now we can see that @twitter initially on a large screen we have three columns we get down to a certain size now two columns makes more sense and instead of having empty space will make the final column fill up all of the available space now if you’re following along or if you’re going to pause this video.
After the video write your own code one thing. I want to point out very quickly is in order to get your images to be flexible themselves you need a little bit of code so I’m targeting all images and then I’m saying give them a max width of a hundred percent.