官术网_书友最值得收藏!

Renaming elements — classes and IDs

Renaming elements is such a powerful feature of CSS. Let me set this up for you. So far, CSS has been good because we have been able to keep things consistent. All heading 1s are blue with a font size of 20 pixels, for instance, but what if you want your h1 to look different? That's where renaming and classifying elements really becomes useful. In this section, you're going to learn about how to rename and style elements based on classes and IDs. We'll look at how this will pay off on our shark website, first with classes, followed by IDs.

主站蜘蛛池模板: 茌平县| 衡水市| 巫溪县| 余姚市| 当涂县| 武威市| 蓬莱市| 本溪| 金川县| 育儿| 泰和县| 河源市| 湖州市| 竹溪县| 牡丹江市| 兰考县| 琼结县| 民乐县| 陆川县| 淳化县| 赣榆县| 大洼县| 鸡东县| 鄂州市| 京山县| 吴江市| 和平区| 邻水| 米林县| 贵港市| 宁安市| 大港区| 平定县| 平湖市| 手游| 聂荣县| 屏南县| 宁河县| 柞水县| 安阳市| 思南县|