SlideShare a Scribd company logo
Cascading Style Sheets (CSS) and Dreamweaver

Outline
About Cascading Style Sheets ............................................................................................................................................................................ 1
   Types of style sheets ...................................................................................................................................................................................... 1
Steps to create an external style sheet .............................................................................................................................................................. 2
   Open CSS styles tab ........................................................................................................................................................................................ 2
   Create style sheet ........................................................................................................................................................................................... 2
Save your stylesheet........................................................................................................................................................................................... 3
Link a style sheet to an HTML page.................................................................................................................................................................... 3
Experiment with the CSS features on your new document ............................................................................................................................... 4
So what if you want to add to or edit the existing styles provided? ................................................................................................................. 5
   Edit Tag styles ................................................................................................................................................................................................. 5
   Other styles .................................................................................................................................................................................................... 6
Understanding Styles and Making Additions ..................................................................................................................................................... 6
   Adding block tag styles ................................................................................................................................................................................... 6
   Adding class styles .......................................................................................................................................................................................... 6
   Deleting styles ................................................................................................................................................................................................ 7
Additional Resources .......................................................................................................................................................................................... 7

About Cascading Style Sheets
Cascading Style Sheets (CSS) keep style separate from text and define how things appear in a browser. Example, you can use CSS to
define how all Heading 1 elements look on all pages in your site.

Types of style sheets
     1) External style sheets – by far the most powerful way to use CSS. You define styles in a text file saved with a .css extension. Then
        link your web pages to that style sheet.
            • Use external style sheets when you want a style to be global (applied to multiple pages in a website). Then when you
                revise a style in an external style sheet, the change is reflected on every page linked to the style sheet.
     2) Internal style sheet – Styles are defined in the <head> section of an individual webpage. Internal styles apply only to the page
        they are defined in. They may be useful if you wish to make exceptions to your site’s style rules for just one page.




12/23/2008                                                                                                                                                                                         Page 1
Copyright, Office of Technology, Bloomsburg University
Cascading Style Sheets (CSS) and Dreamweaver

Steps to create an external style sheet
Open CSS styles tab
In Dreamweaver, click Window along the top menu bar > then choose CSS Styles.

Create style sheet
To get used to how CSS style sheets work, the easiest way to proceed is to apply an already created sheet in Dreamweaver.

Choose File > New > Page from Sample > CSS Style Sheet.

For this exercise click Text: Verdana and then press the Create button near the bottom of the window.




12/23/2008                                                                                                                  Page 2
Copyright, Office of Technology, Bloomsburg University
Cascading Style Sheets (CSS) and Dreamweaver
The following is what populates the screen once you pick Text: Verdana.


                                                                                                              Note the tag is written first
                                                                                                              followed by a bracket {
                                                                                                              Next there are specific
                                                                                                           Save your defined
                                                                                                              properties
                                                                                                                           stylesheet
                                                                                                           Click Filea closing bracket }
                                                                                                              Lastly – Save As and save
                                                                                                           your style sheet. The most
                                                                                                           common naming to delete is
                                                                                                              Be careful not convention
                                                                                                           style.css or punctuation or the
                                                                                                              brackets
                                                                                                              style will not work correctly!




Link a style sheet to an HTML page
To see the new stylesheet in action, create a new basic HTML page.
File > New > Blank > HTML and Create.

In the Title area type Test of CSS

To link a CSS sheet to your new page, look in the CSS panel on the right side of the Dreamweaver screen.
If not available click Window – CSS Styles.




Click the Attach Style Sheet icon.




12/23/2008                                                                                                                     Page 3
Copyright, Office of Technology, Bloomsburg University
Cascading Style Sheets (CSS) and Dreamweaver
A window appears asking if you wish to link or import, either would work. However, most web designers choose the link option.
Click the Browse button to select your new style sheet. Choose Link and then OK.




You have now linked a style sheet to an HTML document. Now the fun begins!

Experiment with the CSS features on your new document
Apply heading1, heading2 and heading3 tags to your new document to see how they appear.
Type a line – “this is a sample of the small text option.” Highlight the word small and select .small from the Styles menu.
Type “here’s a sample of xbig styled text and use the .xbig style
Type “here’s text surrounded by a box style” and use the .box1 or .box2 style.




12/23/2008                                                                                                                    Page 4
Copyright, Office of Technology, Bloomsburg University
Cascading Style Sheets (CSS) and Dreamweaver




So what if you want to add to or edit the existing styles provided?
Edit Tag styles
To edit a tag style, click on it in the CSS styles panel. These are the main items such as body, td, th, those items without a period (.) in
front of them (such as the .bodystyle item). You will see all the Properties for the style directly below the item you selected. Example:
Click on Body tag. If you wanted to apply a different background color, select that under background-color. Click in the box next to that
item to use the color picker. You could apply many items this way. As you apply new options they will be automatically written in your
css stylesheet. You will need to save both files to keep your new changes.




                                                  Note: You may also select the tag (i.e., body),
                                                  and then click the Pencil icon which will open a
                                                  window to apply changes. Either way is fine.



12/23/2008                                                                                                                       Page 5
Copyright, Office of Technology, Bloomsburg University
Cascading Style Sheets (CSS) and Dreamweaver
Other styles
To edit the other styles, those with a period (.) in front of them (i.e., .bodystyle), select the item and edit the properties as described
above.

Understanding Styles and Making Additions
When you use a predefined style choice in
Dreamweaver, you are offered regular tags plus
style choices. There are many, many other things
you can do with CSS. More so than we have time
to go through in this tutorial.




Adding block tag styles
In the CSS properties area, click the + icon to add a new rule.



                                                         Select Tag radio button.
                                                         Select the tag you wish to define by using the drop down arrow.
                                                         The Define In area should have your active style sheet listed.
                                                         Click OK.
Add properties as you desire.


Adding class styles
In the CSS properties area, click the + icon to add a new rule.




12/23/2008                                                                                                                          Page 6
Copyright, Office of Technology, Bloomsburg University
Cascading Style Sheets (CSS) and Dreamweaver


                                                         Select Class radio button.
                                                         Create a name for the style. Precede with a period (.) – example:
                                                         .redtext
                                                         The Define In area should have your active style sheet listed.
                                                         Click OK.

Add properties as you desire.

Deleting styles
Should you wish to delete a style, click on the item in the Styles properties
area and click the trash can icon.




Additional Resources
This tutorial provides a very basic overview of CSS. There is so much more that can be done using CSS. Two recommended resources:
    • Book – Stylin’ with CSS by Charles Wyke-Smith
    • W3 Schools Online CSS Tutorials - http://www.w3schools.com/css/default.asp




12/23/2008                                                                                                                   Page 7
Copyright, Office of Technology, Bloomsburg University

More Related Content

Similar to CSS (20)

TIBCO General Interface - CSS Guide
TIBCO General Interface - CSS GuideTIBCO General Interface - CSS Guide
TIBCO General Interface - CSS Guide
Rohan Chandane
 
CSS_tutorial_2
CSS_tutorial_2CSS_tutorial_2
CSS_tutorial_2
tutorialsruby
 
CSS_tutorial_2
CSS_tutorial_2CSS_tutorial_2
CSS_tutorial_2
tutorialsruby
 
Building a Silverstripe Page Elements template for Web designers
Building a Silverstripe Page Elements template for Web designersBuilding a Silverstripe Page Elements template for Web designers
Building a Silverstripe Page Elements template for Web designers
icecaster
 
Css training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsCss training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentials
QA TrainingHub
 
Kajol52
Kajol52Kajol52
Kajol52
kajoltripathi3
 
Using Templates And Cascading Style Sheets10
Using Templates And Cascading Style Sheets10Using Templates And Cascading Style Sheets10
Using Templates And Cascading Style Sheets10
Sutinder Mann
 
Using Stylesheets To Design A Web Site In Dreamweaver Mx 2004
Using Stylesheets To Design A Web Site In Dreamweaver Mx 2004Using Stylesheets To Design A Web Site In Dreamweaver Mx 2004
Using Stylesheets To Design A Web Site In Dreamweaver Mx 2004
brighteyes
 
GRADE 7 COMPUTER CSSSSSSSSSSSSSSSSS.pptx
GRADE 7 COMPUTER CSSSSSSSSSSSSSSSSS.pptxGRADE 7 COMPUTER CSSSSSSSSSSSSSSSSS.pptx
GRADE 7 COMPUTER CSSSSSSSSSSSSSSSSS.pptx
liwrejhay
 
CSS Training in Bangalore
CSS Training in BangaloreCSS Training in Bangalore
CSS Training in Bangalore
rajkamal560066
 
Full
FullFull
Full
sanjaykhan33
 
Dreamweaver Notes
Dreamweaver NotesDreamweaver Notes
Dreamweaver Notes
smasi27
 
Themes
ThemesThemes
Themes
Nihar Dodiya
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
Singsys Pte Ltd
 
CSS 101
CSS 101CSS 101
CSS 101
dunclair
 
Website development using dreamweaver
Website development using dreamweaverWebsite development using dreamweaver
Website development using dreamweaver
Tekblink Jeeten
 
Pfnp slides
Pfnp slidesPfnp slides
Pfnp slides
William Myers
 
Using Cascading Style Sheets2
Using Cascading Style Sheets2Using Cascading Style Sheets2
Using Cascading Style Sheets2
Sutinder Mann
 
Css Founder.com | Cssfounder se
Css Founder.com | Cssfounder seCss Founder.com | Cssfounder se
Css Founder.com | Cssfounder se
Css Founder
 
CSS_tutorial_1
CSS_tutorial_1CSS_tutorial_1
CSS_tutorial_1
tutorialsruby
 
TIBCO General Interface - CSS Guide
TIBCO General Interface - CSS GuideTIBCO General Interface - CSS Guide
TIBCO General Interface - CSS Guide
Rohan Chandane
 
Building a Silverstripe Page Elements template for Web designers
Building a Silverstripe Page Elements template for Web designersBuilding a Silverstripe Page Elements template for Web designers
Building a Silverstripe Page Elements template for Web designers
icecaster
 
Css training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsCss training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentials
QA TrainingHub
 
Using Templates And Cascading Style Sheets10
Using Templates And Cascading Style Sheets10Using Templates And Cascading Style Sheets10
Using Templates And Cascading Style Sheets10
Sutinder Mann
 
Using Stylesheets To Design A Web Site In Dreamweaver Mx 2004
Using Stylesheets To Design A Web Site In Dreamweaver Mx 2004Using Stylesheets To Design A Web Site In Dreamweaver Mx 2004
Using Stylesheets To Design A Web Site In Dreamweaver Mx 2004
brighteyes
 
GRADE 7 COMPUTER CSSSSSSSSSSSSSSSSS.pptx
GRADE 7 COMPUTER CSSSSSSSSSSSSSSSSS.pptxGRADE 7 COMPUTER CSSSSSSSSSSSSSSSSS.pptx
GRADE 7 COMPUTER CSSSSSSSSSSSSSSSSS.pptx
liwrejhay
 
CSS Training in Bangalore
CSS Training in BangaloreCSS Training in Bangalore
CSS Training in Bangalore
rajkamal560066
 
Dreamweaver Notes
Dreamweaver NotesDreamweaver Notes
Dreamweaver Notes
smasi27
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
Singsys Pte Ltd
 
Website development using dreamweaver
Website development using dreamweaverWebsite development using dreamweaver
Website development using dreamweaver
Tekblink Jeeten
 
Using Cascading Style Sheets2
Using Cascading Style Sheets2Using Cascading Style Sheets2
Using Cascading Style Sheets2
Sutinder Mann
 
Css Founder.com | Cssfounder se
Css Founder.com | Cssfounder seCss Founder.com | Cssfounder se
Css Founder.com | Cssfounder se
Css Founder
 

More from tutorialsruby (20)

&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />
tutorialsruby
 
TopStyle Help &amp; &lt;b>Tutorial&lt;/b>
TopStyle Help &amp; &lt;b>Tutorial&lt;/b>TopStyle Help &amp; &lt;b>Tutorial&lt;/b>
TopStyle Help &amp; &lt;b>Tutorial&lt;/b>
tutorialsruby
 
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>
tutorialsruby
 
&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />
tutorialsruby
 
&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />
tutorialsruby
 
Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0
tutorialsruby
 
xhtml_basics
xhtml_basicsxhtml_basics
xhtml_basics
tutorialsruby
 
xhtml_basics
xhtml_basicsxhtml_basics
xhtml_basics
tutorialsruby
 
xhtml-documentation
xhtml-documentationxhtml-documentation
xhtml-documentation
tutorialsruby
 
xhtml-documentation
xhtml-documentationxhtml-documentation
xhtml-documentation
tutorialsruby
 
CSS
CSSCSS
CSS
tutorialsruby
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
tutorialsruby
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
tutorialsruby
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
tutorialsruby
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
tutorialsruby
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
tutorialsruby
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
tutorialsruby
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
tutorialsruby
 
Winter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20JavascriptWinter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20Javascript
tutorialsruby
 
Winter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20JavascriptWinter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20Javascript
tutorialsruby
 
&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />
tutorialsruby
 
TopStyle Help &amp; &lt;b>Tutorial&lt;/b>
TopStyle Help &amp; &lt;b>Tutorial&lt;/b>TopStyle Help &amp; &lt;b>Tutorial&lt;/b>
TopStyle Help &amp; &lt;b>Tutorial&lt;/b>
tutorialsruby
 
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>
tutorialsruby
 
&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />
tutorialsruby
 
&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />
tutorialsruby
 
Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0
tutorialsruby
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
tutorialsruby
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
tutorialsruby
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
tutorialsruby
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
tutorialsruby
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
tutorialsruby
 
Winter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20JavascriptWinter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20Javascript
tutorialsruby
 
Winter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20JavascriptWinter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20Javascript
tutorialsruby
 

Recently uploaded (20)

Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 

CSS

  • 1. Cascading Style Sheets (CSS) and Dreamweaver Outline About Cascading Style Sheets ............................................................................................................................................................................ 1 Types of style sheets ...................................................................................................................................................................................... 1 Steps to create an external style sheet .............................................................................................................................................................. 2 Open CSS styles tab ........................................................................................................................................................................................ 2 Create style sheet ........................................................................................................................................................................................... 2 Save your stylesheet........................................................................................................................................................................................... 3 Link a style sheet to an HTML page.................................................................................................................................................................... 3 Experiment with the CSS features on your new document ............................................................................................................................... 4 So what if you want to add to or edit the existing styles provided? ................................................................................................................. 5 Edit Tag styles ................................................................................................................................................................................................. 5 Other styles .................................................................................................................................................................................................... 6 Understanding Styles and Making Additions ..................................................................................................................................................... 6 Adding block tag styles ................................................................................................................................................................................... 6 Adding class styles .......................................................................................................................................................................................... 6 Deleting styles ................................................................................................................................................................................................ 7 Additional Resources .......................................................................................................................................................................................... 7 About Cascading Style Sheets Cascading Style Sheets (CSS) keep style separate from text and define how things appear in a browser. Example, you can use CSS to define how all Heading 1 elements look on all pages in your site. Types of style sheets 1) External style sheets – by far the most powerful way to use CSS. You define styles in a text file saved with a .css extension. Then link your web pages to that style sheet. • Use external style sheets when you want a style to be global (applied to multiple pages in a website). Then when you revise a style in an external style sheet, the change is reflected on every page linked to the style sheet. 2) Internal style sheet – Styles are defined in the <head> section of an individual webpage. Internal styles apply only to the page they are defined in. They may be useful if you wish to make exceptions to your site’s style rules for just one page. 12/23/2008 Page 1 Copyright, Office of Technology, Bloomsburg University
  • 2. Cascading Style Sheets (CSS) and Dreamweaver Steps to create an external style sheet Open CSS styles tab In Dreamweaver, click Window along the top menu bar > then choose CSS Styles. Create style sheet To get used to how CSS style sheets work, the easiest way to proceed is to apply an already created sheet in Dreamweaver. Choose File > New > Page from Sample > CSS Style Sheet. For this exercise click Text: Verdana and then press the Create button near the bottom of the window. 12/23/2008 Page 2 Copyright, Office of Technology, Bloomsburg University
  • 3. Cascading Style Sheets (CSS) and Dreamweaver The following is what populates the screen once you pick Text: Verdana. Note the tag is written first followed by a bracket { Next there are specific Save your defined properties stylesheet Click Filea closing bracket } Lastly – Save As and save your style sheet. The most common naming to delete is Be careful not convention style.css or punctuation or the brackets style will not work correctly! Link a style sheet to an HTML page To see the new stylesheet in action, create a new basic HTML page. File > New > Blank > HTML and Create. In the Title area type Test of CSS To link a CSS sheet to your new page, look in the CSS panel on the right side of the Dreamweaver screen. If not available click Window – CSS Styles. Click the Attach Style Sheet icon. 12/23/2008 Page 3 Copyright, Office of Technology, Bloomsburg University
  • 4. Cascading Style Sheets (CSS) and Dreamweaver A window appears asking if you wish to link or import, either would work. However, most web designers choose the link option. Click the Browse button to select your new style sheet. Choose Link and then OK. You have now linked a style sheet to an HTML document. Now the fun begins! Experiment with the CSS features on your new document Apply heading1, heading2 and heading3 tags to your new document to see how they appear. Type a line – “this is a sample of the small text option.” Highlight the word small and select .small from the Styles menu. Type “here’s a sample of xbig styled text and use the .xbig style Type “here’s text surrounded by a box style” and use the .box1 or .box2 style. 12/23/2008 Page 4 Copyright, Office of Technology, Bloomsburg University
  • 5. Cascading Style Sheets (CSS) and Dreamweaver So what if you want to add to or edit the existing styles provided? Edit Tag styles To edit a tag style, click on it in the CSS styles panel. These are the main items such as body, td, th, those items without a period (.) in front of them (such as the .bodystyle item). You will see all the Properties for the style directly below the item you selected. Example: Click on Body tag. If you wanted to apply a different background color, select that under background-color. Click in the box next to that item to use the color picker. You could apply many items this way. As you apply new options they will be automatically written in your css stylesheet. You will need to save both files to keep your new changes. Note: You may also select the tag (i.e., body), and then click the Pencil icon which will open a window to apply changes. Either way is fine. 12/23/2008 Page 5 Copyright, Office of Technology, Bloomsburg University
  • 6. Cascading Style Sheets (CSS) and Dreamweaver Other styles To edit the other styles, those with a period (.) in front of them (i.e., .bodystyle), select the item and edit the properties as described above. Understanding Styles and Making Additions When you use a predefined style choice in Dreamweaver, you are offered regular tags plus style choices. There are many, many other things you can do with CSS. More so than we have time to go through in this tutorial. Adding block tag styles In the CSS properties area, click the + icon to add a new rule. Select Tag radio button. Select the tag you wish to define by using the drop down arrow. The Define In area should have your active style sheet listed. Click OK. Add properties as you desire. Adding class styles In the CSS properties area, click the + icon to add a new rule. 12/23/2008 Page 6 Copyright, Office of Technology, Bloomsburg University
  • 7. Cascading Style Sheets (CSS) and Dreamweaver Select Class radio button. Create a name for the style. Precede with a period (.) – example: .redtext The Define In area should have your active style sheet listed. Click OK. Add properties as you desire. Deleting styles Should you wish to delete a style, click on the item in the Styles properties area and click the trash can icon. Additional Resources This tutorial provides a very basic overview of CSS. There is so much more that can be done using CSS. Two recommended resources: • Book – Stylin’ with CSS by Charles Wyke-Smith • W3 Schools Online CSS Tutorials - http://www.w3schools.com/css/default.asp 12/23/2008 Page 7 Copyright, Office of Technology, Bloomsburg University