Skip to content

Commit

Permalink
Added media queries to resize text size in the overlay text for the c…
Browse files Browse the repository at this point in the history
…arousel image

Added media queries to resize text size in the overlay text for the carousel images at large and medium size screens
  • Loading branch information
JasonBraithwaite committed May 26, 2021
1 parent 1dce9cb commit fb7b228
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ This project has a Navbar collapse seen in this project as the Emoji Navbar coll

The site contains a two Column and Jumbotron Section directly below it ("looking for quality web development and design services? Contact Us Today"). Note how the Contact Us Today Button has padding top when in small screen and no padding when the screen gets bigger using pt-4 pt-md-0.

Finally the project includes a footer and socket section that is centered, has a logo and further logo links to Social media.
Finally the project includes a footer and socket section that is centered, has a logo and further logo links to Social media.

Added media queries to resize text size in the overlay text for the carousel images at large and medium size screens
25 changes: 20 additions & 5 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,26 @@ footer .svg-inline--fa:hover {

/* Devices under 1199px (xl) */
@media (max-width: 1199.98px) {

}
/* Devices under 768px (md) */
@media (max-width: 767.98px) {

.carousel-caption h1{
font-size: 2.8rem;
}

.carousel-caption h3{
font-size: 1.8rem;
}
}
/* Devices under 992px (lg) */
@media (max-width: 991.98px) {
.carousel-caption h1{
font-size: 2.5rem;
}

.carousel-caption h3{
font-size: 1.5rem;
}
.btn-lg{
font-size: .95rem;
}
}


Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<div class="carousel-caption">
<div class="container">
<div class="row justify-content-center">
<div class="col-8 bg-custom d-none d-lg-block py-3 px-0">
<div class="col-8 bg-custom d-none d-md-block py-3 px-0">
<h1 id="carousel-h1">Bootstrap</h1>
<div class="border-top border-primary w-50 mx-auto my-3"></div>
<h3 class="pb-3">Complete Website Design</h3>
Expand Down

0 comments on commit fb7b228

Please sign in to comment.