Code Monkey home page Code Monkey logo

fa21-cse110-lab3's Introduction

fa21-cse110-lab3's People

Contributors

brooksniu avatar satyam19946 avatar

Watchers

 avatar

fa21-cse110-lab3's Issues

Unit

/* units of measurement for sizing and spacing your elements */
Use 3 unique relative units total
Use 3 unique absolute units total

Position

/* element positioning on the page */
2 of the following values: static, relative, fixed, absolute, sticky
Apply these values to the position property

CSS Selectors

Class Selector (.class)
ID Selector (#id)
Universal Selector ()
Element Selector (element)
Attribute Selector (e.g. [attribute=foo])
Pseudo-class Selector (e.g. p:hover)
Selector List (element, element) /
select multiple elements /
Combinators (you must use one of each) /
specify selections based on element positioning in the DOM tree */
Descendant Combinator (element element)
Child Combinator (element > element)
General sibling combinator (element ~ element)
Adjacent sibling combinator (element + element)
Combining Two Selectors (element.class)

Add Color

rgb(r, g, b) or rgba(r, g, b, a) /* red, green, blue, alpha values /
#FFF or #FFFFFF /
hex codes /
hsl(h, s, l) or hsla(h, s, l, a) /
hue, saturation, lightness, alpha values */
Color name (i.e ‘orange’)

Text

/* style your text */
color
text-decoration
text-align

Display

Experiment with these values: none, block, inline-block, inline. Include at least two of them in your page.
Apply theses values to the display property

Layouts

Flexbox (Links to an external site.) /* allow your elements to lay themselves out automatically /
apply flex to the display property
Must have more than two children within the element that is using flexbox. Must use minimum three of the flexbox related attributes
Grid (Links to an external site.) /
instantiate a grid for your layouts */
apply grid to the display property
Must have more than two children within the element that is using the grid. Must use a minimum of three of the grid related attributes

Background

  • apply background styles to your elements */
    background-color

Pseudo-Class

/* elements that exist in your document conditionally */
:hover
:active

Sizing

height
width
max-width
min-width

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.