![]() |
|
| Home: Online Courses: Computers: Macromedia Dreamweaver : Section 5: Working with CSS |
|
Develop Websites with Dreamweaver MX 2004 Working with Cascading Style Sheets (CSS)Cascading style sheets (CSS) offer you more control over the appearance of elements on your web pages by implementing a series of rules that describe those elements. The use of styles prevents the appearance of text from being determined by the viewer's browser preferences, as is often the case with standard HTML. For example, you can use a style sheet to define the font, color and size of the text you use for various headings, for paragraphs, and for special purposes such as tips in a tutorial. Even if the viewer's browser uses a default font different from the one you've used, the text on your site will appear as you've defined it. Finally, you can use cascading style sheets to create custom classes, essentially allowing you to create your own tags, rather than being limited to only existing HTML tags. This means that you can define rules that control the appearance of virtually any element on your page, and then update those elements globally simply by changing the style sheet. Creating and Applying Style SheetsThe CSS Styles panel in the Design panel group lets you easily alter the style of existing HTML tags, as well as create custom classes. To alter the appearance of existing tags:
Notice that on the status bar the tag is selected. You could have also placed the cursor inside the text you wanted to change, and then used the Tag Selector to select the tag.
The New CSS Style dialog opens.
If you selected a tag from the page (as described above), it should already be selected in Tag field.
If a style sheet already exists for your site, it will also appear in this drop-down menu. You can choose to define the style in that sheet by selecting it from the menu, or you can create a new style sheet, if you want to keep certain styles separate for use in later sites. (Continued Next Page)
Learn Macromedia Dreamweaver MX 2004 for free! Dreamweaver is a trademark of Macromedia Corporation. Learnthat.com is not affiliated with Macromedia. |
|
|||
![]() |
Learn: Free
Tutorials - Links
to Free Tutorials
Understand: Free Technical Definitions
- ExplainThat Whitepapers
Use: Certification Section -
Discussion Forum
Visit Our Network Sites:
About Us : Contact Us : Advertise : Privacy Information