levo

Website Authoring

Styling tables with CSS

  • 3 things to know
  • Papers 1 and 3
Start revising · £5/month

Overview

Table and cell sizes, padding, spacing, alignment, borders and background colours set in CSS.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

What is the difference between padding and spacing in a table?

Key term

What does border-collapse do?

Key term

How is a table border made invisible in CSS?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is the difference between padding and spacing in a table?

    Model answer

    Padding is the space between the contents of a cell and its border. Spacing is the gap between neighbouring cells.

  2. 2

    What does border-collapse do?

    Model answer

    Collapsed borders join the borders of neighbouring cells into a single line.

  3. 3

    Write CSS that collapses the borders of a table and gives every cell a 1 pixel black border.

    Model answer

    The rules table {border-collapse: collapse;} and td, th {border: 1px solid #000000;} give single black lines between cells.

  4. 4

    How is a table border made invisible in CSS?

    Model answer

    The border style is set to none or hidden, such as table {border-style: none;}.

  5. 5

    Write a CSS rule that gives table data cells 10 pixels of padding.

    Model answer

    The rule td {padding: 10px;} puts 10 pixels of space between each cell's contents and its border.

  6. 6

    Write a CSS rule that puts a 5 pixel gap between table cells.

    Model answer

    The rule table {border-spacing: 5px;} sets the gap, which only shows when the borders are not collapsed.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Types and Components of Computer Systems
Input and Output Devices
Storage Devices and Media
Networks and the Effects of Using Them

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

Stock is reordered .
automaticallymanuallyweekly

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

FTP means protocol for transferring files.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Website Authoring, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.