Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

260
Views
Additional classes to Bootstrap, naming convention?

Let's say that we have the next block of code. If I want/need to add a custom('home made') class to the parent div what are the best practices?

To be more explicit.

I want to target this block of code inside a Javascript variable. How should I name the class-name to be easily recognized by other developers as a custom class inside Bootstrap?

Should I go with a prefix like custom- followed by the name of the class? (custom-class-name)

Should I use the BEM convention? I would like to know what are your thoughts on this.

var someVar = document.getElementsByClassName('class-name');

<div class="input-group mb-3">
  <span class="input-group-text" id="basic-addon1">@</span>
  <input type="text" class="form-control" placeholder="Username" aria-label="Username" aria-describedby="basic-addon1">
</div>

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!