Lab - CSS
- Copy the home page of the
Shakespeare pages,
plus its CSS,
to your web space.
cd /users/tutors/mhumphrysdculab/share/shakespeare
cp home.html $HOME/public_html/shakespeare.html
cp house.css $HOME/public_html/house.css
- Remove all CSS code that styles links ("a" elements).
Big job!
- Copy my styling for "main-navigation" links.
- Change one link to class "main-navigation" to see its style change.
- Two paths:
- Find and replace in the HTML to make all links of class "main-navigation".
or:
- Change CSS so that all links have this style, not just links of class "main-navigation".
- Put a div around each section of the page like "The Comedies", "The Romances", etc.
- This will look like:
<div class='mydiv'>
a lot of html
</div>
- Define the style of class "mydiv" so that these divs have a special background color and font.
- Change the style so that hover on one of these divs changes its background color.
This is a chat program at Ancient Brain.
Click to run. You need other people to run it to see.
It deliberately has no protection against HTML or CSS injection.
That means you can type HTML or CSS in the chat and it appears in the other user's page.
You can inject chunks of HTML into their page.
You can also change the CSS, including changing their background colour, or changing their entire page to hidden.
Try it!
(You can also inject JS into their page!)
Click to run World:
Websocket chat at
Ancient Brain.