GithubHelp home page GithubHelp logo

semantic-html-challenge's Introduction

Semantic HTML challenge

Your Project

← README.md

That's this file, with instructions about what to do and links for info and hints.

← index.html

Where you'll write the content of your website.

← style.css

CSS files add styling rules to your content.

← assets

Here is where you will find the images you will need to complete the challenge

\ ゜o゜)ノ

HTML/CSS Table Challenge

HTML/CSS Table Challengecompleted table

Challenge

Make the table above in HTML and style with CSS and embed your solution in a blog post.

  1. The table width should fill any container it is put in

  2. The noise image is on the table body only not the head or foot

  3. The two fonts are Rock Salt and Helvetica Neu

  4. Here is that lovely leopard skin image

  5. There is a gradient fill on the header and footer - rgba(0,0,0,0.1), rgba(0,0,0,0.5)

  6. Here are those delicious colours

    1. #800080 (Border)

    2. #ff33cc (background on rows 1, 3, 5, and 7)

    3. #e495e4 (background on rows 2, 4, 6, and 8)

Tips

  • Get control of your table-layout.

  • Think about your font stack.

  • Make your table markup as simple as possible, and keep things flexible, e.g. by using percentages, so the design is more responsive.

  • Use table-layout: fixed to create a more predictable table layout that allows you to easily set column widths by setting width on their headings (th).

  • Use border-collapse: collapse to make table elements borders collapse into each other, producing a neater and easier to control look.

  • Use thead, tbody, and tfoot to break up your table into logical chunks and provide extra places to apply CSS to, so it is easier to layer styles on top of one another if required.

  • Use zebra striping to make alternate rows easier to read.

  • Use text-align to line up your th and td text, to make things neater and easier to follow.

Resources

Links

W3Schools Table Layout

CSS Tricks Fixed Table Layout

MDN - :nth-child

MDN - caption-side

MDN - border collapse

MDN - Text Shadow

MDN - Linear Gradient

MDN - Web Fonts

Table Data

Caption

A summary of the UK's most famous punk bands

semantic-html-challenge's People

Contributors

alexseymourdev avatar robbailiff avatar

Watchers

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