Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Bootstrap 4 by Building Projects

You're reading from   Learning Bootstrap 4 by Building Projects Develop 5 real-world Bootstrap 4.x projects from scratch

Arrow left icon
Product type Paperback
Published in Aug 2018
Publisher Packt
ISBN-13 9781789343250
Length 218 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Eduonix Learning Solutions Eduonix Learning Solutions
Author Profile Icon Eduonix Learning Solutions
Eduonix Learning Solutions
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. Introduction FREE CHAPTER
2. Bootstrap 4 Features 3. Photosharing Website 4. Building a Resume Website 5. Social Network Frontend 6. Agency Website 7. Lightbox Website 8. Other Books You May Enjoy

Completing Sass for index

In the last section, we left off with starting to do some styling on our jumbotron. There are a few more things we're going to do on the jumbotron, mainly adding margins and making it appear much better than how it looks now:

.jumbotron h1 {
margin-top: 60px;
}
.jumbotron p {
margin-bottom: 40px;
}
.jumbotron img.app-btn {
width:40%;
margin-right:30px;
}
.jumbotron img.showcase-img{
width:75%;
}

As you can see, the code is self-explanatory. As mentioned earlier, it's a trial and error method to see what components of the website look like when it comes to styling. We have added a style to the heading, Capture Life, the text below it, the Google Play and Apple Store images, and finally the image on the right-hand side of the jumbotron.

Once you make these changes to the jumbotron code, you can inspect the elements and play with the margin...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime