On Github lozadaOmr / bootstrap-basics
/bootstrap ├── /css │ ├── bootstrap.css │ ├── bootstrap.min.css │ ├── bootstrap-theme.css │ └── bootstrap-theme.min.css ├── /js │ ├── bootstrap.js │ └── bootstrap.min.js └── /fonts ├── glyphicons-halflings-regular.eot ├── glyphicons-halflings-regular.svg ├── glyphicons-halflings-regular.ttf └── glyphicons-halflings-regular.woff
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> HELLO WORLD! </body> </html>
<div> <span> CONTENT </span> </div>
<opening tag> CONTENT </closing tag>
<TAG SELECTOR>
<div class="bootstrap"> Content </div>
.header {
height:auto;
margin:auto;
}
#footer {
color:azure;
padding:10px;
}
selector(s) {
properties:value;
}
form {
background-color: red;
}
.class-name {
properties : value;
}
.header {
font-color: red;
}
#sidebar1 {
height:90px;
}
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Sample</title> <linkrel="stylesheet" href="css/styles.css"> </head> <body> <div class="foobar"> <p id="col1"> THIS IS COL1 </p> </div> <div class="foobar"> <p id="col2"> THIS IS COL2 </p> </div> </body> </html>
#col1 {
background-color: blue;
width:150px;
height:150px;
}
#col2 {
background-color:red;
width:90px;
height:90px;
}
.foobar {
color:white;
background-color:yellow;
padding:10px 10px;
height:200px;
width:200px;
}
<div class= "parent"> <div class= "child eldest-child parent"> <p id= "eldest-grand-child" class= "child grand-child eldest-child"> </p> <p id= "youngest-grand-child" class= "child grand-child youngest-child" </p> </div> <div class= "child middle-child"> </div> <div class= "child youngest-child"> </div> </div>
div.parent {
color:green
};
.child {
font-size: 4px
};
div.parent .child .grand-child {
height:40px
};
div.parent .child #youngest-child {
height: 90px;
}
.parent > .youngest-child {
height:100px;
}