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

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.

主站蜘蛛池模板: 习水县| 承德市| 射阳县| 墨玉县| 商丘市| 金门县| 大方县| 土默特左旗| 乌海市| 微山县| 克东县| 墨江| 方城县| 宜兰市| 沂水县| 舞钢市| 中方县| 固原市| 昔阳县| 阿拉尔市| 长治市| 加查县| 重庆市| 绥滨县| 松溪县| 吐鲁番市| 咸宁市| 汕头市| 山东| 嘉禾县| 阳山县| 锡林浩特市| 浦城县| 井研县| 大洼县| 若尔盖县| 睢宁县| 天峨县| 桃园市| 东辽县| 石狮市|