Cascading Style Sheets (CSS) Styles are very useful for maintaining a web site since its appearance (controlled by properties of HTML tags) can be updated from just one file. They are also used to enhance your site’s look. In this article you will learn how to make cool text effects using CSS Styles using Macromedia Dreamweaver.
1. Text Links Rollover
This effect is got by using the hover property for the <a> tag or any named css style used for links. For defining the default text link rollover throughout the site you can set the a:hover style. Open your site in Dreamweaver and do the following:
2. Text Case Setting
In case you want a style that always displays in upper or lower case no matter how the text is typed you can set the Case property to capitalize, uppercase or lowercase in the Category:Type text specifications.
3. Text Spacing
To make the text appear neatly spaced on your site and for easy readability you can set the Line Height property in the Category:Type text specifications.
Tip: Set the line height to approximately 1.5 (one and a half) times the font size for it to look smart. The content in our site has a font size of 11 and line height of 16.
4. Line-through Effect
If you are selling products on your site you might want to give a discount and show the old and new prices (example: $100 $50). To give a strike through effect for the old price you can make a style with the Line-through property in the Category:Type text specifications ticked.
Mar 02
This entry was posted on Sunday, March 2nd, 2008 at 7:10 pmand is filed under Web Design Tips. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Related Post
2 Comments Cool Text Effects Using CSS Styles in Dreamweaver
Tips for a fast loading web site | WebEternity Web Design & Internet Web Solutions UK
March 2nd, 2008 at 7:11 pm
1[…] Use Text Links instead of graphic buttons: basically try to make use of HTML as much as possible. Use CSS Styles for text links to make them as attractive as buttons. Read our CSS Styles tutorial […]
Web Design Explained | WebEternity Web Design & Internet Web Solutions UK
March 6th, 2008 at 10:10 pm
2[…] with W3C standards prompted a widespread acceptance and usage of XHTML/XML in conjunction with Cascading Style Sheets (CSS) to position and manipulate web page elements and objects. Latest standards and proposals aim […]
RSS feed for comments on this post · TrackBack URI
Leave a Reply