The layout of a website has to respond and adapt to the dimensions of the device on which it is displayed (responsive design). A fluid grid layout provides a visual way to create different layouts corresponding to devices on which the website is displayed.
For example, your website is going to be viewed on desktops, tablets, and mobile phones. You can use fluid grid layouts to specify layouts for each of these devices. Depending on whether the website is displayed on a desktop, tablet, or mobile phone, the corresponding layout is used to display the website.
More info: Adaptive Layout versus Responsive Layout
Inspect mode is not available for Fluid Grid Layout documents.
You can edit existing fluid grid layouts in Dreamweaver CC 2017. However, you cannot create fluid grid layouts.
Instead, use bootstrap to create responsive layouts in Dreamweaver CC 2017. For more information on Bootstrap, see Work with Bootstrap files.
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.
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.
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 Element Quick View.
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.
When you select an inserted element, the options to hide, duplicate, or delete the Div are displayed. For Divs layered on top of each other, the option to swap Divs is displayed.
Description Swap Div Swaps the currently selected element with the element above or below.
Hide Hides the element.
To unhide an element, do one of the following:
To unhide ID selectors, change the display property in the CSS file to block. (display:block)
To unhide class selectors, remove the applied class (hide_<MediaType>) in the source code.
Move up a row Moves the element up by a row
Duplicate Duplicates the currently selected element. CSS linked to element is also duplicated.
Delete For ID selectors, deletes both the HTML as well as CSS. To delete HTML only, press Delete.
For class selectors, only HTML is deleted.
Align For class selectors, the Align option acts as a zero margin button.
For ID selectors, the align button aligns the element to the grid.
Elements on a page can be traversed cyclically using the up and down arrow keys. Select the element boundary and then press the arrow key.
To nest fluid elements within other fluid elements, ensure that the focus is inside the parent element. Then, insert the required child element.
Nested Duplication is also supported. Nested Duplication duplicates the HTML (of the selected element) and generates the relevant Fluid CSS. Absolute elements contained within the selected element are positioned appropriately. Nested elements can also be duplicated using the duplicate button.
When you delete a parent element, the CSS corresponding to the element, its children, and associated HTML are deleted. Nested elements can also be deleted together using the Delete button (Keyboard Shortcut: Ctrl+Delete).