Lesson: Responsive Design with Bootstrap
Create a Bootstrap Button
Bootstrap has its own styles for button
elements, which look much better than the plain HTML ones.
Create a new button
element below your large kitten photo. Give it the class btn
and the text of "Like".
Create a new
button
element with the text "Like". Your new button should have the class
btn
. Make sure all your
button
elements have a closing tag. href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css"
.red-text {
color: red;
}
h2 {
font-family: Lobster, Monospace;
}
p {
font-size: 16px;
font-family: Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
.smaller-image {
width: 100px;
}
class="container-fluid"
class="red-text text-center"CatPhotoApp
Click here for href="#"cat photos.
href="#" class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "
src="https://bit.ly/fcc-running-cats" class="img-responsive" alt="Three kittens running towards the camera. "
Things cats love:
Correct, congratulations!
Next problem: Create a Block Element Bootstrap Button
Try again
The content on this page is licensed under Attribution-ShareAlike 4.0 International. Original authors: freeCodeCamp, the content was modified.