Working with CSS in Dreamweaver MX 2004

by Jeremy Reis on Wednesday, November 29, 2006

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 Sheets

The 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:

  1. On your web page, highlight the text whose appearance you want to change.

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.

  1. Click the CSS Styles tab in the Design panel group.
  2. At the bottom of the CSS Styles panel, click the New CSS Style button.

The New CSS Style dialog opens.

  1. Make sure the Tag option button is selected.
  2. If necessary, choose the tag whose style you want to change from the Tag drop-down menu.

Tip:

If you selected a tag from the page (as described above), it should already be selected in Tag field.

  1. You can choose to change the style for the entire site, or for only the current web page. For consistency, you generally want to define the styles of common tags for the entire web site; that way, all heading and body text appears the same on all the pages of your site. For Define in, select (New Style Sheet File). This creates a new style sheet that will contain all the style definitions for your web site.

Tip:

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)

Page 32 of 60

Comments

 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
first web site
howdoi make a web site
250 out of 454 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
Need this programm for me
Thanks
213 out of 394 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
my comment
it is very helpful for my groath.thanks sir.
195 out of 360 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
Backgraound image
How do i make a background image in my web page with out it being repeated over and over again - Lydia
181 out of 323 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
TANX ALOT...
TANX ALOT... I'LL TRY THIS TUTORIAL SO THAT I CAN BE PRO IN DREAMWEAVER,,,, BUT IS THERE IS A VIDEO TUTORIAL... IT;S WILL MAKE ME EASY... LEARN WHILE WATCHING THE TUTORIAL... :)
170 out of 305 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
wasana
very good
149 out of 299 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
Thanx
It really helps me very much thank you once again
145 out of 272 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
comment
very good
174 out of 328 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
...
nice
141 out of 260 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
very nice
very nice
143 out of 267 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
coding
how make transfer for s students which score 150 above to choice of school
137 out of 249 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
camron
computer wooter hooter like gooder scooby dooby do where r u we need help from u dipset
145 out of 247 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
O_o
dreamweaver is so easy now! thank you so much leranthat.com, you really taught me alot!
132 out of 240 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
cool
this is awesome
116 out of 213 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
silas
wow, i love you (L)
120 out of 211 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
hes
my classmate
111 out of 199 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
ELMO
yes, i know, im gonna get you
muhahaha
115 out of 204 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
Ruler OF All
Shuffling is for fat crawling bags of phlegm
108 out of 201 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
view
i found all the articles in learthat very informative but it lacks some emphasis on using databases
91 out of 148 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
cool n keep it up
whateva you guys do is owesome,coz it helps the under previledged.thanx
77 out of 141 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
Thanx
Thanx Macromedia Dreamweaver becomes easy for me
Thank u very much once again
73 out of 133 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
bravo!
this is unique information for web designers
46 out of 81 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
thiensu2009
ddsfs
26 out of 48 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
For Help
Thanks to learn to my First user
23 out of 49 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
MR KYNOCH
HELLO NATHANIEL JONES
23 out of 35 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
I AM SUPA MAN
NOT GAY
18 out of 34 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
Advertising
Your all going to HELL!
17 out of 34 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
I am cool
19 out of 37 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
HOT CHICK FROM AMERICA
YEH BABAE!!!!!!!!!!!!!!PUSH IT IN!!!!!!!!PENETRATE ME!!!!!!!!!!!!!!!!!
21 out of 36 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
BORRIS
HELLO JONNY
17 out of 35 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
Great tutorial!
Finally getting started with Dreamweaver. Discarded the big books, this is lots better! Thanks!!
14 out of 24 people found this comment informative.

Add a Comment to This Article

Anonymous (Please Login to Post With Your Account)

      
HTML not permitted, some code allowed in [brackets]:
[b]bold[/b] , [i]italicized[/i], [br] line break, other formatting...


Code Image - Please contact webmaster if you have problems seeing this image code Load New Code
Please enter the code above
 
Please submit your comment only once, some comments may be reviewed by moderators
That Network: Interactive Internet Publishing NetworkJerm.com: entrepreneurship blogDefineThat.com: free technical definitions define wordstutorialguru.com: free tutorialsExamPractice.com: free certification news and practice exams GiveThat.com: free gift ideas, birthday, Christmas, holidaysExplorestartups.com: find free business plans and business ideas  Romancetips.com: free romantic tips, advice, dating, date ideas, free romancePublishondemand.net: free publish on demand print on demand pod comparisonmytutorials.com: collaborative write your own tutorials