O'Reilly logo

Microsoft® Office SharePoint® Designer 2007 Bible by Vikram Kartik

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

12.3. Creating and Using CSS Layouts

CSS layouts is a mechanism of laying out Web pages by using formatting applied via CSS. When you create a CSS layout, you're basically creating a CSS and then applying a style sheet to a Web page for layout formatting. So, instead of using a table to lay out your Web page, for example, you can choose to create a layout based on a CSS. By default, SharePoint Designer provides a number of templates for creating CSS layouts. These are available in the New dialog box in the CSS Layouts section.

To create a new Web page using CSS layouts, follow these steps:

  1. Choose File New to open the New dialog box and then click the CSS Layouts section in the Page tab, as shown in Figure 12.17.

  2. Choose the layout that best suits the layout of the page you want to create.

  3. Click OK. SharePoint Designer creates a Web page and a CSS for you. By default, the CSS is linked to the newly created Web page. By default, the page just has some <div> tags with id attributes that match CSS rules. But when you type some text in the <div> tags, the layout formatting applied by using the CSS layout takes affect, and the content is placed according to the CSS formatting defined in the rules, as shown in Figure 12.18.

    Figure 12.17. Creating CSS layouts by using the default templates provided with SharePoint Designer

The CSS rules in this case are being matched by using the id attribute ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required