Help with Marking up a Letter Assessment. Linking CSS <div>, <span>, etc

Hello,

I am having trouble in the “Marking up a Letter” Assessment linking the “sender-column” in the provided CSS code with the provided HTML code. It is clear that the CSS document is being referenced as the is being formatted. But I find myself unable to make the top address referenced as “sender-column”

HTML:

Re:Eileen Dover University Application
Dr. Eleanor Gaye
Awesome Science faculty
University of Awesome
Bobtown, CA 99999,
USA
Tel: 123-456-7890
Email: no_reply@example.com

20 January 2016

Miss Eileen Dover
4321 Cliff Top Edge
Dover, CT9 XXX UK

Re: Eileen Dover university application

Dear Eileen,

Thank you for your recent application to join us at the University of Awesome's science faculty to study as part of your PhD next year. I will answer your questions one by one, in the following sections.

Starting dates

We are happy to accommodate you starting your study with us at any time, however it would suit us better if you could start at the beginning of a semester; the start dates for each one are as follows:

  • First semester: 9 September 2016
  • Second semester: 15 January 2017
  • Third semester: 2 May 2017

Please let me know if this is ok, and if so which start date you would prefer.

You can find more information about important university dates on our website.

Subjects of study

At the Awesome Science Faculty, we have a pretty open-minded research facility — as long as the subjects fall somewhere in the realm of science and technology. You seem like an intelligent, dedicated researcher, and just the kind of person we'd like to have on our team. Saying that, of the ideas you submitted we were most intrigued by are as follows, in order of priority:

  1. Turning H2O into wine, and the health benefits of Resveratrol (C14H12O3.)
  2. Measuring the effect on performance of funk bassplayers at temperatures exceeding 30°C (86°F), when the audience size exponentially increases (effect of 3 × 103 increasing to 3 × 104.)
  3. HTML and CSS constructs for representing musical scores.

So please can you provide more information on each of these subjects, including how long you'd expect the research to take, required staff and other resources, and anything else you think we'd need to know? Thanks.

Exotic dance moves

Yes, you are right! As part of my post-doctorate work, I did study exotic tribal dances. To answer your question, my favourite dances are as follows, with definitions:

Polynesian chicken dance
A little known but very influential dance dating back as far as 300BC, a whole village would dance around in a circle like chickens, to encourage their livestock to be "fruitful".
Icelandic brownian shuffle
Before the Icelanders developed fire as a means of getting warm, they used to practice this dance, which involved huddling close together in a circle on the floor, and shuffling their bodies around in imperceptibly tiny, very rapid movements. One of my fellow students used to say that he thought this dance inspired modern styles such as Twerking.
Arctic robot dance
An interesting example of historic misinformation, English explorers in the 1960s believed to have discovered a new dance style characterized by "robotic", stilted movements, being practiced by inhabitants of Northern Alaska and Canada. Later on however it was discovered that they were just moving like this because they were really cold.

For more of my research, see my exotic dance research page.

Yours sincerely, Dr. Eleanor Gaye

University of Awesome motto: Be awesome to each other. -- The memoirs of Bill S Preston, Esq.
CSS:

body {
max-width: 800px;
margin: 0 auto;
}

sender-column {
text-align: right;
}

h1 {
font-size: 1.9em;
}

h2 {
font-size: 1.3em;
}

p,ul,ol,dl,address {
font-size: 1.1em;
}

p, li, dd, dt, address {
line-height: 1.5;
}

Here is a picture of the first lines of text.

@Carl_Mohr hi there!

Discourse is a bit annoying in this regard — if you put HTML into the post, it interprets/tuns it, rather than showing the code. To get around this, you can put three backticks on a line (a backtick is `), then your code block, and then end the block with another line of three backticks.

But an even beter solution, which is what we ask people to do in our assessments, is to put your code into an online code editor like Codepen or JSFiddle, and then give us to link to your code example — that way we can test it straight away, and give you feedback more quickly.

@Carl_Mohr as for your code problem, I think it is probably because in your CSS you have the sender-column rule written like this:

sender-column {
  text-align: right;
}

Then in your HTML you have <div id=''sender-column">.

To reference an ID in a CSS selector, you need to use a hash mark, i.e.

#sender-column {
  text-align: right;
}

In my original code I’ve got sender-column as a class on the element, which would be selected in CSS using a dot selector, i.e.

.sender-column {
  text-align: right;
}