Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
ASOS Prince's Trust Get Into Technology - CSS
Search
Si Jobling
February 23, 2016
Technology
0
64
ASOS Prince's Trust Get Into Technology - CSS
Si Jobling
February 23, 2016
Tweet
Share
More Decks by Si Jobling
See All by Si Jobling
ASOS Prince's Trust Get Into Technology - Basic Coding
si
0
77
ASOS Prince's Trust Get Into Technology - HTML
si
0
45
The Working and Managements Styles of Five Different Industries
si
0
290
Sponsor a Mac
si
1
140
Tweets for Balls
si
0
110
Other Decks in Technology
See All in Technology
パブリッククラウドのプロダクトマネジメントとアーキテクト
tagomoris
4
890
20250130_『SUUMO』の裏側!第2弾 ~機械学習エンジニアリング編
recruitengineers
PRO
0
370
Kubernetes x k6 で負荷試験基盤を開発して 負荷試験を民主化した話 / Kubernetes x k6
sansan_randd
0
450
Active Directory の保護
eurekaberry
6
2.8k
もし今からGraphQLを採用するなら
kazukihayase
9
4.4k
論文紹介 ”Long-Context LLMs Meet RAG: Overcoming Challenges for Long Inputs in RAG” @GDG Tokyo
shukob
0
280
[TechNight #86] Oracle GoldenGate - 23ai 最新情報&プロジェクトからの学び
oracle4engineer
PRO
1
200
あなたはJVMの気持ちを理解できるか?
skrb
5
2k
これからSREになる人と、これからもSREをやっていく人へ
masayoshi
1
730
生成AIを活用した機能を、顧客に提供するまでに乗り越えた『4つの壁』
toshiblues
2
260
[JAWS-UG栃木]地方だからできたクラウドネイティブ事例大公開! / jawsug_tochigi_tachibana
biatunky
0
160
ゆもつよがこの30年間自ら経験してきたQA、テストの歴史と未来
ymty
2
210
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
53
5.2k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.8k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
175
51k
The Invisible Side of Design
smashingmag
299
50k
How STYLIGHT went responsive
nonsquared
97
5.3k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
160
15k
Faster Mobile Websites
deanohume
306
31k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.4k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
49
2.2k
RailsConf 2023
tenderlove
29
980
Build your cross-platform service in a week with App Engine
jlugia
229
18k
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?