Slide 1
CSS for Presentation
Joan Boone
jpboone@email.unc.edu
CSS for Presentation Joan Boone jpboone@email.unc.edu Slide 1 - - PowerPoint PPT Presentation
INLS 572 Web Development CSS for Presentation Joan Boone jpboone@email.unc.edu Slide 1 Topics Part 1: Overview, Box Model Part 2: Borders Part 3: Gradients Slide 2 CSS for Presentation Originally (1996-2001)... Focus of CSS was on
Slide 1
Joan Boone
jpboone@email.unc.edu
Slide 2
Slide 3
Originally (1996-2001)...
More recently (CSS3), the focus has been on visual and interaction features
Slide 4
How To Learn CSS by Rachel Andrew (January 2019) Useful summary with good links to related resources
Slide 5
Each box has 4 parts: content, padding, border, and margin that can be styled with CSS properties.
style, and color attributes.
from its neighbors
References: w3schools CSS Box Model MDN Intro to CSS basic box Model
Slide 6
amount of space around and between elements
specify the desired margins and padding
Source: Margin vs. Padding by Kunal Sarkar
Slide 7
allow you to view the details of a web page just as your browser views it.
(Chrome) or Inspect Element (Firefox), to display the page Inspector tool.
Chrome Firefox
Chrome DevTools Firefox Developer Tools
Slide 8
Selected element: <h2> CSS rules from the user agent style sheet – these are the default rules applied by the browser. Box Model for <h2> element
Slide 9
Slide 10
Slide 11
Design showcase
Slide 12
Properties: border-width, border-style, border-color
Reference: w3schools: CSS Borders .banner { display: block; margin-left: auto; margin-right: auto; max-width: 70%; border-style: double; border-width: .5em; border-color: orange;} NOTE: border-style must be specified,
footer { font-size: .8em; padding: 1%; border-top: .2em solid orange; text-align: center; } nc-national-parks-border.html
Slide 13
footer { font-size: .8em; padding: 1%; border: .3em solid orange; border-radius: 1.2em; text-align: center;
}
References: w3schools: CSS border-radius and MDN: border-radius
Shorthand for border-width border-style border-color
Slide 14
Dribbble.com Designers
Slide 15
CodePen: Quick Border Radius on IMG
Original image Image with
border-radius:20px;
Image with added
border: 5px solid #b58e19;
Slide 16
SILS Graduates
Kate Moran
User Experience Specialist Nielsen Norman Group
Curt Arledge
User Experience Designer Viget
border-radius: 100px / 60px; border-radius: 51% 49% 54% 46% / 0% 100% 0% 100%;
Slide 17
Creates a clipping region that defines what part of an element is shown.
Tool: Clippy - a tool for making CSS clip-paths How to...
clip-path: ellipse(50% 45% at 50% 50%); nc-national-parks-clip-path.html
Slide 18
box-shadow: 3px 4px 5px 0px rgba(0, 0, 0, 0.38);
nc-national-parks-box-shadow.html
How to...
CSS box-shadow Property
Expanded Use of 'box-shadow'
Slide 19
Slide 20
Mid-2000s Around 2012, emergence of minimalism and flat design
“One of the biggest usability issues introduced by flat design is the lack of signifiers on clickable elements.”
Today
Slide 21
Text Logos Backgrounds Borders
Slide 22
CSS gradients
Types
point
References
Tools
Slide 23
background-color: #d9b38c; background-image: linear-gradient(to bottom right, #d9b38c, #f2e6d9);
nc-national-parks-bg-gradient.html