SlideShare uma empresa Scribd logo
1 de 9
Baixar para ler offline
Tutorial 5 – Learning CSS

CSS is a web-technology that has been around for quite some time, however, only in recent years has it
become a widely accepted practice for web design. CSS stands for Cascading Style Sheets and it allows
web designers to manage design elements site wide. In the previous activities, we were adding colors
and alignments to specific areas of web pages. Imagine if we ran a company whose main company color
was blue. What if the board of directors got together and changed that color to red? If a web designer
created these pages the normal way of changing each page, we would have to manually go through all
the pages and change the color from blue to red. Sounds pretty tedious…right? This is where CSS
comes in and makes web development really unique. Let’s start this exercise:




As you can see, this is a pretty basic HTML page. The only additional things we have done to this page
are adding a picture and putting the picture as well as some text inside of a div class. This can be done
by selecting the text and selecting “div class” on the insert menu.

Now let’s add some CSS attributes to this page!



Go to File and Select “New…”
Select a CSS document
Once you have selected it don’t make any changes yet (Dreamweaver make this part really easy). Just
simply save it, and know the location where you have saved it at.
Now go back to your main document that you have created.
From your “index.html” page,
Click the “Attach Style Sheet…” button




Now click on the “Browse…” button and select your file.
For this tutorial, we will add this CSS sheet as a link, but feel free to mess around with either setting.
Now click “OK”

As you can now see, the name of your file should be on the right hand side under the CSS panel.

          Now let’s add some properties for our CSS page. Click on the “New CSS rule” button
This window is the gateway to all your CSS development. It gives you the 3 types of definitions in CSS.
As the window describes, the 3 type types of CSS Rules can apply to:

Class – Using this type of CSS will change all tags that fall within a certain section of the HTML code.
Tag – This will change the appearance of any HTML element. For example the <p> element can be
changed to a predefined size or color.
Advanced – Different types of advanced CSS which can include the state of your links (normal, active or
clicked)

For the first example, let’s choose “tag” and from the drop down box, let’s choose the “p” element
You are now brought to another window that will let you alter the different attributes of the <p> tag.
Let’s make the Font Arial the color Red and the Text 18pt . Once you had made these changes, click
“OK” to accept.
Now look at our HTML page! All the different lines of text that had the <p> tag have now been changed
to our specifications. To change the attributes again, you will now see a “p” in the CSS panel
underneath the name of your CSS page. Double click that to make additional changes.




Now let’s go back and make another CSS rule, except this time, we’ll make it a class that we are going to
call “.text” (In these tutorials, we are adding a “.” to the beginning of each class make to make the
differentiation that they are a class in the HTML page) Now click “OK”
Let’s add the following properties:

Font – Courier New, Courier, monspace
Size – 24 pixels
Color – Green (#00FF00)

Click Ok once you have made the changes




WAIT A SEC! Why aren’t my changes made yet? The reason is that your HTML needs to specify what
area of the page we want affected by the new CSS class that we just defined.

If you click the div tag that is holding the text, you will see something really neat: Dreamweaver is giving
you the choices that you can apply. Choose the “text” class and your text will now be changed to meet
the criteria specified earlier.
You can now see that the page has been changed according to what we specified the “.text” class to be!
For the last part of this CSS tutorial, let’s take a look at the Florida TSA image located at the bottom
portion of the page. We know that there are three types of alignment – Left, Center and Right. For the
sake of this example, let’s say that we want to put our image in the area between left and center. It
doesn’t seem that something like this would be possible…but that is not the case with CSS. Let’s do the
following:

Create a new CSS rule
Call the rule: “.picclass”
Once the CSS Rule Definition page comes up, let’s add the following attributes:
On the left side, click on the Box tab and change the “Left Padding” to 100px
Our final page is now complete, based on what we went over in the tutorial, it should look something
like this:




Continue playing with CSS and make your pages look drastically different. The key point about
using CSS is that these attributes can apply to all the pages in a website. So rather than make
changes individually, you can link to a CSS page, and only have to make changes one time
rather than one time per page. Hopefully this tutorial will help you get your feet wet with CSS!

Mais conteúdo relacionado

Mais procurados

How to-use-wordpress
How to-use-wordpressHow to-use-wordpress
How to-use-wordpressJean Monleon
 
INFO3775 Chapter 2 Part 2
INFO3775 Chapter 2 Part 2INFO3775 Chapter 2 Part 2
INFO3775 Chapter 2 Part 2Jeff Byrnes
 
ASP.NET with VB.NET
 ASP.NET with VB.NET ASP.NET with VB.NET
ASP.NET with VB.NETShyam Sir
 
Master page and Theme ASP.NET with VB.NET
Master page and Theme ASP.NET with VB.NETMaster page and Theme ASP.NET with VB.NET
Master page and Theme ASP.NET with VB.NETShyam Sir
 
How to-inline-style-in-reactjs-
How to-inline-style-in-reactjs-How to-inline-style-in-reactjs-
How to-inline-style-in-reactjs-YourBlogCoach1
 
Visual process of using the text code
Visual process of using the text codeVisual process of using the text code
Visual process of using the text codevren88
 
How to edit your wik its
How to edit your wik itsHow to edit your wik its
How to edit your wik itsDexvor tex
 
Sejda.com v pdf
Sejda.com v pdfSejda.com v pdf
Sejda.com v pdfPeter99279
 
Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)Thinkful
 
A complete html and css guidelines for beginners
A complete html and css guidelines for beginnersA complete html and css guidelines for beginners
A complete html and css guidelines for beginnersSurendra kumar
 

Mais procurados (17)

How to-use-wordpress
How to-use-wordpressHow to-use-wordpress
How to-use-wordpress
 
INFO3775 Chapter 2 Part 2
INFO3775 Chapter 2 Part 2INFO3775 Chapter 2 Part 2
INFO3775 Chapter 2 Part 2
 
Css introduction
Css   introductionCss   introduction
Css introduction
 
CSS3 Introduction
CSS3 IntroductionCSS3 Introduction
CSS3 Introduction
 
Css inclusion
Css   inclusionCss   inclusion
Css inclusion
 
ASP.NET with VB.NET
 ASP.NET with VB.NET ASP.NET with VB.NET
ASP.NET with VB.NET
 
Html css
Html cssHtml css
Html css
 
INTRODUCTIONS OF CSS
INTRODUCTIONS OF CSSINTRODUCTIONS OF CSS
INTRODUCTIONS OF CSS
 
Master page and Theme ASP.NET with VB.NET
Master page and Theme ASP.NET with VB.NETMaster page and Theme ASP.NET with VB.NET
Master page and Theme ASP.NET with VB.NET
 
How to-inline-style-in-reactjs-
How to-inline-style-in-reactjs-How to-inline-style-in-reactjs-
How to-inline-style-in-reactjs-
 
Visual process of using the text code
Visual process of using the text codeVisual process of using the text code
Visual process of using the text code
 
How to edit your wik its
How to edit your wik itsHow to edit your wik its
How to edit your wik its
 
Sejda.com v pdf
Sejda.com v pdfSejda.com v pdf
Sejda.com v pdf
 
Style and Selector
Style and SelectorStyle and Selector
Style and Selector
 
Css intro
Css introCss intro
Css intro
 
Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)
 
A complete html and css guidelines for beginners
A complete html and css guidelines for beginnersA complete html and css guidelines for beginners
A complete html and css guidelines for beginners
 

Destaque (7)

Monteiro_WS
Monteiro_WSMonteiro_WS
Monteiro_WS
 
indesign_cs3_scripting_tutorial
indesign_cs3_scripting_tutorialindesign_cs3_scripting_tutorial
indesign_cs3_scripting_tutorial
 
VGEGIS%20Training%20Tutorial
VGEGIS%20Training%20TutorialVGEGIS%20Training%20Tutorial
VGEGIS%20Training%20Tutorial
 
file17749
file17749file17749
file17749
 
Icicles
IciclesIcicles
Icicles
 
e6
e6e6
e6
 
Lab_2_2009
Lab_2_2009Lab_2_2009
Lab_2_2009
 

Semelhante a Tutorial5

Semelhante a Tutorial5 (20)

Intro to CSS Presentation
Intro to CSS PresentationIntro to CSS Presentation
Intro to CSS Presentation
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to css
 
Design and CSS
Design and CSSDesign and CSS
Design and CSS
 
Chapter 12
Chapter 12Chapter 12
Chapter 12
 
Css Founder.com | Cssfounder se
Css Founder.com | Cssfounder seCss Founder.com | Cssfounder se
Css Founder.com | Cssfounder se
 
The CSS Handbook
The CSS HandbookThe CSS Handbook
The CSS Handbook
 
CSS_tutorial_2
CSS_tutorial_2CSS_tutorial_2
CSS_tutorial_2
 
CSS_tutorial_2
CSS_tutorial_2CSS_tutorial_2
CSS_tutorial_2
 
Test revision
Test revisionTest revision
Test revision
 
Webexpration2007 ii
Webexpration2007 iiWebexpration2007 ii
Webexpration2007 ii
 
HTML to CSS Basics Exer 2.pptx
HTML to CSS Basics Exer 2.pptxHTML to CSS Basics Exer 2.pptx
HTML to CSS Basics Exer 2.pptx
 
Tfbyoweb.4.9.17
Tfbyoweb.4.9.17Tfbyoweb.4.9.17
Tfbyoweb.4.9.17
 
Tfbyoweb.4.9.17
Tfbyoweb.4.9.17Tfbyoweb.4.9.17
Tfbyoweb.4.9.17
 
Customizing Your WordPress Theme Using Firebug and Basic CSS
Customizing Your WordPress Theme Using Firebug and Basic CSSCustomizing Your WordPress Theme Using Firebug and Basic CSS
Customizing Your WordPress Theme Using Firebug and Basic CSS
 
Using class suffixes
Using class suffixesUsing class suffixes
Using class suffixes
 
Presentation 1 [autosaved]
Presentation 1 [autosaved]Presentation 1 [autosaved]
Presentation 1 [autosaved]
 
XPages OneUIv2 Theme Deep Dive
XPages OneUIv2 Theme Deep DiveXPages OneUIv2 Theme Deep Dive
XPages OneUIv2 Theme Deep Dive
 
Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS Tricks
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
 
E commerce-website
E commerce-websiteE commerce-website
E commerce-website
 

Mais de 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 – INS0tutorialsruby
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269tutorialsruby
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269tutorialsruby
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008tutorialsruby
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008tutorialsruby
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheetstutorialsruby
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheetstutorialsruby
 

Mais de 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" />
 
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>
 
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>
 
&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" />
 
&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" />
 
Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0
 
xhtml_basics
xhtml_basicsxhtml_basics
xhtml_basics
 
xhtml_basics
xhtml_basicsxhtml_basics
xhtml_basics
 
xhtml-documentation
xhtml-documentationxhtml-documentation
xhtml-documentation
 
xhtml-documentation
xhtml-documentationxhtml-documentation
xhtml-documentation
 
CSS
CSSCSS
CSS
 
CSS
CSSCSS
CSS
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
 

Último

"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 

Último (20)

"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 

Tutorial5

  • 1. Tutorial 5 – Learning CSS CSS is a web-technology that has been around for quite some time, however, only in recent years has it become a widely accepted practice for web design. CSS stands for Cascading Style Sheets and it allows web designers to manage design elements site wide. In the previous activities, we were adding colors and alignments to specific areas of web pages. Imagine if we ran a company whose main company color was blue. What if the board of directors got together and changed that color to red? If a web designer created these pages the normal way of changing each page, we would have to manually go through all the pages and change the color from blue to red. Sounds pretty tedious…right? This is where CSS comes in and makes web development really unique. Let’s start this exercise: As you can see, this is a pretty basic HTML page. The only additional things we have done to this page are adding a picture and putting the picture as well as some text inside of a div class. This can be done by selecting the text and selecting “div class” on the insert menu. Now let’s add some CSS attributes to this page! Go to File and Select “New…” Select a CSS document Once you have selected it don’t make any changes yet (Dreamweaver make this part really easy). Just simply save it, and know the location where you have saved it at. Now go back to your main document that you have created.
  • 2. From your “index.html” page, Click the “Attach Style Sheet…” button Now click on the “Browse…” button and select your file. For this tutorial, we will add this CSS sheet as a link, but feel free to mess around with either setting. Now click “OK” As you can now see, the name of your file should be on the right hand side under the CSS panel. Now let’s add some properties for our CSS page. Click on the “New CSS rule” button
  • 3. This window is the gateway to all your CSS development. It gives you the 3 types of definitions in CSS. As the window describes, the 3 type types of CSS Rules can apply to: Class – Using this type of CSS will change all tags that fall within a certain section of the HTML code. Tag – This will change the appearance of any HTML element. For example the <p> element can be changed to a predefined size or color. Advanced – Different types of advanced CSS which can include the state of your links (normal, active or clicked) For the first example, let’s choose “tag” and from the drop down box, let’s choose the “p” element
  • 4. You are now brought to another window that will let you alter the different attributes of the <p> tag. Let’s make the Font Arial the color Red and the Text 18pt . Once you had made these changes, click “OK” to accept.
  • 5. Now look at our HTML page! All the different lines of text that had the <p> tag have now been changed to our specifications. To change the attributes again, you will now see a “p” in the CSS panel underneath the name of your CSS page. Double click that to make additional changes. Now let’s go back and make another CSS rule, except this time, we’ll make it a class that we are going to call “.text” (In these tutorials, we are adding a “.” to the beginning of each class make to make the differentiation that they are a class in the HTML page) Now click “OK”
  • 6. Let’s add the following properties: Font – Courier New, Courier, monspace Size – 24 pixels Color – Green (#00FF00) Click Ok once you have made the changes WAIT A SEC! Why aren’t my changes made yet? The reason is that your HTML needs to specify what area of the page we want affected by the new CSS class that we just defined. If you click the div tag that is holding the text, you will see something really neat: Dreamweaver is giving you the choices that you can apply. Choose the “text” class and your text will now be changed to meet the criteria specified earlier.
  • 7. You can now see that the page has been changed according to what we specified the “.text” class to be!
  • 8. For the last part of this CSS tutorial, let’s take a look at the Florida TSA image located at the bottom portion of the page. We know that there are three types of alignment – Left, Center and Right. For the sake of this example, let’s say that we want to put our image in the area between left and center. It doesn’t seem that something like this would be possible…but that is not the case with CSS. Let’s do the following: Create a new CSS rule Call the rule: “.picclass” Once the CSS Rule Definition page comes up, let’s add the following attributes: On the left side, click on the Box tab and change the “Left Padding” to 100px
  • 9. Our final page is now complete, based on what we went over in the tutorial, it should look something like this: Continue playing with CSS and make your pages look drastically different. The key point about using CSS is that these attributes can apply to all the pages in a website. So rather than make changes individually, you can link to a CSS page, and only have to make changes one time rather than one time per page. Hopefully this tutorial will help you get your feet wet with CSS!