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

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.

主站蜘蛛池模板: 武定县| 菏泽市| 张家界市| 花莲市| 南宫市| 同心县| 湖南省| 双城市| 驻马店市| 临汾市| 洛阳市| 饶河县| 江永县| 九龙城区| 通辽市| 五常市| 抚松县| 天台县| 大英县| 正安县| 雅江县| 阳原县| 偏关县| 和田市| 崇州市| 铅山县| 甘谷县| 麻栗坡县| 屯门区| 泸州市| 连城县| 静海县| 江孜县| 禹州市| 镶黄旗| 客服| 贵港市| 南昌市| 阿勒泰市| 贵州省| 通化县|