- Mastering CSS
- Rich Finelli
- 107字
- 2021-07-08 09:45:52
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.
推薦閱讀
- Vue 3移動Web開發與性能調優實戰
- PHP動態網站程序設計
- Android 7編程入門經典:使用Android Studio 2(第4版)
- SEO實戰密碼
- Flutter跨平臺開發入門與實戰
- 從零開始學C#
- 基于SpringBoot實現:Java分布式中間件開發入門與實戰
- HTML+CSS+JavaScript網頁設計從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- Spring+Spring MVC+MyBatis從零開始學
- SciPy Recipes
- 寫給程序員的Python教程
- UML2面向對象分析與設計(第2版)
- PHP 8從入門到精通(視頻教學版)
- C語言從入門到精通
- INSTANT Apache Hive Essentials How-to