Industry TV series

Just brilliant. The complexities of all the relationships and actions is well thought out. The decisions made were well suited to the characters. It was all around just a well made show. I am impressed. Would recommend to all most anyone. The only point against it is that it has a very cynical worldview

My notes from The Basics of CSS: Selectors

Websites are composed of

  1. HTML : A markup language. 1
  2. CSS : What this video is all about.
  3. Javascript : Logic that your browser can execute.

To use css just pick a block element in the HTML (the selector) and put certain styling information under it (the properties). Eg:

ul {
  margin: 0;
  padding: 0;
}

Here ul is a selector which target the unordered list elements. In this particular case it changes the margin, and padding amount.

You can also target an HTML tag by the parent tag around it , i.e. compound selectors. For example to target an unordered list inside the nav tags, you can do the following:

nav ul {
  margin: 0;
  padding: 0;
}

In this case the nav tag does not need to be the immediate parent. There can be other tags/layers between them.

You query for a class with a dot. Eg:

.article-title {
  font-size: 2rem;
}

You can combine these two. Eg:

article.content{
    font-size: 2rem;

This looks for a class content inside an article tag. A given tag can have multiple classes. These classes are delineated by a space. Eg: <h1 id="css-selector" class="content body-head"> Pick a Heading </h1>

You use a # to target an id. Eg, to target the prior <h1> tag we can write the following:

#css-selector {
  width: 150%;
}

An id selector has higher priority to a class selector. It is more specific. Similarly h1.content is more specific than .content. This can be very tricky in CSS. Classes are more specific than just tags. For the same tag, the css mentioned at the bottom has higher priority than the one above it.

Learning to Type

I have decided to finally start learning how to type quickly using the 10 finger method. Why learn to type ? My current method of pecking is quick for short burst but not for proper note taking. My aim is to be able to type LaTeX notes live. Also, time is inversely proportional to typing speed. so we have the following :

words/mintext input/daytime spent in a year
102 hours18 weeks
201 hour9 weeks
3040 min6 weeks
4030 min4.5 weeks
6020 min3 weeks

In the long-term this learning time is gonna pay for itself.


  1. What’s up with markup and markdown. Is it like a bottom-up vs top-down approach to text? ↩︎