Skip to content

Instantly share code, notes, and snippets.

@abdallahmalima
Created November 12, 2022 02:20
Show Gist options
  • Select an option

  • Save abdallahmalima/aac0efd9cc19a4c975b4973c2e497081 to your computer and use it in GitHub Desktop.

Select an option

Save abdallahmalima/aac0efd9cc19a4c975b4973c2e497081 to your computer and use it in GitHub Desktop.
Check DRY principle
.greetings {
font-family: Arial, sans-serif;
font-size: 1.5rem;
}
.greetings.english {
background-color: #000;
color: #FFF;
}
.greetings.spanish {
background-color: #FFF;
color: #000;
}
@abdallahmalima

Copy link
Copy Markdown
Author

This code follows the DRY principle.No Repeated Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment