100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Lecture notes on CSS BIS Multimedia (IMY 110) $4.73   Add to cart

Class notes

Lecture notes on CSS BIS Multimedia (IMY 110)

 16 views  0 purchase
  • Course
  • Institution

The beginners guide to CSS.

Preview 4 out of 42  pages

  • July 17, 2021
  • 42
  • 2020/2021
  • Class notes
  • Annique smith
  • All classes
avatar-seller
IMY 110

CSS : HOW TO
INTRODUCTION



HTML VS CSS
● HTML is concerned with the structure of the website
● CSS is concerned with the presentation of the website



VERSIONS OF CSS
● We are currently using CSS3
● Browsers do not implement all the features at once
● Old browsers do not support every feature and require work-arounds
● Some browsers have bugs concerning certain CSS features



STRUCTURE OF CSS


HOW DOES IT WORK?
● Used to specify a particular element or group of html elements and how
to style them
● The way in which you specify the HTML element to style is through the
CSS selector

,ADDING CSS TO YOUR HTML DOCUMENT
● There are 3 ways to add CSS to your HTML document
● Only 2 of which are useful
○ INTERNAL CSS - inside the html document ← Try not to use this




○ EXTERNAL CSS - uses an external file (.css file) to separate
structure from content and make editing multiple pages easier as
all of the CSS is stored in one place ← Recommended




UNDERSTANDING CSS
● CSS treats every element in HTML as if it is in a box on its own
● The entire page is treated as a box

,A BASIC CSS RULE
p {

font-family: Arial;}

● The “p” is the selector (which element(s) the rule is being applied to)
● The text inside of the brackets is the declaration (made up of the
property and the value)
● The property is the factor which is being changed
● The value is how the factor is being changed



SELECTORS
● ELEMENT SELECTORS - selects a particular html element to be styled
● CLASS SELECTORS - allow for particular subsets with the same class to be
styled the same
● ID SELECTORS - used to uniquely identify a single element
● CHILD SELECTORS - allows styling of an element which is a direct child
of another element



COLOUR - USE THE AMERICAN SPELLING ‘COLOR’


FOREGROUND COLOR (TEXT)
● P{
color: DarkCyan;} ← Colour name
● P{
color: #ee4e80;} ← Hexadecimal code
● P{
color: rgb(100,100,90);} ← RGB values

, BACKGROUND COLOR
● P{
background-color: DarkCyan;} ← Colour name
● P{
background-color: #ee4e80;} ← Hexadecimal code
● P{
background-color: rgb(100,100,90);} ← RGB values



COLOUR THEORY
● Colours are made up of red, green and blue
● The numbers in rgb() specify how much red, green and blue are being used
to make up the colour being used



VALUES
● RGB values
● Hexadecimal code
● Colour name
● Hue, Saturation and Brightness



CONTRAST
● The amount of difference between a foreground colour and background
colour
● Low contrast tends to be difficult to look at / read
● High contrast tends to strain the user’s eyes
● Medium contrast is generally best
● Make sure to check your contrast online

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller charlottiiieeeg. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $4.73. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

83637 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$4.73
  • (0)
  Add to cart