Giter Site home page Giter Site logo

css-challenges's Introduction

Beginning CSS-Challenges

Use these challenges here to get started with CSS.

The file here came from the HTML markup challenges. If you've done those you'll recognize some of the examples.

What to do?

Work your way through each of the challenge files. Open each file in your browser, read the comments in the style tag at the top and follow the instructions. Then refresh your browser.

As you make changes you'll be applying CSS styles to the documents you previously marked up.

Be sure to refresh your browser after each change to CSS. This way you'll be able to see the affect of each style you apply and understand what is doing. Better! install the Live Server extension for VSCode.

Look at the code samples and read comments.

You'll be adding your code in the <style> tag.

CSS styles are written in "rules". A rule is written in a block that starts with a "selector".

p {
	...
}

Properties are written in name and value pairs.

color: red; /* make the foreground color red */

All style rules start with a selector. The selector describes which elements will be affected and all the rules in the block apply to those elements.

p {
	/* All properties here apply to all p tags */
	color: red; /* All p tags display as red */
}

In some examples you'll see something like this:

body {
	/* Set the font-family to 'Helvetica Neue' */

	...
}

Your job is to:

body {
	/* Set the font-family to 'Helvetica Neue' */
	font-family: 'Helvetica Neue';
	...
}

In a few places you'll need to define the selector. For example:

/* Apply the following styles to the body */
	/* font family 'Helvetica Neue' */
	/* font size 20px */
	/* line height 1.5 */
	/* Color #333 dark gray */
	/* background color #eee light gray */

Your goal in this example is to:

/* Apply the following styles to the body */
body {
	/* font family 'Helvetica Neue' */
	font-family: 'Helvetica Neue';
	/* font size 20px */
	...
	/* line height 1.5 */
	/* Color #333 dark gray */
	/* background color #eee light gray */
}

css-challenges's People

Contributors

soggybag avatar xilaluna avatar

Watchers

 avatar

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.