Created
December 14, 2025 02:21
-
-
Save joabj/9f714841776afecde24daea061d58b27 to your computer and use it in GitHub Desktop.
How the ID attribute of Div works. From the Tutorial "Center a Div"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <style> | |
| #red-background {background-color:red} | |
| </style> | |
| </head> | |
| <body> | |
| <div id="red-background">"Moonlight Drive"</div> | |
| </div> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment