Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge & Quiz: Applying Basic Bootstrap Concepts | Basic Concepts
Bootstrap Essentials for Modern Websites

book
Challenge & Quiz: Applying Basic Bootstrap Concepts

Task: Enhancing Portfolio Showcase with Bootstrap Classes

  • Step 1: Add the appropriate class to the provided div element to create a global container.
  • Step 2: Add the appropriate class to the provided div element to create a row within the container.
  • Step 3: Add the appropriate classes to the provided div elements to create columns for each portfolio item. Ensure that the columns are responsive and adjust their width accordingly. (Please remember that there are three div elements at this step.).
  • Step 4: Style the portfolio item titles by adding appropriate classes to the given h2 elements. Center the titles within their respective columns.
  • Step 5: Make the portfolio item descriptions legible and appropriately sized by adding suitable classes to the provided p elements. Set the font size to fs-6.
html

index.html

css

index.css

copy
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Challenge 2</title>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<link rel="stylesheet" href="index.css" />
</head>
<body>
<!-- Step 1 -->
<div class="________">
<!-- Step 2 -->
<div class="________">
<!-- Step 3 -->
<div class="________">
<div class="portfolio-item">
<img
width="128px"
src="https://codefinity-content-media-v2.s3.eu-west-1.amazonaws.com/courses/4333ab1f-0a72-431c-b9d0-73a7592739d4/section-3/Biz+Buddy.png"
alt="Biz Buddy"
/>
<div class="description">
<!-- Step 4 -->
<h2 class="________ ________">Biz Buddy</h2>
<!-- Step 5 -->
<p class="________">
Business partner, mentor, or trusted advisor in the world of
entrepreneurship.
</p>
</div>
</div>
</div>
<!-- Step 3 -->
<div class="________">
<div class="portfolio-item">
<img
width="128px"
src="https://codefinity-content-media-v2.s3.eu-west-1.amazonaws.com/courses/4333ab1f-0a72-431c-b9d0-73a7592739d4/section-3/Fresh+Perspective.png"
alt="Fresh Perspective"
/>
<div class="description">
<!-- Step 4 -->
<h2 class="________ ________">Fresh Perspective</h2>
<!-- Step 5 -->
<p class="________">
Open up new possibilities and shed light on different angles of
a situation.
</p>
</div>
</div>
</div>
<!-- Step 3 -->
<div class="________">
<div class="portfolio-item">
<img
width="128px"
src="https://codefinity-content-media-v2.s3.eu-west-1.amazonaws.com/courses/4333ab1f-0a72-431c-b9d0-73a7592739d4/section-3/Road+Remodel.png"
alt="Road Remodel"
/>
<div class="description">
<!-- Step 4 -->
<h2 class="________ ________">Road Remodel</h2>
<!-- Step 5 -->
<p class="________">
Improve the surface, drainage, signage, lighting, and other
infrastructure to enhance safety and functionality
</p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>

Utilize Bootstrap's grid system (container, row, col) to create a responsive layout for the portfolio showcase. Apply typography classes (text-center, h2, fs-6) to style the portfolio item titles and descriptions appropriately.

html

index.html

css

index.css

copy
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Challenge 2</title>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<link rel="stylesheet" href="index.css" />
</head>
<body>
<!-- Step 1 -->
<div class="container">
<!-- Step 2 -->
<div class="row">
<!-- Step 3 -->
<div class="col">
<div class="portfolio-item">
<img
width="128px"
src="https://codefinity-content-media-v2.s3.eu-west-1.amazonaws.com/courses/4333ab1f-0a72-431c-b9d0-73a7592739d4/section-3/Biz+Buddy.png"
alt="Biz Buddy"
/>
<div class="description">
<!-- Step 4 -->
<h2 class="h2 text-center">Biz Buddy</h2>
<!-- Step 5 -->
<p class="fs-6">
Business partner, mentor, or trusted advisor in the world of
entrepreneurship.
</p>
</div>
</div>
</div>

1. How many columns does Bootstrap's grid system divide the page into?

2. Which class wraps and centers the content within a fixed-width container?

3. What classes are used to create a horizontal group of columns in the grid system?

4. What do the classes sm, md, lg, and xl represent?

5. What classes are used for styling headings with different sizes?

6. What classes are used to align text elements?

7. Which class is used to vertically stack buttons together?

8. Which class is applied to checkbox and radio button inputs within a form-check container to ensure consistent styling?

9. How does Bootstrap's grid system contribute to form layout organization?

question mark

How many columns does Bootstrap's grid system divide the page into?

Select the correct answer

question mark

Which class wraps and centers the content within a fixed-width container?

Select the correct answer

question mark

What classes are used to create a horizontal group of columns in the grid system?

Select the correct answer

question mark

What do the classes sm, md, lg, and xl represent?

Select the correct answer

question mark

What classes are used for styling headings with different sizes?

Select the correct answer

question mark

What classes are used to align text elements?

Select the correct answer

question mark

Which class is used to vertically stack buttons together?

Select the correct answer

question mark

Which class is applied to checkbox and radio button inputs within a form-check container to ensure consistent styling?

Select the correct answer

question mark

How does Bootstrap's grid system contribute to form layout organization?

Select the correct answer

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 8
We use cookies to make your experience better!
some-alt