🚨 Heads up! This course is no longer supported. We recommend checking out our Webflow Essentials course.

How to create a responsive image grid in Dreamweaver.

Course contents

Questions

0
You are not following this thread

Course info

38 lessons / 4 hours

Overview

Hi there, my name is Dan and together we’re going to build a portfolio website using Adobe Dreamweaver.

We’ll use Dreamweaver's handy templating tools to make updates to our site super easy. We’ll create our very own mobile 'burger menu' from scratch learning some basic Javascript & jQuery.

I am an Adobe Certified Instructor and better yet I work closely with Adobe themselves to develop their own online help videos. I am also a Dreamweaver speaker at the huge Adobe Max conference in Las Vegas 2017. I’m even inside your version of Dreamweaver right now... go on try it... open Dreamweaver > Go to Help > quick tutorial - I’m right there!This course is for beginners. You do not need any previous knowledge in Dreamweaver or web design experience. We will use Dreamweaver ‘split’ view so we can use all the good visual tools as well as doing some simple amends down here in the code as well.

In this series we will take this static design from either Illustrator or Photoshop and together, step by step, build everything in HTML, CSS & Javascript. We will make our own navigation. We will make adjustments so that everything looks great on different mobile devices.We will work with beautiful fonts & colours & even add Google Analytics to our site to get amazing information about exactly who visits your site.
 Now web design can sometimes be tricky so I am here to help - just message me if you get stuck. There are also exercise files so you can follow along. I even save a full copy of the website at the end of every video so that you can check yours again mine if you’re is not working quite right.

Check out this link here www.byolisawesome.com, for the site we build together. Let's get excited about finally being able to build a website like a professional web designer. See you in class.


What are the requirements?

  • You will need a copy of Adobe Dreamweaver CC 2017 or above. A free trial can be downloaded from Adobe.
  • No previous web design skills are needed.
  • No previous Dreamweaver skills are needed.

What am I going to get from this course?

  • 39 lectures 3+ hours of well-structured content!
  • You'll learn to build a responsive portfolio website from scratch.
  • Learn how to take a design from Illustrator & create a professional website.
  • How to use templates in Dreamweaver.
  • Create mobile, tablet & desktop versions of the website.
  • Build our own custom responsive navigation with burger menu.
  • Introduction to Javascript & jQuery.
  • How to publish your website to the internet.
  • Ways to preview your designs straight to your mobile device.
  • How to get the most from your portfolio Images.
  • How to use beautiful web fonts in your designs.
  • You will get the finished files so you never fall behind.
  • Downloadable exercise files & cheat sheet.
  • Forum support from me and the rest of the BYOL crew.
  • All the techniques used by professional website designers.

What is the target audience?

  • YES: This course is for beginners. Aimed at people new to the world of web design. No previous Dreamweaver experience is necessary.
  • NO: This course is NOT suited to people experienced in using HTML & CSS.

Course duration approx 4 hours + your study.
Daniel Walter Scott

Daniel Walter Scott

Founder of Bring Your Own Laptop & Chief Instructor

I discovered the world of design as an art student when I stumbled upon a lab full of green & blue iMac G3’s. My initial curiosity around using the computer to create ‘art’ developed into a full-blown passion, eventually leading me to become a digital designer and founder of Bring Your Own Laptop.

Sharing and teaching are a huge part of who I am. As a certified Adobe instructor, I've had the honor of winning multiple Adobe teaching awards at their annual MAX conference. I see Bring Your Own Laptop as the supportive community I wished for when I was first starting out and intimidated by design. Through teaching, I hope to bring others along for the ride and empower my students to bring their stories, labors of love, and art into the world.

True to my Kiwi roots, I've lived in many places, and currently, I reside in Ireland with my wife and kids.

Downloads & Exercise files

Transcript

Hi there, in this tutorial we're going to take our design from Illustrator here where we've got 3 columns, about 6 images, and this one's only got 2 columns, when it gets down to Tablet, and then down to Mobile, it's got 1 column and we turn a couple of the Images off. So 6, down to only 4 of them. It will end up looking something like this. So here's my Desktop view, down to Tablet and then, down to Mobile, where it is just 4. Plus it will do the cool stretchy thing where they kind of take most use of this space. So let's go and learn how to do that now in Dreamweaver.

We're actually back in Illustrator because I want to explain how the structure works. So what we're going to do is we're going to create these Columns here. And our design has some changing, you can see it has 3 columns, then down to 2, then down to 1. So what I need to do, or need to explain to you is we're going to create a Box, so 1 column here. And we're going to make it 33% of the width. And that's going to stack after each other, and because we've said, "You, Image, or Column, be 33%" the next image is going to fit, the next image is going to fit, but the next one is now in the front. It's only 100% to pick from. So it's going to push down to the next row.

The reason this is useful, is that when you're in Tablet is, you can say, that exact same Image, you now occupy 50% of the space. So, 50%, and then tries to fit in the next one, but there's not enough room so he breaks down. Same when we get down to Mobile. Same Image, but we're going to say "When you're in Mobile, you're 100%, buddy." So, another 100% can't fit, so it fits underneath and they just keep stacking. So essentially, these guys are stacked one on top of each other but we just give it different percentages. And that's how responsive kind of tiling like this works. Let's go and actually do that now in Dreamweaver. I promise, this time, Dreamweaver.

So before we put in those Columns, we need a Container to put around it. At the top here we've got a Container called Hero Content. And remember, that's this Text at the top, that little Tick, the H1. We've kept that in a nice little box. We'll do the same for our Images so that mainly so we can put some Padding in between this and the Hero Content, because if I have Hero Content selected, so click in here, somewhere click on 'Hero Content'. And go to 'Insert', 'HTML', 'Div'. I'm going to put it afterwards. You can see down the bottom here, it's actually banged up right underneath the 'Let's Talk' button, not this Image in the background. Mainly because this is a Background Image, and we said "You be in the background, and nobody can really affect you." That's why we put all that Text on the top. So we need to add some Padding to it, so let's create a Class to do that.

So, 'CSS Designer' we're going to do it Globally, and we're going to say-- we're going to make one up called 'image-grid'. Call it anything you like. And we're going to add some Margin to the top. Nothing's applying, so over here let's apply our Class first. 'image'. There's a bit of Padding there, let's add a bit more till I'm roughly happy with that. There he is there. Now we're going to put in our Columns. So, with our Div, 'image-grid' selected we're going to go 'Insert', we're going to insert another division in space. We're going to say, "Inside of here, I would like a column." I'm going to call it-- it's a little bit hard when you start having this now. I'll put in a Div, and another Div inside of it, and you're like, "Which one am I messing with?" Let's quickly go and add a Class to it.

So what we'll do is, 'CSS Designer' And let's make a Class. We're going to call this one 'col' instead of column. That's just kind of an industry standard. You can call it 'column', and often I do it because it's easier for me to understand. But I want to get used to some of these syntax or commonly used names so that when you start working on somebody else's project or another site you might recognize these. So, this Column here, let's first of all give him a background color. We don't really need the background color, I just want it here so that I can describe what I'm doing. And I'm going to apply it here, say '.col'. Sometimes it's easier, look down in Code view, you can see I've got Div called 'image-grid'. And inside of this, is the beginning and the opening. Inside of that is my 'col'. And there's also this random text, which I'm going to delete from Code view. Don't need you anymore. Slightly more useful.

So we could now go in and click on this one. Can we right click it? Yes. And go to 'Duplicate'. And have six of them, 'Command D' on a Mac is the shortcut or 'Control D' on a PC. So we got six of them now. But before we do that, you can see, they're stacked after each other. Then I undo which is 'Command Z' on a Mac, or 'Control Z' on a PC. What I want to do is add a Class specific for Desktop because if we look at Illustrator you can see, Desktop is 33%. This is 50%, and this is 100%. So we're going to create three Classes and just trigger them at different Media Queries. We can say, "When you're Desktop, be 33%" "50%, 100%'" So create the Desktop version first. So, first up we're going to create a Selector. We're going to call it-- put in 'Styles', 'Global'. And we're going to call this one '.col'. And we're going to use 'lg'. Now 'lg' is just another common way of calling Desktop view. You could call it 'column-desktop' to make it easier for yourself, but you'll see in other sites, people using 'col-lg' instead. So we're going to call ours that, and we're going to say "I'd like you to be a width of percentage, make sure it's percentage, and 33%. Often it will switch back to pixels.

So if you are having trouble, and you are like, "Why is it not working?" it's probably-- by default it really wants to be pixels, you got to kind of force percentages in there. So, that's working, we need to apply it now. So, you, 'col-lg' is only 33%. Awesome, huh! So now we're going to create-- let's just duplicate it. So, let's 'Duplicate'. And they kind of stack on top of each other. They're not stacking next to each other like we need just yet, but that's going to be the kind of basics. We're going to have lots of these in total. Let's go back and fix the first one, I'm going to undo a few times. There it is.

So, what I want to do is get him to Float left. So what I'm going to do is, my re-usable Class, 'float-left'. Now I'm going to Duplicate them, so 'Command D'. Hey, now we're talking. And I got 6, and if you need another one just hit 'Command D' on a Mac, or 'Control D' on a PC, and it keeps duplicating them. Let's have a little look in the browser, so 'Save All'. So I'm into the browser. You can see here, they're nice and responsive as well, because they're 33%. Remember, they don't get bigger than our max-width that we set for our Desktop, but they get nice and squidgy down here. Awesome!

One of the things that I want though from my design is a bit of space in between so we're going to go into Dreamweaver. And what we're going to do is for the 'Column Large', we don't want to do it for 'col'. I'll do it for the Column. So every single column on every single view not just the Large, is going to have a bit of Padding which is true of my design. So what I'm going to do is, 'col' I'm going to say, I like a little bit-- I'm going to use percentages. So I want to put 1% this side, 1% this side. And 1% this side. You'll notice that my design there has gone and broken. It's because this adds to my 33.3% that I added to my box, so 33.3% plus times 3, plus the Padding either side wrecks everything, so what we're going to have to do is jump into my 'lg'.

So 'col-lg', and our 33% is going to now be 31.3%. That's not what it is, jump back to pixels, remember I said it twice to do it. Does it to me to. So now they all fit. So whatever you add in terms of Padding, you're going to have to minus off the width that you're using. And the last thing is, I actually want Padding at the bottom as well. So, Margin, we're going to do it back to our Column. And you go to 'col', and '1%'. Awesome! Need to see mine, the actual spacing is a little different because this is 1%, but it's either side, so I've got 1% plus 1%. It's actually 2% in here. So at the bottom here I'm going to do 2%. Nice! Now it's even.

We'll leave that tutorial here. In the next one we'll add Images to them, and there's a couple of little things we need to do to make them responsive, but the guts of it is in there. Let's get on to the next tutorial.

Written Guide

How do you create a responsive image grid in Dreamweaver?

Create a container div, add reusable column divs inside it, and give those columns percentage widths. Float them left so they sit beside one another, then use media queries to change from three columns on desktop to two on tablet and one on mobile, allowing for padding in your width calculations.

How to Create a Responsive Image Grid in Dreamweaver

Key takeaways

  • Understand how percentage widths turn one set of content into different column layouts.

  • Build a grid container and reusable column classes in Dreamweaver.

  • Fix columns that stack vertically instead of sitting side by side.

  • Add even spacing without accidentally pushing a column onto another row.

  • Separate the grid structure from the image and mobile refinements that come next.


Start with the responsive layout, not the individual images

Our Illustrator design has six images arranged in three columns on desktop. At tablet size, those same six images sit in two columns. On mobile, the layout becomes a single column, with two images hidden so that only four remain.

The useful bit is that we do not need to build three separate sets of content. We need one set of boxes whose widths change to suit the available space.

Multi-artboard portfolio mockup showing side-by-side desktop, tablet, and mobile layouts for a UI & UX designer portfolio.

The same design moves from three columns to two, then to a single column on mobile.

Think of each image as living inside its own column box. Before adding any spacing, the basic width plan looks like this:

  • Desktop: approximately 33.3% per column, giving three columns per row.

  • Tablet: 50% per column, giving two columns per row.

  • Mobile: 100% per column, putting each item on its own row.

There is only 100% of the container width available. Once the next box cannot fit, it drops onto the row underneath. Change the percentage and you change how many boxes fit. Nice and simple.

We will build the desktop column structure first. The tablet and mobile widths describe the responsive plan; adding images, finishing their responsive behaviour and hiding the two mobile items are separate refinements.


1. Create a container for the image grid

Before adding columns, give them a container. The existing page already has a hero content box containing the heading, small graphic and “Let’s Talk” button. The grid needs its own box so we can control the space between those two sections.

  1. Select the existing hero content div in Dreamweaver.

  2. Choose Insert > HTML > Div.

  3. Insert the new div after the hero content, rather than inside it.

  4. In CSS Designer, select the stylesheet and the global rules area.

  5. Create a class called .image-grid and apply it to the new div.

  6. Add a top margin until the separation from the hero content suits the design.

It is worth noticing where Dreamweaver places that new div. It follows the hero content, including the button, rather than waiting for the bottom of the large background picture.

That picture is a background image, not a separate content element that pushes the next div down. This is also why the heading and button can sit over it. Use the grid container’s spacing to position the new section where you want it.

If changing the CSS seems to do nothing, check that you have applied the class to the div. Creating a selector and assigning it to an element are two separate jobs.


2. Add a reusable column inside the container

With the image grid selected, insert another div, this time inside the container. This will be the first column.

Create a global class called .col and apply it to that inner div. The name is simply a common abbreviation for “column”. You could call it .column instead, but getting comfortable with names such as col makes other people’s projects a little easier to recognise.

For now, give .col a temporary background colour. We do not need that colour in the finished design. It just makes the boxes easy to see while we work out their widths and spacing.

Dreamweaver Split view showing HTML code at the bottom and elements highlighted in bright magenta in the Live View canvas above.

A temporary background colour makes the column visible while we build the structure.

Use Code View when nested divs get confusing

Once there is a div inside another div, selecting the correct one can become a bit fiddly. Code View helps you check the structure directly:

  • The outer div has the image-grid class.

  • The inner div has the col class.

  • The column’s opening and closing tags sit inside the container’s tags.

Remove any unwanted placeholder text from Code View as well. It is much easier to understand the layout when you are not also dealing with text Dreamweaver inserted for you.


3. Give the desktop column a percentage width

We want shared column styling and screen-specific sizing to remain separate. The .col class will hold properties that every column needs, while another class will control the desktop width.

In CSS Designer’s global rules, create .col-lg. The lg means “large”, which we are using for the desktop layout. A name such as .column-desktop would work too; the shorter name is simply a convention you will encounter elsewhere.

  1. Select .col-lg in CSS Designer.

  2. Set its width unit to percentage.

  3. Enter a width of roughly 33% to start.

  4. Apply col-lg to the same div that already has col.

The column should now occupy about a third of its container.

Keep an eye on the units. Dreamweaver can switch a field back to pixels while you are editing. A width of 33 pixels is very different from 33%, so check the unit whenever a box suddenly becomes much smaller than expected.

The wider responsive plan is to use screen-specific classes and media queries to trigger the appropriate sizing: approximately one-third width on desktop, half width on tablet and full width on mobile.


4. Float the columns left, then duplicate them

If you duplicate the column now, the copies stack underneath one another. They have the right width, but they are still divs following their normal block layout.

For this float-based approach, apply a reusable class that sets float: left to the first column. Then duplicate that correctly configured column.

  • Mac: use Command + D to duplicate.

  • PC: use Control + D to duplicate.

  • Undo: use Command + Z on Mac or Control + Z on PC.

Create six columns for the six-image design. Because each copy carries the same classes, the columns now sit beside one another, with three fitting across before the next row begins.

Adobe Dreamweaver Split view displaying nine magenta-highlighted grid columns arranged tightly in three rows of three above HTML markup

Floating the columns left lets the percentage-width boxes sit beside one another.

If you need more items later, duplicate another column. The layout continues onto additional rows rather than requiring a separate row container for each group of three.


Check the flexible width in a browser

Save all your files and open the page in a browser. Resize the window and check that the columns stretch and shrink with their container.

On this page, the existing desktop maximum width limits how far the layout can grow. Below that limit, the percentage widths let the columns get narrower with the available space.

That flexibility is useful, but it is not the same as finishing the tablet and mobile layouts. Without the responsive width changes, the grid still tries to retain three columns as the window narrows.


5. Add spacing without breaking the three-column layout

Now we need a little breathing room between the boxes. Because every column needs spacing at every screen size, select the shared .col class rather than .col-lg.

Add 1% padding on the left and 1% on the right. You may immediately find that the third column no longer fits. That is not Dreamweaver being awkward. It is the width calculation.

Adobe Dreamweaver interface showing the CSS Designer panel on the right, causing the magenta grid blocks on the left to wrap into an uneven two-column layout.

Extra side padding makes each box wider, so the third column drops to another row.

In the box model used here, horizontal padding is added to the declared width. A column with a content width of approximately 33.3%, plus 1% padding on each side, takes up approximately 35.3% altogether.

Three of those will not fit into 100%.


Subtract the padding from the content width

Return to .col-lg and reduce its width to approximately 31.3%. With the side padding included, each column occupies about one-third of the available width:

  • Content width: 31.3%.

  • Left padding: 1%.

  • Right padding: 1%.

  • Total per column: approximately 33.3%.

All three columns should fit across again. Check that the width field still uses percentages after making the change.

The important rule is to calculate the whole box, not just its content width. The same consideration applies when you later work out the tablet and mobile widths.


Match the vertical gap to the horizontal gap

Return to .col and add bottom margin. Start with 1%, then compare the gaps.

Between neighbouring columns, the 1% spacing on one side meets another 1% on the next column. That gives an effective horizontal gap of 2%. Set the bottom margin to 2% to give the rows matching separation in this layout.

Adobe Dreamweaver workspace displaying nine evenly spaced magenta grid blocks in a 3x3 layout and the CSS Designer box on the right.

The adjusted width keeps three columns across, while bottom margin separates the rows.

The grid structure is ready for images

We now have the foundation: an image grid container, reusable column styling, a desktop width class, left-floating columns and spacing that fits within the available width.

The temporary coloured boxes have done their job. Adding the actual images, making them respond within those boxes, applying the tablet and mobile layouts, and hiding two items on mobile are the remaining stages.

Get the boxes working first. Once their sizing and spacing make sense, the image grid becomes much easier to finish.


Key terms

Container div

A div that groups related elements. Here, .image-grid holds the columns and controls the grid’s separation from the hero content.

Percentage width

A width measured relative to the containing element. It allows columns to stretch and shrink rather than keeping a fixed pixel width.

Media query

A CSS condition used to apply rules at particular screen sizes. It allows the same content to use different column widths for desktop, tablet and mobile.

Float left

A CSS setting that lets the columns in this approach sit alongside one another. When another column cannot fit, it moves onto the next row.

Padding and margin

Padding adds space inside an element’s box, while margin adds space outside it. In this layout, side padding affects the column width calculation and bottom margin separates the rows.


FAQs

Why are my Dreamweaver columns stacking vertically?

Setting a div’s width does not automatically place it beside another div. In this approach, apply the reusable float-left class before duplicating the column.

Why does adding padding push the third column onto another row?

The padding adds to the declared content width in this setup. Reduce the desktop content width to approximately 31.3% when adding 1% padding on each side, bringing the total back to approximately 33.3% per column.

Why has my percentage-width column become tiny?

Check the width unit in CSS Designer. Dreamweaver may have switched the field back to pixels, so confirm that the value is still a percentage.

Does this stage finish the mobile image grid?

No. It establishes the column structure and desktop spacing. The target mobile design uses one column with four visible images, but the image behaviour, responsive width rules and hiding of two items still need to be completed.

Daniel Walter Scott

Written by Daniel Walter Scott — Founder of Bring Your Own Laptop & Chief Instructor

  • Powered by Marvin
  • Terms of use
  • Privacy policy
  • Cookie policy
  • © Bring your Own Laptop Ltd 2026