Web Standards
  Home arrow Web Standards arrow Page 2 - Web Standards in Dreamweaver, Part 2
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WEB STANDARDS

Web Standards in Dreamweaver, Part 2
By: Apress Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 5
    2004-09-08

    Table of Contents:
  • Web Standards in Dreamweaver, Part 2
  • Creating Classes
  • The Property Inspector
  • Design Files: Premade CSS Stylesheets
  • Creating Valid Markup

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Web Standards in Dreamweaver, Part 2 - Creating Classes


    (Page 2 of 5 )

    Creating classes in Dreamweaver is as simple as redefining an HTML tag.

    1. Open the New CSS Style dialog box once again and select the Class (can apply to any tag) radio button. Next, in the text box at the top of the dialog box, enter a name for your class. It must begin with a period.

    2. Click OK and the familiar dialog box will open, allowing you to set the properties for this class. Set the properties you want and click OK. Your new class will appear in the CSS Styles panel.

    Attaching a Stylesheet

    When you create a new stylesheet, Dreamweaver attaches it to your page automatically. However, if you already have a stylesheet that you want to attach to the page, you can attach it using the Attach Stylesheet button on the bottom of the CSS Styles panel.

    The dialog box that appears allows you to browse for your stylesheet. Use the two radio buttons to select whether you want the stylesheet to be linked or imported.

    Linking to the Stylesheet

    Linking to the external stylesheet is the usual way of attaching a stylesheet to your page. Selecting this option will attach your stylesheet to your page with the following markup:

    <link href="global.css" rel="stylesheet" type="text/css" />

    This way of attaching a stylesheet is supported by all CSS-enabled browsers, and it is what you should do if you need to support browsers such as Netscape 4 with your web page.

    Importing the Stylesheet

    If you choose to import, the stylesheet will be attached with the following markup:

    <style type="text/css">
      <!--
         @import url("global.css");
      -->
    </style>

    This way of attaching a stylesheet is not recognized by version 4 browsers, but you can use this to your advantage when you have to deal with buggy CSS support in these older browsers. We will return to this subject later.

    This chapter is from ASP.NET Web Development with Macromedia Dreamweaver MX 2004, by Costas Hadjisotiriou (Apress, 2004, ISBN: 1590593480). Check it out at your favorite bookstore today.

    Buy this book now.

    More Web Standards Articles
    More By Apress Publishing


     

    WEB STANDARDS ARTICLES

    - Completing a Configuration for Chrome and a ...
    - Getting Connected with Firefox and Chrome
    - Configuring Servers and Databases with Chrome
    - Configuring Firefox for Chrome and a Server
    - Designing the Elements of a Web Page
    - Matching div heights with CSS and JavaScript
    - Forms
    - Get Down With Markup
    - If I Said You Had a Beautiful Body...
    - Web Standards in Dreamweaver Part 3
    - Web Standards in Dreamweaver, Part 2
    - Web Forms
    - Making Lists Using XHTML
    - Web Standards in Dreamweaver, Part 1







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek