Skip to content

Instantly share code, notes, and snippets.

@adimancv
Created March 12, 2018 02:50
Show Gist options
  • Save adimancv/396c1c6c8d5be11ecf40f66f647c38a5 to your computer and use it in GitHub Desktop.
Save adimancv/396c1c6c8d5be11ecf40f66f647c38a5 to your computer and use it in GitHub Desktop.
Background Color
<!DOCTYPE html>
<html>
<style>div {height:50px;padding:16px;width:100%;}</style>
<body>
<h1>Colors can be set using color names</h1><div style="background-color:red"><h1 style="color:white">Heading</h1></div><div style="background-color:yellow"><h1 style="color:blue">Heading</h1></div><div style="background-color:blue"><h1 style="color:yellow">Heading</h1></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment