Creating Fixed, Elastic, and Hybrid Layouts
Starting the fixed layout
- Using Windows Explorer, locate the liquid folder.
- Right-click the liquid folder, and then click Copy.
- Right-click in a blank area of your drive window, and then click Paste.
- Right-click the pasted folder, which is probably titled Copy of liquid, and then click Rename.
- Type fixed, and then press ENTER.
- Open the fixed folder, and delete the liquid.ste site defition file.
- Open Dreamweaver, and close any open files.
- Create a site definition for the fixed folder, export the definition into the fixed folder, and then make sure the site appears in the Files panel.
Creating a wrapper
- Open the index.html file.
- In the tag selector, click <body> to select the entire page content.
- On the Insert toolbar, click the Layout tab, and then click the Insert Div Tag button.
- In the Insert list, click Wrap around selection.
- In the ID box, type #wrapper.
- Press CTRL+S to save the page.
Styling the fixed layout
- In the CSS panel, click the New CSS Rule button.
- Under Selector Type, click Advanced; and then in the Selector list, type #wrapper.
- Click OK.
- In the Box category, in the Width box, type 760px. (Use a value of 750px or 760px to limit the page width for screens that are set to 800×600 or larger.)
- Click OK.
Starting the elastic layout
- Using Windows Explorer, locate the fixed folder.
- Right-click the fixed folder, and then click Copy.
- Right-click in a blank area of your drive window, and then click Paste.
- Right-click the pasted folder, which is probably titled Copy of fixed, and then click Rename.
- Type elastic, and then press ENTER.
- Open the elastic folder, and delete the fixed.ste site defition file.
- Open Dreamweaver, and close any open files.
- Create a site definition for the elastic folder, export the definition into the elastic folder, and then make sure the site appears in the Files panel.
Styling the elastic layout
- In the CSS panel, double-click the #wrapper rule to edit it.
- In the Box category, under Margin, clear the Same for all check box.
- Under Margin, in the Left list, click Auto.
- Under Margin, in the Right list, click Auto.
- Click OK.
Starting the hybrid layout
- Using Windows Explorer, locate the elastic folder.
- Right-click the elastic folder, and then click Copy.
- Right-click in a blank area of your drive window, and then click Paste.
- Right-click the pasted folder, which is probably titled Copy of elastic, and then click Rename.
- Type hybrid, and then press ENTER.
- Open the hybrid folder, and delete the elastic.ste site defition file.
- Open Dreamweaver, and close any open files.
- Create a site definition for the hybrid folder, export the definition into the hybrid folder, and then make sure the site appears in the Files panel.
Styling the hybrid layout
- In the CSS panel, right-click the #wrapper rule, and then click Delete.
- In the CSS panel, click the New CSS Rule button.
- Under Selector Type, click Advanced; and then in the Selector list, type #wrapper.
- Click OK.
- In the Box category, under Margin, clear the Same for all check box.
- Under Margin, in the Left box, type whatever value you desire. (In class: Type 10%.)
- Under Margin, in the Right box, type the same value you entered in the Left box in the previous step.
- Click OK.