Home arrow Web Authoring arrow Page 11 - Using Adobe GoLive CS, Part 3
WEB AUTHORING

Using Adobe GoLive CS, Part 3


The second article in our series covering Adobe GoLive we'll be working with images, CSS, and JavaScript. (This chapter comes from Teach Yourself Adobe Creative Suite, by Mordy Golding, Sams, 2004, ISBN: 067232752X.)

Author Info:
By: Sams Publishing
Rating: 5 stars5 stars5 stars5 stars5 stars / 23
November 16, 2004
TABLE OF CONTENTS:
  1. · Using Adobe GoLive CS, Part 3
  2. · Rollovers
  3. · More on rollovers
  4. · Even More on Rollovers
  5. · Photoshop Integration
  6. · ImageReady and Illustrator Integration
  7. · InDesign Integration
  8. · Using Images from the InDesign Package
  9. · Using Cascading Style Sheets
  10. · Creating an Element Style
  11. · Creating a Class Style
  12. · External CSS
  13. · Link Warnings
  14. · Publishing the Site
  15. · Begin Creating

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Using Adobe GoLive CS, Part 3 - Creating a Class Style
(Page 11 of 15 )

Defining a class style is not much different from defining an element style, but unlike an element style, which automatically adheres to every occurrence of a specific HTML tag in a page, a class style needs to be manually applied wherever it is desired. Class style names begin with a . and won't work properly without it. Let's try one. Click the New Class button at the bottom of the CSS Editor and change the name of the style to .bodyclass.

In the Font Properties area, choose White for the Color and Navy for the Back Color and 16px for the type Size. Hold down the Create New Font Family button and choose Trebuchet Set. The preview gives you a very clear idea of how this style will look (see Figure 9.83).

Figure 9.83 The New Font Family pop-up menu. Notice how the CSS Editor gives you a preview of your style as you edit properties.


Note - Whereas clicking the pop-up next to a color well provides a list from which to choose, clicking into the color well opens the Color palette, and clicking on the black triangle in the lower-right corner of the color well opens a temporary Swatches palette.


Now click the Margin and Padding Properties button, and under Padding type 5 into the All field. When you click out of the input field, the attribute will automatically fill in for all four sides (see Figure 9.84).


Note - The CSS Editor uses pixels by default in all the input fields. If you'd like to change to points, picas, inches, ems, percentage, or another unit, click the pop-up next to the field and make your selection.


Figure 9.84 You can define Margin and Padding values for any side, or for all of them. If all sides are to use the same setting, you need to define only the All field and the others will be filled in automatically.

Click the Border and Outline Properties button and make sure that Border is active. Type 2 into the All input field, and choose Lime from the color list and Solid from the border type pop-up (see Figure 9.85). Save your changes and go over to your HTML page. Type the words try it! and select them. In the toolbar, click the Apply CSS Style button. Holding your mouse over the check boxes invokes a style preview.

Moving the mouse across the check boxes allows you to see how the style will look applied as an inline style, a block style, a paragraph style, and so on. Click the inline style box to both apply the style and dismiss the Apply CSS Style window simultaneously, and then preview your page.

Figure 9.85 Add a border to finish off your style.

This chapter is from Teach Yourself Adobe Creative Suite, by Mordy Golding (Sams, 2004, ISBN: 067232752X). Check it out at your favorite bookstore today.

Buy this book now.


blog comments powered by Disqus
WEB AUTHORING ARTICLES

- Top WordPress Plugins for Social Media
- How to Install WordPress on WAMPP
- More of the Best Wordpress Plugins for Comme...
- Top Wordpress Plugins to Fight Spam
- More of the top Drupal modules for SEO
- Top Drupal Modules for SEO
- More Top Wordpress Plugins for SEO
- Website Optimization Tips
- Backup and Restore a Drupal Website and Data...
- 5 Best Web Font Services
- Web Font Embedding Services
- Joomla Site Administration
- Create PHP Pages that Use WordPress Templates
- Top Joomla Extensions for Social Networking
- Drupal Modules for Site Navigation

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 7 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials