Giter Club home page Giter Club logo

jumbotron-class-based-styles-css-lab-abp-11-17's Introduction

Styling the Jumbotron with Class Selectors

Objectives

  1. <link> to an external stylesheet style.css from index.html.
  2. Use class selectors to style the Jumbotron of the Icebreaker Homepage.
  3. Play wtih border-radius, text-align, color, background-color, line-height and other CSS properties.

Instructions

We're going to style the Jumbotron of the Icebreakers homepage. The goal is to make a marketing component of the page and format it so it looks good. We're going to be practicing using class selectors to add the required styles. By the end of this lab, the homepage in index.html with the styles in style.css should look like:

Final Result

Code your styles in style.css and include it in index.html with a tag with an href attribute and a rel attribute of value stylesheet.

You have to use the specific selectors described below to style the navigation.

Previewing in the Browser

As you add the styles to style.css, you should check your work visually by looking at index.html in the browser. When working on this lab in the Learn IDE, type httpserver in your IDE terminal. You will get an IP Address that you can open in your browser to see your site. You can learn more about this at the Help Center.

The <div class="jumbotron">

Using a class selector, find the div with class jumbotron and give it a border-radius of 5px, a background-color of #e9ecef, a padding of 10px and center align the text.

The <h1> in the Jumbotron

Find the <h1> inside an element (hint: not just a div) with class jumbotron using a class selector. Make the font-size 60px.

The <p> in the Jumbotron

Style all ps inside an element (hint: not just a div) with class jumbotron using a class selector. Give them a font-size of 20px, a 40px left and right padding and a 0 top and bottom padding, and a line-height of 40px.

Resources

jumbotron-class-based-styles-css-lab-abp-11-17's People

Contributors

aviflombaum avatar ricardocastelan08 avatar

Watchers

James Cloos avatar  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.