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

How to create a hamburger mobile drop down menu in Dreamweaver.

Course contents

Questions

0
You are not following this thread
0
You are not following this thread
0
You are not following this thread
0
You are not following this thread
0
You are not following this thread
0
You are not following this thread
0
You are not following this thread
0
You are not following this thread
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

In this video we're going to create an ugly looking desktop menu which we'll Style in the next video, but when it gets down to Tablet, and Mobile, it turns into a Nav Sandwich. So let's go and do that now in Dreamweaver.

First thing we're going to do is, we're going to, in this video, put in the core components and turn them on and off for the different views. After that, in the next video, we'll look at doing the JavaScript that makes the click action happens, when you click it, the menu drops down. And in the last video, or at least the third of this little chunk here, we'll be styling it to make it look pretty. The first thing we need to do is add our Navigation. And it's this Navigation tag here, I want it to be just after this image, so I'm going to click on this image, and remember, there's an image, but that image is inside this a-tag. That is the link that we put around it. So, click it up here, click the image. And we're going to click down here, and say the a-tag, that's actually around the outside of this image, we want it just after you, please. And say, 'Navigation', click on him. So I would like it after the thing I've selected, there it is there.

First thing I want to do with Navigation is add a Style to it, to get it to float to the right because I don't want it underneath here, I want it in the top right here. So go to 'CSS Designer', under 'styles.css', I would like it in 'Global' I would like a Selector called 'Nav'. And I'm going to use the 'up' arrow. Remember, specificity just means that it's saying, the Nav tag which is inside the Header, which is inside the Container. I don't need a way around that because I only got one Nav tag for this whole document. So I don't need to be that specific. I'm not going to say specificity any more in this course because it's very hard to say.

So, I want the Nav tag to float to the right. Float is this one here, I'm going to say 'Float to the right'. And it kind of just jumps on to the right side of the page. Awesome! Next thing I want to do is put two Div tags inside of this Navigation. One Div tag is going to be for my Mobile menu, which is going to be my Burger menu, the strappy line thing. And the Desktop view is going to be those colored buttons that say 'About Us' and 'Contact Us'. So basically what happens is you have two separate Div tags. One with the Mobile menu in it, and one with the Desktop menu in it. And we just say, turn one off when we're in Mobile view, and turn the other one on. And switch it around when we're on Desktop.

So, let's go and set those Div tags. So I've got Nav selected, I'm going to go to 'Insert', click on 'Div'. I want this on the inside, please. And we've got a new Div tag, you can see, there is my Nav, and there is the guy that's inside. Do we need this text anymore, we don't. I like to delete the text here in Code view. Deleting it in Live view works most of the time but I find it's a little bit easier to do it in Code view. So you can see, there's my Nav tag opening and closing, and there's the Div tag inside of it, only two of these.

What I can do is, over here I can select on the 'Div tag' and say, another one please, just after him, here he is. So now I have two. Let's put in different components. So in this first one here, I'd like to insert an 'Image' which is going to nest inside. And I'd like it to be my Burger menu, which is under 'Exercise Files', 'images'. And we're going to use the svg version Burger menu. You can use png, svg is the newer scalable vector graphic version. Let's click 'Open'. And it's going to say "You've selected something outside, would you like to put it in there for you?" And you say, "Yes please, put it in with my images." There, please. Because I've practiced this one already to make it super slick for this video I've already got my Nav, so you won't have to click 'Replace'. You'll notice it's very big, so with it selected, I can say-- hit the little menu here, and say, "Actually I just want it to be 25 pixels." You decide how big you want yours to be.

Next thing I want to do is get rid of our text. And like I said, I like to delete the text here in Code view. I don't need that text anymore. So I've got a Div tag, and it has my images inside. Let's put in the Desktop version. So inside this guy I click on him, there he is there, a red Div tag. I'm going to put in something called an Unordered List. This is how we describe Lists. And Navigation is just a list of options you can go to on a page. To select on this Div, I'm going to say insert 'HTML', I'm going to find this one called Unordered List. An Ordered List is a numbered list, and an Unordered List is a bullet pointed list. So you can see, bullet points. We're going to remove those from the Styling a little bit later on.

So, what I want to do is change this text. I want to say, this one is going to be the 'About Us'. I've used capitals, you don't have to. 'Return', and 'Contact Us'. I mean, 'Me', 'Contact Me'. 'About Me', because this is just my Portfolio. So I'm going to click out, you can see I got two bullet points. Let's have a look at how these are constructed, there's the Div tag, and inside of that is my Unordered List. There you see, the beginning and ending. And inside this Unordered List are the List Items. So these are the different bullet points. That's just how it's constructed. It's going to be important for when we later on go and start styling.

What I'd like to do while we're here is to give them Hyperlinks. So I'm going to double click 'About Me', and click on this one here, see, it goes orange, click on the 'Hyperlink''. And where is this going to go? It's going to go to hash '#'. Hash is just-- I don't know yet what that icon means, or that pound '#' sign. You could put 'About Us'. 'aboutus.html', in lower case. But I don't really know what it's going to be called, so if you don't know, just put in hash '#'. And that allows it to be a link, but it doesn't cause an error. You can change this later on. Same with 'Contact Me', both of them are going to hash '#' at the moment.

Next thing I'd like to do is turn them on and off at different views because at the moment, you can see them all the way through. Mobile, Tablet, Desktop. So, what I'm going to do is do the Mobile one first. I double click this, there we go. I want you to turn off, when you're in Desktop view. So, what I'd like to do is go to my CSS Designer panel in styles.css, in my Desktop view, which is Global. I want to say-- I'm going to create a new Selector, this one's going to be '.mobile'. So this is going to be a Class, mobile view. And what I'd like to do is, when it's in Mobile view - so this is that thing, it's going to control this. - so at Mobile view, I would like you to display 'none'. None, just means, we can't see. So nothing happens, because what I need to do is find the Div tag. It's wrapping around the outside of this image, and apply it. Where do I do it? I can do it down here.

So I have my Image selected, now I've got my Div tag selected. And Div means, the .mobile, you're there. He's gone. Cool, huh? So, this Div tag now is called Mobile view Div tag. And what we're saying is, when it's in Global, which is Desktop, I would like you to display 'none'. And the problem is, it displays 'none' all the time. That's why they call it Global, and not specifically Desktop. Because what it means is, it means everything. Global means everything unless Tablet view says, do something different. But at the moment, if I go to my css, I look at my Tablet view. My Tablet view doesn't save anything. So it doesn't override Mobile view. It's a cascading Style Sheet, so it flows down and flows over all of these unless they say something different. And they don't, they say, Mobile view, we don't say anything.

So that's what we're going to do, we're going to say under 'styles.css', when I get to Tablet view just select a name.mobile-view. Hit 'return' again, it's gone. Instead of saying 'none' now, we're going to say, apply 'block'. Block is a weird one, it sounds like 'none'. I think block of wood, block of concrete, something solid, I can see it now. Works for me anyway. So, I can see it. So let's go and check it in a browser, Live view is not great, remember. 'Save All', check in a browser. So, my Mobile menu in Desktop view can't be seen, it's 'none'. Now when it gets down to Tablet view it's blocked, it's a block of wood. And when it gets down to Mobile view, it disappears again.

So what we need to say is, styles.css, when it's at Mobile view which is my maximum of 400 pixels I can make another Selector called '.mobile-view'. I'd like to say, display 'block' as well, so I can see both of them. 'Save All', test, there he is. It's not lined up, that's okay, we'll do the styling later on. It's mechanics here at the moment. So, you can't see him, you can see him, you can see him, awesome. So what I want to do now is create a new Class called Desktop view, and I want to apply it to these buttons here, and I want to turn it on and off, depending on the view.

So, let's create a new Styles. I don't want to make it Global, I could, I could say, I'd like you to be 'block'. But it's audience block, we can only see it at Desktop view. So I don't need to restate that, what I need to say is, Tablet, turn off. So I'm going to go to my 'Tablet' view, I'm going to click 'Selector'. I'll call this one 'desktop-view'. I did not call it Desktop view at all. 'Return' a couple of times, it's working. So Desktop view, and I'm going to say, display 'none'. Now I need to apply it to it, so I select on it. Let's click on that Div tag that's wrapped around the outside. I'll click here, click full stop '.', click 'Desktop'. It's not appearing. This happens a bit. You need to hit 'Save All'. And then go back and undo this, and hopefully it's there. 'Save All'. 'Desktop', still not doing it. I'm going to leave this in the video just because it happens to everybody.

So I'm going to just type it in physically, hit 'return'. It's going to say, "Would you like to create something new?" Keep hitting return on your keyboard until it goes away. And it is applied, if I click on this guy, you can kind of see, there's my Div tag, and it's got that Class applied. That happens to me a bit in Dreamweaver. Just the way it is. 'Save All', let's preview in a browser. You can see, Desktop view, I can see him, but when it gets down to Tablet, goodbye, he is 'none', but it is back when it is in Mobile. So let's do the same thing, 'styles.css' in Mobile view, I'd like to create a Selector called '.desktop'. Awesome! And I'd like to say, I'd like to display 'none', please. 'Save All', preview in a browser, gone. Gone there, nice. So that's all we're doing.

We have two Div tags, one's called Mobile, one's called Desktop. And we're just turning them on using display at different Media Queries. Problem now is, this doesn't work yet. So we're going to go through now and use some JavaScript to make this a little drop down button to make that work. You're ready for your first bit of JavaScript? Let's go and do that in the next video.

Written Guide

How do you create a responsive hamburger menu in Dreamweaver?

Create a navigation element with two separate divs: one for a hamburger icon and one for desktop links. Use CSS Designer and media queries to hide or show each div at desktop, tablet and mobile sizes. This builds the responsive structure; JavaScript for opening the menu comes afterwards.

Create a Responsive Hamburger Mobile Menu in Dreamweaver


Key takeaways

  • Place your navigation after the linked logo and float it to the right.

  • Build separate wrappers for the hamburger icon and desktop navigation links.

  • Use CSS classes and display settings to switch between the two layouts.

  • Understand why global styles affect every screen size unless overridden.

  • Test all three layouts in a browser before adding click behaviour or finishing the styling.


The first version of this menu is going to look a bit ugly. That is fine. We are getting the mechanics working first: ordinary navigation links on desktop, then a little stripy hamburger icon on tablet and mobile.

There are three separate jobs here: building the structure, adding the JavaScript that opens the menu, and making everything look pretty. We are tackling the first job, so do not worry if the links still have bullet points or the alignment needs work.


1. Insert the navigation after the linked logo

Start with the existing logo image in your header. The important detail is that the image already sits inside an anchor element, which makes it a link.

We want the navigation after that whole link, not inside it.

  1. Click the logo image in Live View.

  2. Use the tag selector to select the surrounding a element.

  3. Open the Insert panel and choose Navigation.

  4. Choose to insert it after the selected element.

You should now have a nav element after the linked logo, within the header.


Float the navigation to the right

The navigation may initially appear underneath the logo. To move it over to the right, open CSS Designer and select your styles.css stylesheet.

  1. Select the global styling context.

  2. Create a selector named nav.

  3. In the layout properties, set float to right.

Dreamweaver may suggest a longer selector that describes the navigation inside the header inside the container. For this document, there is only one navigation element, so the simple nav selector is enough. There is no need to make it more specific than it needs to be.


2. Create two divs inside the navigation

The responsive switch is built around two separate containers:

  • The mobile wrapper: contains the hamburger image for tablet and mobile layouts.

  • The desktop wrapper: contains the navigation links for the desktop layout.

Both sit inside the same navigation element. We will turn one off and the other on, depending on the screen size.

  1. Select the nav element.

  2. Choose Div from the Insert panel and nest it inside the navigation.

  3. Select that new div and insert another div after it.

  4. Check that both divs are inside the navigation and alongside each other, rather than one inside the other.

Remove any placeholder text Dreamweaver adds. I find this easier in Code View. Deleting text in Live View can work, but Code View makes it clearer exactly what you are removing.

Keep the opening and closing tags. It is only the temporary text between them that needs to go.


3. Add the hamburger menu image

Select the first div and insert an image nested inside it. In the exercise assets, the burger menu image is in the Images folder.

Use the SVG version if you are following this setup. SVG stands for Scalable Vector Graphics. A PNG version can also be used.

If Dreamweaver notices that the selected image is outside your site folder, allow it to copy the file into your site's images folder. That keeps the asset with the rest of the project.

The image may come in looking enormous. With it selected, open its image properties and set its width to 25 pixels. That is the size used here, but you can choose a size that suits your design.

Remove any remaining placeholder text from the first div. At this point, that wrapper should contain just the hamburger image.

Adobe Dreamweaver Split view showing a website header with the HTML Properties popover open on a placed burger menu image, setting width to 25 above the HTML source code.

Set the right size to the mobile hamburger menu icon before moving on.

4. Build the desktop links with an unordered list

Select the second div and insert an unordered list from the HTML Insert options.

Navigation is simply a list of places you can go, so a list is a useful structure for it. An ordered list is numbered; an unordered list uses bullet points. We want the unordered version.

Create two list items:

  • About Me

  • Contact Me

If the site represents a business rather than an individual portfolio, “About Us” and “Contact Us” work just as well. Capital letters are a design choice, not a requirement.

The structure now has several layers: the desktop div contains a ul element, and that unordered list contains individual li elements. Each list item will contain its own link. Knowing those layers will help when it is time to style the menu.

The bullet points can stay for now. Removing them and turning the links into attractive navigation buttons belongs to the styling stage.


Add temporary hyperlinks

Select the text for the first navigation item and use Dreamweaver's hyperlink control to give it a destination. If you already know the page filename, you can enter something such as about-us.html.

If you have not decided on the destination yet, enter # as a temporary placeholder. Repeat this for the second item.

The hash is not a finished destination. It lets you set up the link structure now and replace the value once the actual pages are ready.


5. Hide the hamburger icon in the desktop layout

At the moment, both wrappers are visible at every size. We need to give them classes so that CSS can control them separately.

For clarity, use mobile-view for the hamburger wrapper and desktop-view for the links wrapper. Keep those names consistent wherever you use them.

  1. In CSS Designer, select styles.css and the global context.

  2. Create the selector .mobile-view.

  3. Set its display property to none.

  4. Select the div surrounding the hamburger image.

  5. Apply the mobile-view class to that div.

Creating the CSS selector alone will not change the page. You must apply the class to the matching HTML element as well. Once it is applied, the hamburger disappears. Awesome.

Notice that the class goes on the surrounding div, not just on the image. We are controlling the entire mobile wrapper.


Global does not mean desktop-only

Although we are using the global styles as our desktop starting point, those rules are not limited to desktop screens.

A global display: none rule still applies at tablet and mobile sizes unless another applicable rule overrides it. Selecting a narrower layout does not automatically undo the global setting.

That is why the hamburger is now hidden everywhere. We need to explicitly bring it back where we want it.

Dreamweaver interface displaying the CSS Designer panel with the mobile view selector active and the display dropdown menu open highlighting none.

You can hide the mobile navigation icon on desktop and mobile using CSS Designer Layout properties.

6. Show the hamburger at tablet and mobile sizes

In CSS Designer, select the existing tablet media query in styles.css. Create another .mobile-view selector in that context and set its display property to block.

The name “block” can sound a little like it ought to block something out. I think of a block of wood: something solid that I can see. For this wrapper, block brings it back into the layout.

Save all files and preview the page in a browser. The hamburger should be hidden at desktop size and visible at tablet size.

In this project's media-query setup, it disappears again at the mobile size. To fix that:

  1. Select the existing mobile media query, which has a maximum width of 400 pixels in this project.

  2. Create a .mobile-view selector in that context.

  3. Set display to block there as well.

  4. Save all files and test again.

The intended result is simple: no hamburger on desktop, a hamburger on tablet, and a hamburger on mobile. If it is not beautifully lined up yet, that is okay. We are checking visibility first.


7. Hide the desktop links on smaller screens

Now apply the opposite behaviour to the desktop wrapper.

The desktop div is already visible by default, so there is no need to add a global rule merely to repeat that it should display as a block.

  1. Select the tablet media query in CSS Designer.

  2. Create the selector .desktop-view.

  3. Set its display property to none.

  4. Select the div surrounding the unordered list.

  5. Apply the desktop-view class to that div.

Test it in the browser. The desktop links should remain visible at desktop size and disappear at tablet size.

If they return at the mobile size, add .desktop-view to the mobile media query too, with display set to none. This project needs that setting in both smaller-screen contexts.


If Dreamweaver does not suggest the class

Sometimes a class you have just created does not appear in Dreamweaver's suggestions when you try to apply it. It happens.

Try Save All, then select the wrapper and try again. If the suggestion still refuses to appear, type the class name manually and confirm the entry. Check the selected div afterwards to make sure the class has actually been applied.

A missing suggestion does not necessarily mean the CSS rule is missing. Check both parts: the selector in the stylesheet and the class on the HTML element.


8. Test the complete responsive switch

Use Save All before testing, then preview in an actual browser. Live View is useful during construction, but the browser is where you should verify the responsive result.

Resize through all three layouts and check:

  • Desktop: navigation links visible, hamburger wrapper hidden.

  • Tablet: hamburger wrapper visible, desktop links hidden.

  • Mobile: hamburger wrapper visible, desktop links hidden.

If something disappears or comes back unexpectedly, check which media-query context contains the display rule, whether the class names match, and whether the class is applied to the correct wrapper.

That is the core mechanism: two divs, two classes, and display settings at the relevant media queries.

The hamburger does not open a dropdown yet. So far, it is an image that appears at the right screen sizes. The next job is to add JavaScript for the click action, followed by the styling that makes the navigation look finished.


Key terms

Navigation element
The nav element groups the site's navigation. Here, it contains both the mobile and desktop wrappers.

Wrapper div
A container around related content. Applying a class to the wrapper lets us show or hide its contents together.

CSS class
A reusable name applied to an HTML element. In CSS, its selector starts with a full stop, such as .mobile-view.

Media query
A condition that makes CSS rules apply at particular screen sizes. This project uses separate tablet and mobile contexts to control navigation visibility.

Global styles
Rules that are not restricted to a particular media query. They continue to apply unless another applicable rule overrides them.

Display none and block
display: none hides a wrapper from the layout, while display: block restores it as a block element.


FAQs

Why is my hamburger icon hidden on every screen size?

A global display: none rule applies at every width unless overridden. Add display: block for the hamburger wrapper in the appropriate tablet and mobile media-query contexts.

Why are the desktop links appearing again on mobile?

In this project's setup, hiding the desktop wrapper in the tablet context does not keep it hidden in the mobile context. Add the same display: none setting for .desktop-view in the mobile media query.

Should the visibility classes go on the image and list?

Apply them to the surrounding divs. The mobile class belongs on the wrapper containing the hamburger image, and the desktop class belongs on the wrapper containing the unordered list.

Why does nothing happen when I click the hamburger?

The responsive structure only controls which wrapper is visible. JavaScript for opening and closing the dropdown has not been added at this stage.

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