Learnthat.com

Layout Using CSS in Dreamweaver MX 2004

NOVEMBER 2006 • 60 Pages • by Jeremy Reis

Layout Using CSS

Using cascading style sheets to define the appearance of layers in your page lets you share an entire design across multiple pages. This means that you can define styles that control the position, size, visibility, and other attributes of all the elements in your site:

  1. Click the CSS Styles tab in the Design panel group to open the CSS Styles panel.
  2. In the CSS Styles panel, click the New CSS Style button.

The New CSS Style dialog opens. You'll define a style to be applied to one of the layers in your page.

  1. Select the Class radio button and name the style. Remember to preface the name with a period, since you're creating a custom class.
  2. Make sure the appropriate style sheet is selected or, if necessary, create a new one.
  3. Click OK to close the dialog.

The CSS Style Definition dialog opens.

  1. Highlight Positioning in the Category list.
  2. As in the Property Inspector, you can specify the width, height, placement, and clip values for a layer.
  3. If necessary, use the other categories in the CSS Style Definition to define other attributes, such as the background color and the appearance of text in the layer.
  4. Click OK.

You can now apply the custom style to a layer on the page: Select the layer; then right-click the style in the CSS Style panel and select Apply. You can also select the style from the Class drop-down menu in the Property Inspector.

Tip:

If you previously positioned the layer using the Property Inspector, these values may override those contained in the style. Delete the values from the fields in the Property Inspector; this forces the layer to use the values defined in the style.

Page 50 of 60

  • Delicious button
  • Stumbleupon
  • Spread the word on Twitter!
That Network: Interactive Internet Publishing Network DefineThat.com: free technical definitions define wordsExamPractice.com: free certification news and practice exams   Explorestartups.com: find free business plans and business ideas   GiveThat.com: free gift ideas, birthday, Christmas, holidays  helpthat: got questions, we got answers   Jerm.com: entrepreneurship blog   learnthat.com: free software tutorials  mytutorials.com: collaborative write your own tutorials  Publishondemand.net: free publish on demand print on demand pod comparison   Romancetips.com: free romantic tips, advice, dating, date ideas, free romance   seekthat: free technical search engine   selfpublishthat: publish on demand   thatgear.com: gadget and electronic reviews   tutorialguru.com: free tutorials