Block, Element, Modifier in LESS

Developer
Size
1,735 Kb
Views
50,600

How do I make an block, element, modifier in less?

Simple demo showing that LESS allows for a really neat, consise BEM syntax. What is a block, element, modifier in less? How do you make a block, element, modifier in less? This script and codes were developed by Nick Williams on 27 August 2022, Saturday.

Block, Element, Modifier in LESS Previews

Block, Element, Modifier in LESS - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Block, Element, Modifier in LESS</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="block"> <div class="block__element">Hello</div> <div class="block__element block__element--modifier">Goodbye</div>
</div>
</body>
</html>

Block, Element, Modifier in LESS - Script Codes CSS Codes

.block__element { padding: 1em; margin-bottom: 1em; background-color: tomato;
}
.block__element--modifier { background-color: skyblue;
}
Block, Element, Modifier in LESS - Script Codes
Block, Element, Modifier in LESS - Script Codes
Home Page Home
Developer Nick Williams
Username WickyNilliams
Uploaded August 27, 2022
Rating 3
Size 1,735 Kb
Views 50,600
Do you need developer help for Block, Element, Modifier in LESS?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Nick Williams (WickyNilliams) Script Codes
Create amazing Facebook ads with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!