🚨 Heads up! This course is no longer supported. We recommend checking out our Webflow Essentials course.
How to change or adjust the CSS styles in your Dreamweaver website.
Questions
Student Gallery
Be the first to share something.
Course info
Overview
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.
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.
- 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
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
Hey, awesome people. In this video we're going to transform this ugly green box and edit our css into this lovely gray box. So now we're going to go and adjust our css sheet.
So let's say we've got nothing selected, let's click on some random stuff. Why can I make this not work? There's going to be lots of times in this course where we're going to make a Style, and you're like "Huh, I need to change this." So what we're going to do is-- to go and adjust it, the easiest way-- it doesn't matter what you've got selected over here, just click on 'CSS Styles', 'Global'. Then click on the Style you want. Later on in this course, it's going to get longer and longer for Styles. At the moment it's super easy because we've got only one, one Selector. A Header, and now we're going to go and make an adjustment.
Now there is lots of adjustments in here. So what you can do to make life a little easier, see this option that says 'Show Set'? I love it. It can also be a real pain when you're brand new to this. That it's only showing you the things you have set, and you're like "Oh, where's the other things, where's the font sizes and stuff." So you got to remember, you control with this on and off during this course. And what it does is, really the only things it shows you is the things you've actually done. So we've done the Padding and the Background color. So what I want to do is change the Background color to black. And in our case, we're going to choose—
By default, most of the time we're going to use hexadecimal numbers, it's hash numbering. You move it around, you can see, these numbers correspond with the color. Now, what we want to do is, I want to lower the Opacity of this background. So we have to use this RGBa, it's the newer format. There's no real right or wrong. Hex is the slightly older version. RGBa is the newer version. And the reason it's cool is because it has this 'a' at the end, which means Alpha, which means Transparency, which means this, and those hex numbers don't have it.
You can see, I can make it slightly transparent. So I'm going to drag it to black. And we can see now, it's kind of looking gray but later on when we get some images behind it, it's going to be slightly transparent. It's up to you whether you want to do this now, or a bit later. How dark? It's going to be hard to know until we get our images behind it. And we can adjust it later.
Another thing you can do is, say that this panel here is just driving you mad, you can just go to CSS Styles, you can see it there, there's my Styles. You can see, say the Padding needs to change, I can just change this to 12 at the top and 12 at the bottom. It doesn't really matter whether you want to use Code view or you want to use the CSS Designer panel. In this course, we're going to be sticking mainly to the CSS Designer.
Back to 'Source Code'. One last thing before we do is the 'Save All'. So whenever I make an adjustment to my css - I'm going to drag this around, hit 'Enter'. - you'll notice that this styles.css gets this little asterisk in here. And I want to hit 'Save', but because I'm kind of in Source Code, viewing my HTML, if I go 'File', 'Save' nothing happens, and I'm like, "Ugh." So I need to go and do this something called 'File', 'Save All'. The only problem with Save All is that it's a long way, and yours won't have a shortcut. I've made a shortcut for mine because it's something you should do before you preview anything in your Real Time Browser Preview or over in Chrome. So you go to 'Save All'. That means it saves this, plus the css sheet, and maybe some JavaScript we've got open. So 'Save All'.
To do the shortcut on a Mac, you go to 'Dreamweaver', go to 'Keyboard Shortcuts'. On a PC, it's under 'Edit', and right down the bottom there is one in here somewhere, that says 'Keyboard Shortcuts'. You might have to find it. So the first thing is, we're going to go to 'Menu Commands'. We're going to find 'File', find 'Save All'. And in here, we're going to add a '+' to the shortcut. It's going to say, "You cannot modify the default set". Click 'OK', we're going to create our own one. And you can call this anything you like. 'Dan's Dreamweaver Shortcuts'. I only half finished that. Okay, so go to 'File' and let's click 'Save All' now, and now hit '+'. And we can pick anything we like. I'm using 'Command Shift A'. On a PC, it's 'Control Shift A'. And that's going to—
You can use anything you like, it doesn't matter. Whatever you think you remember lots. That's how we're going to do it. Click 'Change', click 'OK'. And now, whenever I go, I can just say 'Command Shift A', and it saves all. If ever you go and preview in your browser, do 'Command Shift A' first, or go to 'File', 'Save All', the long way. Just so that everything is up to date because you can sometimes be previewing something in Chrome, and going, "It's not working, I thought I just changed that," and it's just because you haven't saved the documents. That is how to edit css and how to create little shortcuts, 'Save All'. On to the next tutorial.
How do I edit an existing CSS style in Dreamweaver?
Open CSS Designer, choose Global, then select the CSS rule you want to change. Adjust its properties in the panel, or edit the stylesheet directly in Code View. Before checking the result in a browser, use File > Save All so your HTML and CSS files are both up to date.
How to Change CSS Styles in Dreamweaver
Key takeaways
Find an existing style without relying on what is selected on the page.
Use Show Set to focus on properties you have already changed.
Turn a bright green header into a semi-transparent black background.
Edit CSS through the visual panel or directly in code.
Create a Save All shortcut to avoid previewing outdated files.
Find the CSS rule you want to change
Making a style is only half the job. Sooner or later, you will want to change its colour, adjust its spacing, or try something a little different. Here, we are taking a rather loud green header and turning it into a much nicer grey-looking box.
You do not need to have the right element selected on the page before you start. If you have clicked somewhere else, or nothing useful is selected, use the CSS panel to go straight to the rule:
Open the CSS Designer panel.
Choose Global.
Select the style you want to edit in the selectors list. In this example, that is header.
With only one selector, finding it is easy. As your stylesheet gets longer, deliberately selecting the rule you want becomes a useful habit. Once it is selected, you can adjust its properties in the panel.
Use Show Set to tidy up the properties panel
There are plenty of CSS properties available, and scrolling through all of them can get a bit much. This is where Show Set is lovely: it filters the panel to show only the properties you have already set for that rule.
For our header, those are the padding and background colour. Turning on Show Set makes those existing settings much easier to find.
Show Set keeps the properties you have already changed close at hand.
There is one catch, especially when you are new to Dreamweaver. You might start looking for font size or another property and wonder where it has gone. It has not disappeared. Turn Show Set off to see the other available properties, then turn it back on when you want the shorter list again.
Change the background colour and add transparency
With the header rule selected, open its background colour control and change the green to black. That gives us the right starting colour, but we also want the background to be slightly transparent.
Choose RGBA for the alpha control
The colour picker can represent colours in different formats. You will often use hexadecimal, or HEX, values, which are the colour numbers beginning with a hash symbol. As you move around the picker, the value changes to match your chosen colour.
For this adjustment, switch to RGBA. The important part is the A, which stands for alpha and controls transparency. Unlike the standard six-digit HEX format used here, RGBA includes that transparency value.
Open the header’s background colour picker.
Switch the colour format to RGBA.
Choose black.
Lower the alpha setting so the background becomes partially transparent.
Lowering the alpha makes black appear grey against the white page.
It looks grey now because the semi-transparent black sits over a white background. Later, when images sit behind it, some of that imagery will show through.
How dark should it be? That is difficult to judge until the images are in place. Pick a starting point for now. You can return to the same rule and adjust the transparency once you can see it in context.
Edit the stylesheet directly if you prefer
If the visual panel is driving you a little mad, you can also open the linked styles.css file and change the CSS directly in Code View.
For example, you can find the header’s padding declarations and change the top and bottom padding values to 12px. You are editing the same stylesheet, whether you use code or the CSS Designer panel.
Neither approach is compulsory. I mainly use CSS Designer for this workflow, but it is handy to know you can jump into the stylesheet when that feels quicker. When you are finished, switch back to the HTML source if that is where you want to continue working.
Use Save All before checking the browser
Here is a small detail that can save a fair bit of frustration. After you change a CSS property, an asterisk appears beside styles.css to show that it has unsaved changes.
If you are currently working in the HTML document, choosing File > Save may save that document without saving the changed stylesheet. It can feel as though nothing happened, because the CSS still needs saving.
Use File > Save All instead. This saves the open documents with changes, including your HTML, stylesheet and any JavaScript files you may be working on.
Save All avoids leaving stylesheet changes unsaved while you work in HTML.
Make this your routine before using the real-time browser preview or checking the page in Chrome. Otherwise, it is very easy to think a CSS change is not working when the browser is simply using a file you have not saved yet.
Create a keyboard shortcut for Save All
Save All is useful enough that it deserves a shortcut. If it does not already have one in your setup, you can assign your own.
On a Mac, open Dreamweaver > Keyboard Shortcuts. On Windows, look for Keyboard Shortcuts under the Edit menu.
In the shortcuts dialogue, choose Menu Commands.
Expand File and select Save All.
Click the plus control to add a shortcut.
If Dreamweaver says the default shortcut set cannot be modified, accept the prompt to create a custom set. Give it a name you will recognise.
In your custom set, return to File > Save All and add your preferred key combination.
Click Change, then OK to confirm.
Assign a memorable shortcut so saving every open file becomes a quick habit.
I use Command + Shift + A on a Mac. The equivalent suggested combination on Windows is Control + Shift + A. These are custom choices, not default Save All shortcuts. Pick something memorable, and check whether your chosen combination is already assigned to another command.
Then the routine is simple: change the style, save everything, and check the browser. That little saving habit removes one very common reason for a perfectly good CSS edit to appear broken.
Key terms
CSS selector
The part of a CSS rule that identifies what it styles. Here, the header selector is the rule we choose to edit.
Show Set
A CSS Designer filter that displays only properties already set for the selected rule. Turn it off when you need to find another property.
HEX colour
A hexadecimal colour value beginning with a hash symbol. The standard six-digit format used here describes a colour without an alpha value.
RGBA
A colour format containing red, green, blue and alpha values. Alpha controls how transparent the colour is.
Save All
The command that saves changes across open documents, rather than only the current document.
FAQs
Why can’t I find a CSS property in Dreamweaver?
Check whether Show Set is enabled. It hides properties you have not set for the selected rule. Turn it off to display the other available settings.
Why does a transparent black background look grey?
Partially transparent black allows the background behind it to show through. Against white, it appears grey. Its appearance will change when imagery is placed behind it.
Why are my CSS changes not appearing in the browser?
One possible cause is an unsaved stylesheet. Use File > Save All before previewing, particularly if you have been editing CSS while the HTML document is active.
Written by Daniel Walter Scott — Founder of Bring Your Own Laptop & Chief Instructor