Home / Articles / Adobe Dreamweaver / Web Design Basics in Adobe Dreamweaver CC (2015 release)

Web Design Basics in Adobe Dreamweaver CC (2015 release)


  1. Developing a new website
  2. Scenario
  3. Working with thumbnails and wireframes
  4. Creating web assets using Adobe Generator (optional)
  5. Review questions
  6. Review answers

Chapter Description

Whether you use thumbnails and wireframes, Photoshop, or just a vivid imagination, Dreamweaver can quickly turn your design concepts into complete, standards-based CSS layouts. Jim Maivald hits some web design basics in this chapter from Adobe Dreamweaver CC Classroom in a Book (2015 release).

Creating web assets using Adobe Generator (optional)

Adobe Generator is one of the web-oriented tools that allow you to export web assets from a Photoshop file in a variety of sizes, resolutions, and even file types. Best of all, this feature works in real time, exporting image assets from your file based on user-specified attributes added to the layer name. Let’s take a closer look at this great tool.

Working with Adobe Generator

In this exercise, you’ll work with an Adobe Photoshop document to prepare assets for your web project.

  1. Launch Photoshop CC 2015 or higher.

  2. Open GreenStart_mockup.psd from the lesson04/resources folder.

    The Photoshop file contains a complete mockup of the GreenStart site design, which is composed of various vector-based design components as well as image assets stored in separate layers. Note the use of colors and gradients in the design.

  3. Choose File > Save As.

    Name the file resources/myGreenStart_mockup.psd.

  4. If necessary, choose Window > Layers to display the Layers panel. Observe the names and contents of the layers and layer groups.

    The layers and layer groups are named for the webpage components.

  5. Open the header layer group, and observe the contents.

    The header group contains two text elements and four graphical elements. Often, it’s difficult to understand how a graphic component is built or for what purpose it is intended by looking at the layer names alone.

  6. In the GreenStart layer, click the eye icon icon_pseye.jpg to toggle the layer visibility off.

    The text “greenstart” disappears from the layer.

  7. In the fern layer, click the eye icon icon_pseye.jpg to toggle the layer visibility off.

    The image of the fern disappears. Using this method, you can identify each element of the header and see what role it plays in the creation of the overall design. The number and type of layers and the level of detail used here aren’t necessary for a mockup that you merely want to use for a client approval. This file was set up specifically to create many of the final assets for the page design.

  8. Click the eye icon icon_pseye.jpg to toggle the GreenStart and fern layers back on.

Exporting assets from Photoshop

The fern layer will be used to create one component of the header background. Photoshop generates a web asset automatically if you add a file extension to the layer name.

  1. Double-click the name of the fern layer, type fern.png and press Enter/Return to complete the name.

    When activated, Generator works in the background exporting assets in real time.

  2. Choose File > Generate > Image Assets.

    The next time you look at the Generate menu option, a checkmark will appear beside Image Assets, indicating that Generator is active.

  3. Choose File > Open.

    Navigate to the lesson04 > resources folder.

    A new folder has been created and named myGreenStart_mockup-assets by Generator. Whenever you add file extensions to the layer names and enable Generator, it creates a folder and fills it with assets automatically, based on the layer names and settings.

  4. Navigate to the myGreenStart_mockup-assets folder created by Photoshop.

    The folder contains a single image: fern.png.

  5. Open fern.png.

    The file contains the fern with a transparent background. Note that the image displays a drop shadow. The shadow is a permanent part of the image, no longer created by a Photoshop effect.

  6. Choose Image > Image Size.

    Note the dimensions and resolution of the image.

    The image is 468 pixels by 157 pixels, at 72 pixels per inch (ppi).

  7. Click OK to close the Image Size dialog.

    Close fern.png.

Creating multiple assets using Generator

Generator can also modify the default export specifications and even create multiple assets at multiple resolutions.

  1. Change the layer name fern.png to 200% fern.png+fern.jpg and press Enter/Return to complete the name.

  2. Choose File > Open. If necessary, navigate to the myGreenStart_mockup-assets folder.

    The folder contains two images: fern.png and fern.jpg, both created by Generator. Older files with the same names are replaced automatically.

  3. Select fern.png and open the file.

    The file contains the fern, but it appears twice as large as the previous image.

  4. Open fern.jpg.

    The file contains the same fern image, but at the original size. JPEGs do not support transparency, so the background is white. There’s no need for the JPEG version of the image. Generator can remove assets automatically too.

  5. Change the layer name 200% fern.png+fern.jpg to 150% fern.png and press Enter/Return to complete the name.

    The specification creates a larger, higher-quality image that will display well in regular browsers and on new higher-resolution devices. By removing “fern.jpg” from the layer name, Generator automatically deletes the JPEG version of the file.

  6. Choose File > Open. Navigate to the myGreenStart_mockup-assets folder.

    The JPEG version of the file is no longer visible in the folder. As you can see, Photoshop generates assets based on the name of the layer. You can create an entire set of images for your site design from the layers in this file.

  7. In the Layers panel, open the header layer group. Change the name of the stripe layer group to stripe.png.

  8. Open the sidebar2 layer group. Change the layer shopping to shopping.jpg. Change the layer biking to biking.jpg.
  9. Choose File > Open. Navigate to the myGreenStart_mockup-assets folder.

The myGreenStart_mockup-assets folder now contains four image files. These files are identical to the ones you will use to build the site template and populate articles in upcoming lessons. As you can see, Generator offers some handy tools for turning this mockup into real web design assets, but the tricks don’t stop there. Photoshop and Dreamweaver have even more collaboration tools to offer, as you will see later.

Check out http://helpx.adobe.com/photoshop/using/generate-assets-layers.html to see a complete explanation of Adobe Generator and how to use it.

5. Review questions | Next Section Previous Section