beautypg.com

Create a fluid grid layout, Edit fluid grid documents, Insert fluid grid elements – Adobe Dreamweaver CC 2015 User Manual

Page 172

background image

165

Layout and design

Last updated 6/3/2015

Create a fluid grid layout

1

Select File > Fluid Grid (legacy).

2

The default value for the number of columns in the grid is displayed in the center of the media type. To customize
the number of columns for a device, edit the value as required.

3

To set the width of a page as compared to the screen size, set the value in percentage.

4

You can additionally change the gutter width. The gutter is the space between two columns.

5

Specify the CSS options for the page.

When you click Create, you are asked to specify a CSS file. You can do one of the following:

• Create a new CSS file.

• Open an existing CSS file.

• Specify the CSS file being opened as a Fluid Grid CSS file.

The Fluid Grid for mobile phones is displayed by default. Also, the Insert panel for Fluid Grid is displayed. Use the
options in the Insert panel to create your layout.

To switch to designing the layout for other devices, click the corresponding icon in the options below the Design
view.

6

Save the file. When you save the HTML file, you are prompted to save the dependent files such as boilerplate.css and
respond.min.js to a location on your computer. Specify a location, and click Copy.

The boilerplate.css is based on the HTML5 boilerplate. It is a set of CSS styles that ensures consistency in the way
your web page is rendered across multiple devices. respond.min.js is a JavaScript library that helps provide support
for media queries in older versions of browser.

Edit fluid grid documents

You can edit fluid grid documents directly in Live View to:

• Associate HTML classes and IDs to elements. For more information, see

Element Display

.

• Edit image attributes and text. For more information, see

Quick Property Inspector

and

Edit text in Live View

.

• Insert new elements. For more informaiton, see

Insert fluid grid elements

.

You can also visualize the HTML DOM structure of a fluid grid document using

DOM panel

.

Insert fluid grid elements

The Insert panel (Window > Insert) lists the elements that you can use in a fluid grid layout. While inserting the
elements, you can choose to insert them as fluid elements.

1

In the Insert panel, click the element that you want to insert.

2

In the dialog box that appears, click Before, After, or Nest to position the element with respect to the reference
element highlighted in the document.