Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
ASOS Prince's Trust Get Into Technology - CSS
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Si Jobling
February 23, 2016
Technology
74
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ASOS Prince's Trust Get Into Technology - CSS
Si Jobling
February 23, 2016
More Decks by Si Jobling
See All by Si Jobling
ASOS Prince's Trust Get Into Technology - Basic Coding
si
0
94
ASOS Prince's Trust Get Into Technology - HTML
si
0
75
The Working and Managements Styles of Five Different Industries
si
0
370
Sponsor a Mac
si
1
140
Tweets for Balls
si
0
140
Other Decks in Technology
See All in Technology
eBPF 簡介 2026 版
shunghsiyu
0
190
Sizing, Benchmarking and Performance Tuning Apache Flink Clusters
rmetzger
0
140
Ebitengine製iOSアプリ公開ボタンを押す会
eiei114
0
110
業務でAWSをあまり使っていない私が、AWSへのモチベを保つ方法
smt7174
0
180
HQ駆動開発で最高のAI-Contextを作ろう
sansantech
PRO
1
120
AI時代に求められる優秀なTechLeadの振る舞い
pospome
11
15k
視野はAIに、視座は人に / ai-for-breadth-humans-for-perspective
nkzn
6
3.2k
ライフワーク「猫でもわかるDirectConnect」
kentapapa
0
300
JAWSコミュニティに 参加して1年経った結果
ssakita
0
120
サボる子はいねぇがー!AgentCoreハーネスの脆弱性に学ぶ、エージェントの入力バリデーション
iwamot
PRO
5
310
re:Invent2026 事前勉強会 歴史と愉しみ方10分LT編
toshi_atsumi
0
170
Reticulum, le réseau cypherpunk dont vous avez besoin !
rlifchitz
0
110
Featured
See All Featured
Are puppies a ranking factor?
jonoalderson
2
4.2k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
320
30 Presentation Tips
portentint
PRO
1
460
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
530
Joys of Absence: A Defence of Solitary Play
codingconduct
1
570
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
650
How to Talk to Developers About Accessibility
jct
2
620
Paper Plane
katiecoart
PRO
5
55k
Faster Mobile Websites
deanohume
310
32k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
For a Future-Friendly Web
brad_frost
184
11k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
610
Transcript
Prince’s Trust Get Into Tech Basic Coding with Si Jobling
Tuesday 23 February 2016 CSS Adding some style
• What is CSS? • Curly braces and colons •
Elements, classes and IDs • Colo(u)rs • Fonts • Decorative stuff (borders, backgrounds) • Layout and sizes
Basic Coding with Si Jobling Cascading Style Sheets
Basic Coding with Si Jobling selector { property: value; }
Basic Coding with Si Jobling body { background: black; }
Basic Coding with Si Jobling .class-name { background: black; }
Basic Coding with Si Jobling #unique-identifier { background: black; }
Basic Coding with Si Jobling #one .product img { background:
black; }
Basic Coding with Si Jobling #one .product img { background:
black; color: white; }
Basic Coding with Si Jobling Colours
Basic Coding with Si Jobling a { color: white; }
US spellings! 216 reserved words
Basic Coding with Si Jobling a { color: #FFFFFF; }
RED GREEN BLUE
Basic Coding with Si Jobling a { color: #000000; }
Black
Basic Coding with Si Jobling Try it out
Basic Coding with Si Jobling Typography
Basic Coding with Si Jobling body { font-family: Arial, sans-serif;
} Fallback
Basic Coding with Si Jobling h1 { font-size: 25px; }
Pixels
Basic Coding with Si Jobling a { text-decoration: underline; }
or none
Basic Coding with Si Jobling .description { text-transform: uppercase; }
capitals
Basic Coding with Si Jobling Try it out
Basic Coding with Si Jobling Borders & Backgrounds
Basic Coding with Si Jobling img { border: 2px solid
#000000; } colour width Style
Basic Coding with Si Jobling .product img { border-color: grey;
} just colour
Basic Coding with Si Jobling .product img { border-top-width: 5px;
} position & SIZE
Basic Coding with Si Jobling button { background: black; }
reserved colours
Basic Coding with Si Jobling button { background: #000; }
Short-hand hex code
Basic Coding with Si Jobling button { background: url(my-image.gif) repeat
top center; } path to any image any repeating position (US!)
Basic Coding with Si Jobling Try it out
Basic Coding with Si Jobling Layouts
Basic Coding with Si Jobling p { text-align: center; }
left, right or center
Basic Coding with Si Jobling <div id=“my-box”>content</div> #my-box { width:
300px; height: 300px; } 300px wide 300px high
Basic Coding with Si Jobling .my-box { width: 300px; height:
300px; margin: 100px; } 100px outside
Basic Coding with Si Jobling .my-box { width: 300px; height:
300px; margin: 100px; padding: 50px; } 50px inside
Basic Coding with Si Jobling .my-box { width: 300px; height:
300px; margin: 100px; padding: 50px; padding-top: 100px; } one side only
Basic Coding with Si Jobling Try it out
Basic Coding with Si Jobling What else?
display: block / inline / inline-block; float: left / right
/ none; position: absolute / relative / fixed; top / left / bottom / right: 10px; list-style: none / bullet / square;
Basic Coding with Si Jobling Your task
• Set your page colours (fonts and background) • Apply
borders to image thumbnails • Set font sizes of product details and prices • Apply colours and borders to form elements • Place thumbnails next to each other • Position product price top right of thumbnail
Basic Coding with Si Jobling Questions?