Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to make color squares in angular

<div><div class='box red'></div>= Super Fast Trains</div>
<br>
<div><div class='box green'></div>= Mail/Express Trains</div>
<br>
<div><div class='box blue'></div>= Local/ Passenger Trains</div>


// CSS

.box {
  float: left;
  height: 20px;
  width: 20px;
  margin-bottom: 15px;
  border: 1px solid black;
  clear: both;
}

.red {
  background-color: red;
}

.green {
  background-color: green;
}

.blue {
  background-color: blue;
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: package.json beginner 
Javascript :: refresh javascript using require 
Javascript :: gatsby underline link if page is active 
Javascript :: mongodb hasOwnProperty returns false 
Javascript :: Javascript Make your console talk! 
Javascript :: convert json in parse inputs azure function 
Javascript :: how to change the model object django in javascript 
Javascript :: ladder physics javascript 
Javascript :: my datatable in flutter from json repeat the column headers 
Javascript :: remove state from location on page load in react router dom 
Javascript :: install phantomjs Alpine Linux 
Javascript :: 3. What are private member variables. in js 
Javascript :: 11. Which of the following metals catch fire on reaction with air? A. Magnesium B. Manganese C. Potassium D. Calcium 
Javascript :: what is @ atsign in first of file path nodejs 
Javascript :: get selected value on componentdidmount reactjs 
Javascript :: not qual in mongoose 
Javascript :: parallaxprovider 
Javascript :: array destructuring methods parameters 
Javascript :: How to create a command that receives attributes in Discord in js 
Javascript :: charat javascript in swicth 
Javascript :: dom javascript cheat sheet 
Javascript :: manipulação de array javascript 
Javascript :: how to post json to cloudwatch 
Javascript :: copy link url javascript 
Javascript :: How to make move able triangle in canvas js 
Javascript :: how to make a podcast subscribe button in javascript 
Javascript :: Back button directive Angular 
Javascript :: get value of telerik combo box js 
Javascript :: add 5:30 time javascript 
Javascript :: reorder them so that more specific routes come before less specific routes 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =