Day 20. I didn’t think I would do this today. My friend/Son introduced me to ALX Software Engineering Program and I would be frank with you, it is demanding, maybe its because I just got started. However, I am not dropping free code camp. Today, I learnt:
- The calc () function is a CSS function that allows you to calculate a value based on other values.
- The: not () pseudo-selector is used to target all elements that do not match the selector.
- Rather than having to constantly double-check you are not overwriting your earlier properties, you can use the! important keyword to ensure these properties are always applied, regardless of order or specificity.
- Setting the border-collapse property to collapse, will allow cell borders to collapse into a single border, instead of a border around each cell.
- Setting the border property to 0 will hide the borders themselves
- The [attribute="value"] selector targets any element that has an attribute with a specific value.
- The key difference between tr[class="total"] and tr.total is that the first will select tr elements where the only class is total. The second will select tr elements where the class includes total.
- The :nth-of-type() pseudo-selector is used to target specific elements based on their order among siblings of the same type. Here is what the balanced sheet looks like. I may start updating you on my journey with ALX soonest.