SlideShare uma empresa Scribd logo
1 de 16
Fun with CSS;
or,
How to make your
Omeka sites pretty
These slides were originally created by
Brenna Bychowski for a presentation at
AAS in February 2016.
What is CSS?
CSS allows you to customize the look and layout of your Omeka exhibition (to
a point). It also allows you to make broader, site-wide changes, whereas basic
html manipulation only affects that specific html. It also allows you to change
elements for which you don’t have access to the html.
Best uses:
• Changing color schemes
• Changing text and fonts
• Moving some items
Caveats:
• Not everything can be changed by CSS. Sometimes, it’s just the theme.
• Be mindful of different sized screens. When possible, look at both a
desktop and a phone browser to ensure that layout changes are still
effective on mobile devices.
How to CSS
Components:
Selectors
• Points to the specific
elements
Properties
• Defines an aspect of the
element
Values
• Adjusts the property
blockquote {
width:80%;
margin-left:8%;
font-size:16px;
font-style:italic;
text-align:justify
}
Properties
Selector
Value
Some options of common selectors that are
useful in Omeka:
• h1-h6 [headings]
• blockquote [block quotes]
• p [paragraphs]
• a [links]
• body [body text]
• img [images]
Note: These all get paired with equivalent html
tags, eg. <h2>, <p>, <blockquote>, etc.
Examples:
h3 {
text-align:center;
font-size:150%;
font-variant:small-caps
}
blockquote {
width:80%;
margin-left:8%
}
body {
text-align:justify;
color:blue
}
Basic Selectors
Three specific kinds of links:
a:link
The general link, before it’s been
clicked
a:hover
The link while a cursor is hovering
over it
a:active
The link as it’s being clicked
a:visited
The link after it’s been visited
Examples:
.autumn a:link {
color:#CE6C3E
}
.autumn a:visited {
color:#CE6C3E
}
.autumn a:hover {
color:#FFA300
}
Links
Text
• color
• text-align
Font
• font-family
• font-size
• font-variant
Examples:
p {
color:red;
text-align:left;
font-family:"Times New Roman",
Times, serif;
font-size:40px
}
h2 {
font-size:16px;
color:#ff0000;
text-align:center
}
p {
color:rgb(255,0,0);
text-align:right;
font-variant:small-caps
}
Text & Font
Margins (space outside the border)
• margin [generic tag]
• Generic margin can be followed by –top, -
right, -bottom, & -left
Padding (space inside the border)
• padding [generic tag]
• Generic padding can be followed by –top, -
right, -bottom, & -left
Using generic tag:
• Four values, in this order: top, right, bottom,
left
• Three values: top, right & left, bottom
• Two volumes: top & bottom, right & left
Notes: Can use values in pixels (px) or percentages
(%)
Examples:
blockquote {
margin-top:10px;
margin-right:5px;
margin-bottom:10px;
margin-left:5px
}
h2 {
padding-top:6px;
padding-right:4px;
padding-bottom:8px;
padding-left:4px
}
p {
margin:10px 5px;
padding:6px 4px 8px
}
Margins & Padding
Finding Element Information:
Browser 1 (Firefox)
Finding Element Information:
Browser 1 (Firefox)
Finding Element Information:
Browser 2 (Chrome)
Finding Element Information:
Browser 2 (Chrome)
Getting Fancy
The Goal:
Make the image pale when the cursor
hovers over it
The CSS:
#home table img:hover {
opacity:.5
}
The HTML (simplified):
<center>
<table width=“85%” border=“0”>
<tbody>
<tr>
<td><span title=“Explore the
tropes”><img
src=“imagelink.jpg”></span></td>
…
</tr>
</tbody>
</table>
</center>
The Goal:
Left justify the element titles
and change the spacing
The CSS:
.items.show h3 {
text-align:left;
margin-bottom:5px;
margin-top:10px
}
Before CSS:
After CSS:
Before CSS:
After CSS:
The Goal:
Move the search box so it doesn’t
land on top of the site title
The CSS:
#search-container {
position:absolute;
display:block;
top:0;
right:0;
padding-top:0;
padding-bottom:1%;
margin-right:0;
margin-top:0;
margin-bottom:0;
float:right;
width:100%;
height:45px;
background:#404040 none repeat
scroll
}
#search-form {
position:relative;
width:32%;
float:right;
margin-top:1%;
margin-right:1%
}
CSS References
Text
http://www.w3schools.com/css/css_text.asp
Font
http://www.w3schools.com/css/css_font.asp
Margin
http://www.w3schools.com/css/css_margin.asp
Padding
http://www.w3schools.com/css/css_padding.asp
Links
http://www.w3schools.com/css/css_link.asp

Mais conteúdo relacionado

Mais procurados

The Future is Modular, Jonathan Snook
The Future is Modular, Jonathan SnookThe Future is Modular, Jonathan Snook
The Future is Modular, Jonathan SnookFuture Insights
 
01 Introduction To CSS
01 Introduction To CSS01 Introduction To CSS
01 Introduction To CSScrgwbr
 
Webfonts: Demystified
Webfonts: DemystifiedWebfonts: Demystified
Webfonts: DemystifiedMel Choyce
 
HTML(5) and CSS(3) for beginners - I
HTML(5) and CSS(3) for beginners - IHTML(5) and CSS(3) for beginners - I
HTML(5) and CSS(3) for beginners - Ivincentleeuwen
 
Css jon duckett - flashcards
Css   jon duckett - flashcardsCss   jon duckett - flashcards
Css jon duckett - flashcardsChirag Aggarwal
 
Code For Every Librarian
Code For Every LibrarianCode For Every Librarian
Code For Every Librariancmawolfe
 
Web Typography: A (Brief) Review
Web Typography: A (Brief) ReviewWeb Typography: A (Brief) Review
Web Typography: A (Brief) ReviewDan Rubin
 
Bad design features
Bad design featuresBad design features
Bad design featuresISM
 
Spectrum 2015 going online with style - an intro to css
Spectrum 2015   going online with style - an intro to cssSpectrum 2015   going online with style - an intro to css
Spectrum 2015 going online with style - an intro to cssNeil Perlin
 
CSS3: Ready for Primetime?
CSS3: Ready for Primetime?CSS3: Ready for Primetime?
CSS3: Ready for Primetime?Jeff Bridgforth
 
Web Typography Fundamentals: From Gutenberg to Google v1
Web Typography Fundamentals: From Gutenberg to Google  v1Web Typography Fundamentals: From Gutenberg to Google  v1
Web Typography Fundamentals: From Gutenberg to Google v1billcenglish
 
Web development using HTML and CSS
Web development using HTML and CSSWeb development using HTML and CSS
Web development using HTML and CSSSiddhantSingh980217
 
The Future Of CSS
The Future Of CSSThe Future Of CSS
The Future Of CSSAndy Budd
 

Mais procurados (19)

The Future is Modular, Jonathan Snook
The Future is Modular, Jonathan SnookThe Future is Modular, Jonathan Snook
The Future is Modular, Jonathan Snook
 
01 Introduction To CSS
01 Introduction To CSS01 Introduction To CSS
01 Introduction To CSS
 
Webfonts: Demystified
Webfonts: DemystifiedWebfonts: Demystified
Webfonts: Demystified
 
Css introduction
Css  introductionCss  introduction
Css introduction
 
HTML(5) and CSS(3) for beginners - I
HTML(5) and CSS(3) for beginners - IHTML(5) and CSS(3) for beginners - I
HTML(5) and CSS(3) for beginners - I
 
Css jon duckett - flashcards
Css   jon duckett - flashcardsCss   jon duckett - flashcards
Css jon duckett - flashcards
 
SilverlightDevIntro
SilverlightDevIntroSilverlightDevIntro
SilverlightDevIntro
 
Less css
Less cssLess css
Less css
 
Code For Every Librarian
Code For Every LibrarianCode For Every Librarian
Code For Every Librarian
 
Web Typography: A (Brief) Review
Web Typography: A (Brief) ReviewWeb Typography: A (Brief) Review
Web Typography: A (Brief) Review
 
Css group
Css groupCss group
Css group
 
Css group
Css groupCss group
Css group
 
Bad design features
Bad design featuresBad design features
Bad design features
 
Spectrum 2015 going online with style - an intro to css
Spectrum 2015   going online with style - an intro to cssSpectrum 2015   going online with style - an intro to css
Spectrum 2015 going online with style - an intro to css
 
CSS3: Ready for Primetime?
CSS3: Ready for Primetime?CSS3: Ready for Primetime?
CSS3: Ready for Primetime?
 
Web Typography Fundamentals: From Gutenberg to Google v1
Web Typography Fundamentals: From Gutenberg to Google  v1Web Typography Fundamentals: From Gutenberg to Google  v1
Web Typography Fundamentals: From Gutenberg to Google v1
 
CSS and Layout
CSS and LayoutCSS and Layout
CSS and Layout
 
Web development using HTML and CSS
Web development using HTML and CSSWeb development using HTML and CSS
Web development using HTML and CSS
 
The Future Of CSS
The Future Of CSSThe Future Of CSS
The Future Of CSS
 

Semelhante a Omeka css (20)

Week11 Lecture: CSS
Week11 Lecture: CSSWeek11 Lecture: CSS
Week11 Lecture: CSS
 
Pemrograman Web 3 - CSS Basic Part 2
Pemrograman Web 3 - CSS Basic Part 2Pemrograman Web 3 - CSS Basic Part 2
Pemrograman Web 3 - CSS Basic Part 2
 
Css
CssCss
Css
 
Css
CssCss
Css
 
CSS
CSSCSS
CSS
 
CSS
CSSCSS
CSS
 
Web Engineering - Introduction to CSS
Web Engineering - Introduction to CSSWeb Engineering - Introduction to CSS
Web Engineering - Introduction to CSS
 
Cascading style sheets - CSS
Cascading style sheets - CSSCascading style sheets - CSS
Cascading style sheets - CSS
 
Css
CssCss
Css
 
Cascading style sheets
Cascading style sheetsCascading style sheets
Cascading style sheets
 
Cascading style sheets
Cascading style sheetsCascading style sheets
Cascading style sheets
 
WEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptxWEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptx
 
CSS
CSSCSS
CSS
 
BITM3730 9-19.pptx
BITM3730 9-19.pptxBITM3730 9-19.pptx
BITM3730 9-19.pptx
 
BITM3730 9-20.pptx
BITM3730 9-20.pptxBITM3730 9-20.pptx
BITM3730 9-20.pptx
 
Design Concepts and Web Design
Design Concepts and Web DesignDesign Concepts and Web Design
Design Concepts and Web Design
 
Css group
Css groupCss group
Css group
 
Css
CssCss
Css
 
Web Typography
Web TypographyWeb Typography
Web Typography
 
Understanding CSS for web development by software outsourcing company india
Understanding CSS for web development by software outsourcing company indiaUnderstanding CSS for web development by software outsourcing company india
Understanding CSS for web development by software outsourcing company india
 

Último

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 

Último (20)

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 

Omeka css

  • 1. Fun with CSS; or, How to make your Omeka sites pretty These slides were originally created by Brenna Bychowski for a presentation at AAS in February 2016.
  • 2. What is CSS? CSS allows you to customize the look and layout of your Omeka exhibition (to a point). It also allows you to make broader, site-wide changes, whereas basic html manipulation only affects that specific html. It also allows you to change elements for which you don’t have access to the html. Best uses: • Changing color schemes • Changing text and fonts • Moving some items Caveats: • Not everything can be changed by CSS. Sometimes, it’s just the theme. • Be mindful of different sized screens. When possible, look at both a desktop and a phone browser to ensure that layout changes are still effective on mobile devices.
  • 3. How to CSS Components: Selectors • Points to the specific elements Properties • Defines an aspect of the element Values • Adjusts the property blockquote { width:80%; margin-left:8%; font-size:16px; font-style:italic; text-align:justify } Properties Selector Value
  • 4. Some options of common selectors that are useful in Omeka: • h1-h6 [headings] • blockquote [block quotes] • p [paragraphs] • a [links] • body [body text] • img [images] Note: These all get paired with equivalent html tags, eg. <h2>, <p>, <blockquote>, etc. Examples: h3 { text-align:center; font-size:150%; font-variant:small-caps } blockquote { width:80%; margin-left:8% } body { text-align:justify; color:blue } Basic Selectors
  • 5. Three specific kinds of links: a:link The general link, before it’s been clicked a:hover The link while a cursor is hovering over it a:active The link as it’s being clicked a:visited The link after it’s been visited Examples: .autumn a:link { color:#CE6C3E } .autumn a:visited { color:#CE6C3E } .autumn a:hover { color:#FFA300 } Links
  • 6. Text • color • text-align Font • font-family • font-size • font-variant Examples: p { color:red; text-align:left; font-family:"Times New Roman", Times, serif; font-size:40px } h2 { font-size:16px; color:#ff0000; text-align:center } p { color:rgb(255,0,0); text-align:right; font-variant:small-caps } Text & Font
  • 7. Margins (space outside the border) • margin [generic tag] • Generic margin can be followed by –top, - right, -bottom, & -left Padding (space inside the border) • padding [generic tag] • Generic padding can be followed by –top, - right, -bottom, & -left Using generic tag: • Four values, in this order: top, right, bottom, left • Three values: top, right & left, bottom • Two volumes: top & bottom, right & left Notes: Can use values in pixels (px) or percentages (%) Examples: blockquote { margin-top:10px; margin-right:5px; margin-bottom:10px; margin-left:5px } h2 { padding-top:6px; padding-right:4px; padding-bottom:8px; padding-left:4px } p { margin:10px 5px; padding:6px 4px 8px } Margins & Padding
  • 13. The Goal: Make the image pale when the cursor hovers over it The CSS: #home table img:hover { opacity:.5 } The HTML (simplified): <center> <table width=“85%” border=“0”> <tbody> <tr> <td><span title=“Explore the tropes”><img src=“imagelink.jpg”></span></td> … </tr> </tbody> </table> </center>
  • 14. The Goal: Left justify the element titles and change the spacing The CSS: .items.show h3 { text-align:left; margin-bottom:5px; margin-top:10px } Before CSS: After CSS:
  • 15. Before CSS: After CSS: The Goal: Move the search box so it doesn’t land on top of the site title The CSS: #search-container { position:absolute; display:block; top:0; right:0; padding-top:0; padding-bottom:1%; margin-right:0; margin-top:0; margin-bottom:0; float:right; width:100%; height:45px; background:#404040 none repeat scroll } #search-form { position:relative; width:32%; float:right; margin-top:1%; margin-right:1% }

Notas do Editor

  1. End lines with semicolons
  2. Both Simple pages and Exhibits automatically offer Paragraphs and Headings 1-6 in a drop-down menu of format options, only Exhibits offers Block quotes. In simple pages, that html would have to be inserted manually.
  3. In my experience, in Omeka, to change the CSS for links, you need preface the link selector with the theme selector
  4. A lot can be done with fonts. The options after font-family: The first one is a specific font The second is a more generic font family The third is a very generic font family This way, the browser is given options depending on what it can and cannot do
  5. Even if you don’t do anything to customize an element’s border, every element has an invisible border around the content. Margins and padding allow you to customize the white space both inside and outside the border.
  6. Right click on the element in question and scroll down to Inspect Element
  7. Brings up a pane at the bottom of the screen that shows both the html and the CSS When determining CSS selectors, you want to start with the CSS pane to the right, and maybe get extra information from the html to the left
  8. Right click and choose Inspect As far as I can tell, there is no easy way to do this on a mobile device (in case you happen to be editing on a tablet)
  9. Brings up a pane on the right of the screen that shows both the html and the CSS When determining CSS selectors, you want to start with the CSS pane at the bottom and then get extra information from the html at the top
  10. Specific examples of CSS I’ve used in my exhibition