This document provides an introduction to CSS (Cascading Style Sheets) and covers several key concepts:
- It explains the basic structure of a CSS rule consisting of a selector, property, and value.
- It describes the three main types of selectors: type selectors, class selectors, and ID selectors.
- It demonstrates how to style elements using these different selector types with examples.
- Additional CSS concepts covered include inheritance, the cascade, specificity, and various common properties for styling text, backgrounds, links and more.
This is the CSS Tutorial for Beginners that teach the basics of CSS. This tutorial will show the basic structure of a CSS style and will show 3 different methods to apply styles.
Basic information about how DIVs react to certain conditions in HTML. This presentation is used as a part of a web design course at the UC Berkeley journalism school.
Open Source and Open Data in the Age of the CloudTim O'Reilly
Another of my "State of the Internet Operating System" talks, this one given at the MySQL User Conference on April 14, 2010. A bit more of a focus on open data.
Tutorial sobre CSS, imagen de fondo, color de fondo, Aprende HTML con mi libro Aprende HTML efectivo.
http://amzn.to/16S6jMV
http://bit.ly/GM2DQM
http://bit.ly/HkF41K
http://bit.ly/1k1xurR
This is the CSS Tutorial for Beginners that teach the basics of CSS. This tutorial will show the basic structure of a CSS style and will show 3 different methods to apply styles.
Basic information about how DIVs react to certain conditions in HTML. This presentation is used as a part of a web design course at the UC Berkeley journalism school.
Open Source and Open Data in the Age of the CloudTim O'Reilly
Another of my "State of the Internet Operating System" talks, this one given at the MySQL User Conference on April 14, 2010. A bit more of a focus on open data.
Tutorial sobre CSS, imagen de fondo, color de fondo, Aprende HTML con mi libro Aprende HTML efectivo.
http://amzn.to/16S6jMV
http://bit.ly/GM2DQM
http://bit.ly/HkF41K
http://bit.ly/1k1xurR
When it comes to CSS, the "sanctity" of the Separation of Concerns principle (SoC) has lead us to accept bloat, obsolescence, redundancy, poor caching, and more. We're introducing a new CSS architecture that we called "Atomic CSS". It challenges best practices to address many of these common issues.
HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML came in 1999. The web has changed a lot since then. HTML5 is still a work in progress. However, most modern browsers have some HTML5 support.
HTML5 is a cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG).
WHATWG was working with web forms and applications, and W3C was working with XHTML 2.0. In 2006, they decided to cooperate and create a new version of HTML.
Presented as part of a panel discussion on "Blogs, RSS, wikis, podcasts and social tagging: What's a communicator to do?" for the Halton Peel Communications Association, October 23rd, 2007. Not so much a technical discussion as trying to impart an understanding of why you would want to free your information via a channel such as RSS.
Normal Labour/ Stages of Labour/ Mechanism of LabourWasim Ak
Normal labor is also termed spontaneous labor, defined as the natural physiological process through which the fetus, placenta, and membranes are expelled from the uterus through the birth canal at term (37 to 42 weeks
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
A workshop hosted by the South African Journal of Science aimed at postgraduate students and early career researchers with little or no experience in writing and publishing journal articles.
Safalta Digital marketing institute in Noida, provide complete applications that encompass a huge range of virtual advertising and marketing additives, which includes search engine optimization, virtual communication advertising, pay-per-click on marketing, content material advertising, internet analytics, and greater. These university courses are designed for students who possess a comprehensive understanding of virtual marketing strategies and attributes.Safalta Digital Marketing Institute in Noida is a first choice for young individuals or students who are looking to start their careers in the field of digital advertising. The institute gives specialized courses designed and certification.
for beginners, providing thorough training in areas such as SEO, digital communication marketing, and PPC training in Noida. After finishing the program, students receive the certifications recognised by top different universitie, setting a strong foundation for a successful career in digital marketing.
How to Build a Module in Odoo 17 Using the Scaffold MethodCeline George
Odoo provides an option for creating a module by using a single line command. By using this command the user can make a whole structure of a module. It is very easy for a beginner to make a module. There is no need to make each file manually. This slide will show how to create a module using the scaffold method.
it describes the bony anatomy including the femoral head , acetabulum, labrum . also discusses the capsule , ligaments . muscle that act on the hip joint and the range of motion are outlined. factors affecting hip joint stability and weight transmission through the joint are summarized.
Executive Directors Chat Leveraging AI for Diversity, Equity, and InclusionTechSoup
Let’s explore the intersection of technology and equity in the final session of our DEI series. Discover how AI tools, like ChatGPT, can be used to support and enhance your nonprofit's DEI initiatives. Participants will gain insights into practical AI applications and get tips for leveraging technology to advance their DEI goals.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
A review of the growth of the Israel Genealogy Research Association Database Collection for the last 12 months. Our collection is now passed the 3 million mark and still growing. See which archives have contributed the most. See the different types of records we have, and which years have had records added. You can also see what we have for the future.
3. Parts of a CSS rule
h2 {
color: #000000;
}
SELECTOR
4. Parts of a CSS rule
h2 {
color: #000000;
}
CURLY BRACKETS
5. Parts of a CSS rule
h2 {
color: #000000;
}
PROPERTY
6. Parts of a CSS rule
h2 {
color: #000000;
}
VALUE
7. Parts of a CSS rule
h2 {
color: #000000;
}
START WITH SELECTOR
8. Three Kinds of Selectors
TYPE SELECTORS CLASS SELECTORS ID SELECTORS
div .headlines #container
p .paragraphs #first-‐article
h2 .bylines #footer
strong .summary #sidebar
9. Type Selectors
<body>
h2 { <div id=“container”>
<h2 class=“headline”>Hello World</h2>
font-style: bold;
<p class=“byline”>By Jeremy Rue.</p>
}
<p>In todayʼs news, a class at UC Berkeley
learned the importance of CSS in designing
and building webpages.</p>
p{ <div id=“sidebar”>
<h2>Side Bar Story</h2>
<p class=“byline”>By John Doe.</p>
font-family: Helvetica; <p>This is a related story.</p>
</div>
}
</div>
</body>
10. Type Selectors
<body>
h2 { <div id=“container”>
<h2 class=“headline”>Hello World</h2>
font-style: bold;
<p class=“byline”>By Jeremy Rue.</p>
}
<p>In todayʼs news, a class at UC Berkeley
learned the importance of CSS in designing
and building webpages.</p>
p{ <div id=“sidebar”>
<h2>Side Bar Story</h2>
<p class=“byline”>By John Doe.</p>
font-family: Helvetica; <p>This is a related story.</p>
</div>
}
</div>
</body>
11. Class Selectors
<body>
.headline { <div id=“container”>
<h2 class=“headline”>Hello World</h2>
text-decoration: underline;
<p class=“byline”>By Jeremy Rue.</p>
}
<p>In todayʼs news, a class at UC Berkeley
learned the importance of CSS in designing
and building webpages.</p>
.byline { <div id=“sidebar”>
<h2>Side Bar Story</h2>
<p class=“byline”>By John Doe.</p>
font-size: 8px; <p>This is a related story.</p>
</div>
}
</div>
</body>
12. Class Selectors
<body>
.headline { <div id=“container”>
<h2 class=“headline”>Hello World</h2>
text-decoration: underline;
<p class=“byline”>By Jeremy Rue.</p>
}
<p>In todayʼs news, a class at UC Berkeley
learned the importance of CSS in designing
and building webpages.</p>
.byline { <div id=“sidebar”>
<h2>Side Bar Story</h2>
<p class=“byline”>By John Doe.</p>
font-size: 8px; <p>This is a related story.</p>
</div>
}
</div>
</body>
13. ID Selectors
<body>
#container { <div id=“container”>
<h2 class=“headline”>Hello World</h2>
font-size: 30px;
<p class=“byline”>By Jeremy Rue.</p>
}
<p>In todayʼs news, a class at UC Berkeley
learned the importance of CSS in designing
and building webpages.</p>
#sidebar { <div id=“sidebar”>
<h2>Side Bar Story</h2>
<p class=“byline”>By John Doe.</p>
font-size: 8px; <p>This is a related story.</p>
</div>
}
</div>
</body>
14. ID Selectors
<body>
#container { <div id=“container”>
<h2 class=“headline”>Hello World</h2>
font-size: 30px;
<p class=“byline”>By Jeremy Rue.</p>
}
<p>In todayʼs news, a class at UC Berkeley
learned the importance of CSS in designing
and building webpages.</p>
#sidebar { <div id=“sidebar”>
<h2>Side Bar Story</h2>
<p class=“byline”>By John Doe.</p>
font-size: 8px; <p>This is a related story.</p>
</div>
}
</div>
</body>
16. More Selector Options
<body>
.headline{ <div id=“container”>
<h2 class=“headline”>Hello World</h2>
font-size: 30px;
<p class=“byline”>By Jeremy Rue.</p>
}
<p>In todayʼs news, a class at UC Berkeley
learned the importance of CSS in designing
and building webpages.</p>
<div id=“sidebar”>
<h3 class=“headline”>Side Bar Story</h3>
<p class=“byline”>By John Doe.</p>
<p>This is a related story.</p>
</div>
</div>
</body>
17. More Selector Options
<body>
h2.headline { <div id=“container”>
<h2 class=“headline”>Hello World</h2>
font-size: 30px;
<p class=“byline”>By Jeremy Rue.</p>
}
<p>In todayʼs news, a class at UC Berkeley
learned the importance of CSS in designing
and building webpages.</p>
<div id=“sidebar”>
<h3 class=“headline”>Side Bar Story</h3>
<p class=“byline”>By John Doe.</p>
<p>This is a related story.</p>
</div>
</div>
</body>
18. More Selector Options
<body>
#sidebar p { <div id=“container”>
<h2 class=“headline”>Hello World</h2>
font-size: 30px;
<p class=“byline”>By Jeremy Rue.</p>
}
<p>In todayʼs news, a class at UC Berkeley
learned the importance of CSS in designing
and building webpages.</p>
A space means <div id=“sidebar”>
descendant. <h3 class=“headline”>Side Bar Story</h3>
<p class=“byline”>By John Doe.</p>
<p>This is a related story.</p>
</div>
</div>
</body>
19. More Selector Options
<body>
#container #sidebar h3 { <div id=“container”>
<h2 class=“headline”>Hello World</h2>
font-size: 30px;
<p class=“byline”>By Jeremy Rue.</p>
}
<p>In todayʼs news, a class at UC Berkeley
learned the importance of CSS in designing
and building webpages.</p>
<div id=“sidebar”>
<h3 class=“headline”>Side Bar Story</h3>
<p class=“byline”>By John Doe.</p>
<p>This is a related story.</p>
</div>
</div>
</body>
20. More Selector Options
<body>
#container #sidebar h3 { <div id=“container”>
<h2 class=“headline”>Hello World</h2>
font-size: 30px;
<p class=“byline”>By Jeremy Rue.</p>
}
<p>In todayʼs news, a class at UC Berkeley
learned the importance of CSS in designing
and building webpages.</p>
<div id=“sidebar”>
<h3 class=“headline”>Side Bar Story</h3>
<p class=“byline”>By John Doe.</p>
<p>This is a related story.</p>
</div>
</div>
</body>
21. More Selector Options
<body>
#container #sidebar h3 { <div id=“container”>
<h2 class=“headline”>Hello World</h2>
font-size: 30px;
<p class=“byline”>By Jeremy Rue.</p>
}
<p>In todayʼs news, a class at UC Berkeley
learned the importance of CSS in designing
and building webpages.</p>
<div id=“sidebar”>
<h3 class=“headline”>Side Bar Story</h3>
<p class=“byline”>By John Doe.</p>
<p>This is a related story.</p>
</div>
</div>
</body>
22. More Selector Options
<body>
#container #sidebar h3 { <div id=“container”>
<h2 class=“headline”>Hello World</h2>
font-size: 30px;
<p class=“byline”>By Jeremy Rue.</p>
}
<p>In todayʼs news, a class at UC Berkeley
learned the importance of CSS in designing
and building webpages.</p>
<div id=“sidebar”>
<h3 class=“headline”>Side Bar Story</h3>
<p class=“byline”>By John Doe.</p>
<p>This is a related story.</p>
</div>
</div>
</body>
24. HTML vs CSS
HTML CSS
<div class=“headline lead-story article”> .headline p {
}
These spaces give multiple classes This space means a <p> tag inside
another tag with class .headline
25. Example from Richmond Site
<div id="post-38661" class="hentry p1 post publish author-lexi-
pandell category-education category-featured category-front
tag-big-brother-big-sister tag-mentoring tag-nonprofit tag-
youth y2012 m02 d07 h13">
26. A few others
<div id=“container”>
h3, p { color:orange; }
<h3>Here is one headline</h3>
<div>
<h3>Another</h3>
<p>Some text here</p>
</div>
<p>Another paragraph.</p>
<h3>Last graph.</h3>
</div>
27. A few others
<div id=“container”>
#container > h3 { color:orange; }
<h3>Here is one headline</h3>
<div>
<h3>Another</h3>
<p>Some text here</p>
</div>
<p>Another paragraph.</p>
<h3>Last graph.</h3>
</div>
28. A few others
<div id=“container”>
h3 + p { color:orange; }
<h3>Here is one headline</h3>
<div>
<h3>Another</h3>
<p>Some text here</p>
</div>
<p>Another paragraph.</p>
<h3>Last graph.</h3>
</div>
29. A few others
<div id=“container”>
h3:first-child { color:orange; }
<h3>Here is one headline</h3>
<div>
<h3>Another</h3>
<p>Some text here</p>
</div>
<p>Another paragraph.</p>
<h3>Last graph.</h3>
</div>
31. What happens if there is a conflict?
External Style Sheet Embedded Style Sheet Inline Styles
<head>
<style>
.headlines {
<div style= “color:black;”>
color:black;
}
</style>
</head>
The more specific rules take precedence.
36. Text Color
color:
#ee3e80;
COLOR NAMES RGB VALUES Hexadecimal
147 predefined Values for red, Six or three digit
names green and blue alpha-numeral.
DarkCyan rgb(100,100,90); #FFFFFF;
Purple rgb(255,255,255); #000000;
Black rgb(0,0,0); #000;
Red rgb(30,44,200); #AF0;
38. Font Family
font-‐family:
Helvetica,
Arial,
san-‐serif;
FALL BACK QUOTES END WITH
GENERIC
A comma Use quotes when
separated list of a font is multiple End with a
fonts to use if the words, like generic font, like
system doesnʼt “Times New serif or san-serif.
have the font Roman.” This way the
installed. browser will pick
for you.
39. Font Size
font-‐size:
12px;
PIXELS PERCENTAGES EM
Pixels are Percentages are EM is another
considered a relative from the way of doing
fixed font size. default size of the relative
Fonts will appear text. 100% measurement.
at this size means the default Varies only
relative to the size. slightly from %.
screen size.
41. Links
a:link a:link a:visited
a:visited
Before a user After a user clicks
a:hover clicks on a link. on a link.
a:active
a:hover a:active
When a user When the user
hovers over a clicks down on a
link. link.
44. Inline vs Block
Inline block
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore
magna aliqua.
Lorem ipsum dolor sit amet,
consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad
<img> List of the best pies <p>
minim veniam, quis nostrud exercitation ullamco laboris <span> • Apple <div>
nisi ut aliquip ex ea commodo consequat. Duis aute • Cherry
irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur
<strong> • Pumpkin <li>
sint occaecat cupidatat non proident, sunt in culpa qui
officia deserunt mollit anim id est laborum.
<em> <h1>