🎓 EASYTUTORGUIDE

Practical tutorials, tools, courses, digital skills, and business promotion.

★ Free Learning
Translate this lesson:
Persian and Arabic automatically enable Bootstrap RTL CSS. Long translated content remains responsive; code stays LTR.

Bootstrap 5.3.8 • Chapter 12 • Responsive LTR + RTL

Images and Figures

Every topic includes its own Bootstrap coding example, explanation, ten teaching examples, expected result, practice, and responsive Persian/Arabic checks.

5 topics5 coding examples50 teaching examples10 Q&A
Estimated reading time · 0% read

12.1 img-fluid

img-fluid is part of Bootstrap 5.3.8 covered in Chapter 12. Read the Bootstrap class names as a layer over CSS layout, spacing, components, utilities, and JavaScript behavior rather than as magic syntax. The example uses Bootstrap classes or APIs directly so you can connect the class name to its visual or interactive result.

For img-fluid in Chapter 12, inspect the DOM structure, Bootstrap class names, responsive breakpoint, and any data-bs attributes or JavaScript initialization. When Google Translate is active, also verify that longer labels wrap and the correct LTR or RTL Bootstrap stylesheet is enabled.

Test img-fluid at phone, tablet, laptop, and wide-screen sizes. Then translate the example to Persian and Arabic, increase browser zoom, and inspect whether rows, columns, forms, menus, overlays, and labels remain inside the viewport.

Concept in plain language

img-fluid is part of Bootstrap 5.3.8 covered in Chapter 12. Read the Bootstrap class names as a layer over CSS layout, spacing, components, utilities, and JavaScript behavior rather than as magic syntax.

10 teaching examples

  1. Example 1: Minimal component

    Build the smallest profile screen that demonstrates img-fluid. Keep the Bootstrap classes visible in the markup and explain which class provides the behavior. Chapter 12, topic 1, example 1.

  2. Example 2: Responsive variation

    Add a breakpoint-specific class to the checkout example for img-fluid. Compare the mobile layout with the tablet or desktop layout. Chapter 12, topic 1, example 2.

  3. Example 3: Long translation

    Replace a short English label in the contact form with a much longer translated label while using img-fluid. Confirm wrapping does not widen the viewport. Chapter 12, topic 1, example 3.

  4. Example 4: Persian test

    Translate the article to Persian. Verify start/end spacing, text alignment, component direction, and that the Bootstrap RTL stylesheet is active. Chapter 12, topic 1, example 4.

  5. Example 5: Arabic test

    Translate the settings panel to Arabic. Check buttons, forms, dropdowns, navigation, and offcanvas placement for correct RTL behavior. Chapter 12, topic 1, example 5.

  6. Example 6: Accessibility review

    Use img-fluid in the gallery and verify semantic HTML, accessible names, keyboard interaction, focus visibility, and status messaging. Chapter 12, topic 1, example 6.

  7. Example 7: Content stress

    Add long text, nested controls, wide media, and narrow viewport width to the support page. Adjust the Bootstrap structure without hiding meaningful content. Chapter 12, topic 1, example 7.

  8. Example 8: Utility comparison

    Rebuild one part of the event page using Bootstrap utilities instead of custom CSS, then compare readability and maintainability. Chapter 12, topic 1, example 8.

  9. Example 9: JavaScript-state test

    If img-fluid uses Bootstrap JavaScript, test open, close, focus, disposal, and repeated initialization in the analytics page. If not, verify the example works without JavaScript. Chapter 12, topic 1, example 9.

  10. Example 10: Production review

    Review img-fluid in the account page for breakpoints, RTL, Google Translate, zoom, keyboard use, performance, and maintainable class choices. Chapter 12, topic 1, example 10.

Bootstrap coding example

<img src="photo.webp" class="img-fluid" alt="Responsive example">

Step-by-step code explanation

  1. Identify the Bootstrap class, data attribute, or JavaScript API used for img-fluid.
  2. Read the HTML nesting first. Bootstrap components often depend on a specific relationship between wrappers, controls, and content.
  3. Resize the viewport and observe which responsive classes become active at each breakpoint.
  4. Translate the visible content. Long labels must wrap, .row children must be able to shrink, and tables should use a local responsive wrapper instead of widening the page.
  5. Switch to Persian or Arabic and confirm that the page has dir=rtl, Bootstrap's RTL stylesheet is active, start/end utilities behave correctly, and code examples remain LTR.

Expected result: The browser demonstrates img-fluid with responsive behavior. Persian and Arabic use RTL layout without creating page-wide horizontal scrolling; genuinely wide code or tables scroll locally.

Practice exercise

Build a new Bootstrap 5.3.8 example for img-fluid from Chapter 12. Test it at 320px, 768px, and desktop width, translate its visible text to Persian and Arabic, and explain which Bootstrap classes or JavaScript API create the final behavior.

12.2 img-thumbnail

img-thumbnail is part of Bootstrap 5.3.8 covered in Chapter 12. Read the Bootstrap class names as a layer over CSS layout, spacing, components, utilities, and JavaScript behavior rather than as magic syntax. The example uses Bootstrap classes or APIs directly so you can connect the class name to its visual or interactive result.

For img-thumbnail in Chapter 12, inspect the DOM structure, Bootstrap class names, responsive breakpoint, and any data-bs attributes or JavaScript initialization. When Google Translate is active, also verify that longer labels wrap and the correct LTR or RTL Bootstrap stylesheet is enabled.

Test img-thumbnail at phone, tablet, laptop, and wide-screen sizes. Then translate the example to Persian and Arabic, increase browser zoom, and inspect whether rows, columns, forms, menus, overlays, and labels remain inside the viewport.

Concept in plain language

img-thumbnail is part of Bootstrap 5.3.8 covered in Chapter 12. Read the Bootstrap class names as a layer over CSS layout, spacing, components, utilities, and JavaScript behavior rather than as magic syntax.

10 teaching examples

  1. Example 1: Minimal component

    Build the smallest contact form that demonstrates img-thumbnail. Keep the Bootstrap classes visible in the markup and explain which class provides the behavior. Chapter 12, topic 2, example 1.

  2. Example 2: Responsive variation

    Add a breakpoint-specific class to the article example for img-thumbnail. Compare the mobile layout with the tablet or desktop layout. Chapter 12, topic 2, example 2.

  3. Example 3: Long translation

    Replace a short English label in the settings panel with a much longer translated label while using img-thumbnail. Confirm wrapping does not widen the viewport. Chapter 12, topic 2, example 3.

  4. Example 4: Persian test

    Translate the gallery to Persian. Verify start/end spacing, text alignment, component direction, and that the Bootstrap RTL stylesheet is active. Chapter 12, topic 2, example 4.

  5. Example 5: Arabic test

    Translate the support page to Arabic. Check buttons, forms, dropdowns, navigation, and offcanvas placement for correct RTL behavior. Chapter 12, topic 2, example 5.

  6. Example 6: Accessibility review

    Use img-thumbnail in the event page and verify semantic HTML, accessible names, keyboard interaction, focus visibility, and status messaging. Chapter 12, topic 2, example 6.

  7. Example 7: Content stress

    Add long text, nested controls, wide media, and narrow viewport width to the analytics page. Adjust the Bootstrap structure without hiding meaningful content. Chapter 12, topic 2, example 7.

  8. Example 8: Utility comparison

    Rebuild one part of the account page using Bootstrap utilities instead of custom CSS, then compare readability and maintainability. Chapter 12, topic 2, example 8.

  9. Example 9: JavaScript-state test

    If img-thumbnail uses Bootstrap JavaScript, test open, close, focus, disposal, and repeated initialization in the lesson page. If not, verify the example works without JavaScript. Chapter 12, topic 2, example 9.

  10. Example 10: Production review

    Review img-thumbnail in the admin page for breakpoints, RTL, Google Translate, zoom, keyboard use, performance, and maintainable class choices. Chapter 12, topic 2, example 10.

Bootstrap coding example

<img src="photo.webp" class="img-thumbnail" alt="Thumbnail example">

Step-by-step code explanation

  1. Identify the Bootstrap class, data attribute, or JavaScript API used for img-thumbnail.
  2. Read the HTML nesting first. Bootstrap components often depend on a specific relationship between wrappers, controls, and content.
  3. Resize the viewport and observe which responsive classes become active at each breakpoint.
  4. Translate the visible content. Long labels must wrap, .row children must be able to shrink, and tables should use a local responsive wrapper instead of widening the page.
  5. Switch to Persian or Arabic and confirm that the page has dir=rtl, Bootstrap's RTL stylesheet is active, start/end utilities behave correctly, and code examples remain LTR.

Expected result: The browser demonstrates img-thumbnail with responsive behavior. Persian and Arabic use RTL layout without creating page-wide horizontal scrolling; genuinely wide code or tables scroll locally.

Practice exercise

Build a new Bootstrap 5.3.8 example for img-thumbnail from Chapter 12. Test it at 320px, 768px, and desktop width, translate its visible text to Persian and Arabic, and explain which Bootstrap classes or JavaScript API create the final behavior.

12.3 Rounded Images

Rounded Images is part of Bootstrap 5.3.8 covered in Chapter 12. Read the Bootstrap class names as a layer over CSS layout, spacing, components, utilities, and JavaScript behavior rather than as magic syntax. The example uses Bootstrap classes or APIs directly so you can connect the class name to its visual or interactive result.

For Rounded Images in Chapter 12, inspect the DOM structure, Bootstrap class names, responsive breakpoint, and any data-bs attributes or JavaScript initialization. When Google Translate is active, also verify that longer labels wrap and the correct LTR or RTL Bootstrap stylesheet is enabled.

Test Rounded Images at phone, tablet, laptop, and wide-screen sizes. Then translate the example to Persian and Arabic, increase browser zoom, and inspect whether rows, columns, forms, menus, overlays, and labels remain inside the viewport.

Concept in plain language

Rounded Images is part of Bootstrap 5.3.8 covered in Chapter 12. Read the Bootstrap class names as a layer over CSS layout, spacing, components, utilities, and JavaScript behavior rather than as magic syntax.

10 teaching examples

  1. Example 1: Minimal component

    Build the smallest settings panel that demonstrates Rounded Images. Keep the Bootstrap classes visible in the markup and explain which class provides the behavior. Chapter 12, topic 3, example 1.

  2. Example 2: Responsive variation

    Add a breakpoint-specific class to the gallery example for Rounded Images. Compare the mobile layout with the tablet or desktop layout. Chapter 12, topic 3, example 2.

  3. Example 3: Long translation

    Replace a short English label in the support page with a much longer translated label while using Rounded Images. Confirm wrapping does not widen the viewport. Chapter 12, topic 3, example 3.

  4. Example 4: Persian test

    Translate the event page to Persian. Verify start/end spacing, text alignment, component direction, and that the Bootstrap RTL stylesheet is active. Chapter 12, topic 3, example 4.

  5. Example 5: Arabic test

    Translate the analytics page to Arabic. Check buttons, forms, dropdowns, navigation, and offcanvas placement for correct RTL behavior. Chapter 12, topic 3, example 5.

  6. Example 6: Accessibility review

    Use Rounded Images in the account page and verify semantic HTML, accessible names, keyboard interaction, focus visibility, and status messaging. Chapter 12, topic 3, example 6.

  7. Example 7: Content stress

    Add long text, nested controls, wide media, and narrow viewport width to the lesson page. Adjust the Bootstrap structure without hiding meaningful content. Chapter 12, topic 3, example 7.

  8. Example 8: Utility comparison

    Rebuild one part of the admin page using Bootstrap utilities instead of custom CSS, then compare readability and maintainability. Chapter 12, topic 3, example 8.

  9. Example 9: JavaScript-state test

    If Rounded Images uses Bootstrap JavaScript, test open, close, focus, disposal, and repeated initialization in the booking page. If not, verify the example works without JavaScript. Chapter 12, topic 3, example 9.

  10. Example 10: Production review

    Review Rounded Images in the course page for breakpoints, RTL, Google Translate, zoom, keyboard use, performance, and maintainable class choices. Chapter 12, topic 3, example 10.

Bootstrap coding example

<img src="photo.webp" class="img-fluid rounded-circle" alt="Rounded example">

Step-by-step code explanation

  1. Identify the Bootstrap class, data attribute, or JavaScript API used for Rounded Images.
  2. Read the HTML nesting first. Bootstrap components often depend on a specific relationship between wrappers, controls, and content.
  3. Resize the viewport and observe which responsive classes become active at each breakpoint.
  4. Translate the visible content. Long labels must wrap, .row children must be able to shrink, and tables should use a local responsive wrapper instead of widening the page.
  5. Switch to Persian or Arabic and confirm that the page has dir=rtl, Bootstrap's RTL stylesheet is active, start/end utilities behave correctly, and code examples remain LTR.

Expected result: The browser demonstrates Rounded Images with responsive behavior. Persian and Arabic use RTL layout without creating page-wide horizontal scrolling; genuinely wide code or tables scroll locally.

Practice exercise

Build a new Bootstrap 5.3.8 example for Rounded Images from Chapter 12. Test it at 320px, 768px, and desktop width, translate its visible text to Persian and Arabic, and explain which Bootstrap classes or JavaScript API create the final behavior.

12.4 figure

figure is part of Bootstrap 5.3.8 covered in Chapter 12. Read the Bootstrap class names as a layer over CSS layout, spacing, components, utilities, and JavaScript behavior rather than as magic syntax. The example uses Bootstrap classes or APIs directly so you can connect the class name to its visual or interactive result.

For figure in Chapter 12, inspect the DOM structure, Bootstrap class names, responsive breakpoint, and any data-bs attributes or JavaScript initialization. When Google Translate is active, also verify that longer labels wrap and the correct LTR or RTL Bootstrap stylesheet is enabled.

Test figure at phone, tablet, laptop, and wide-screen sizes. Then translate the example to Persian and Arabic, increase browser zoom, and inspect whether rows, columns, forms, menus, overlays, and labels remain inside the viewport.

Concept in plain language

figure is part of Bootstrap 5.3.8 covered in Chapter 12. Read the Bootstrap class names as a layer over CSS layout, spacing, components, utilities, and JavaScript behavior rather than as magic syntax.

10 teaching examples

  1. Example 1: Minimal component

    Build the smallest support page that demonstrates figure. Keep the Bootstrap classes visible in the markup and explain which class provides the behavior. Chapter 12, topic 4, example 1.

  2. Example 2: Responsive variation

    Add a breakpoint-specific class to the event page example for figure. Compare the mobile layout with the tablet or desktop layout. Chapter 12, topic 4, example 2.

  3. Example 3: Long translation

    Replace a short English label in the analytics page with a much longer translated label while using figure. Confirm wrapping does not widen the viewport. Chapter 12, topic 4, example 3.

  4. Example 4: Persian test

    Translate the account page to Persian. Verify start/end spacing, text alignment, component direction, and that the Bootstrap RTL stylesheet is active. Chapter 12, topic 4, example 4.

  5. Example 5: Arabic test

    Translate the lesson page to Arabic. Check buttons, forms, dropdowns, navigation, and offcanvas placement for correct RTL behavior. Chapter 12, topic 4, example 5.

  6. Example 6: Accessibility review

    Use figure in the admin page and verify semantic HTML, accessible names, keyboard interaction, focus visibility, and status messaging. Chapter 12, topic 4, example 6.

  7. Example 7: Content stress

    Add long text, nested controls, wide media, and narrow viewport width to the booking page. Adjust the Bootstrap structure without hiding meaningful content. Chapter 12, topic 4, example 7.

  8. Example 8: Utility comparison

    Rebuild one part of the course page using Bootstrap utilities instead of custom CSS, then compare readability and maintainability. Chapter 12, topic 4, example 8.

  9. Example 9: JavaScript-state test

    If figure uses Bootstrap JavaScript, test open, close, focus, disposal, and repeated initialization in the dashboard. If not, verify the example works without JavaScript. Chapter 12, topic 4, example 9.

  10. Example 10: Production review

    Review figure in the profile screen for breakpoints, RTL, Google Translate, zoom, keyboard use, performance, and maintainable class choices. Chapter 12, topic 4, example 10.

Bootstrap coding example

<figure class="figure"><img src="photo.webp" class="figure-img img-fluid rounded" alt="Example"><figcaption class="figure-caption">Figure caption</figcaption></figure>

Step-by-step code explanation

  1. Identify the Bootstrap class, data attribute, or JavaScript API used for figure.
  2. Read the HTML nesting first. Bootstrap components often depend on a specific relationship between wrappers, controls, and content.
  3. Resize the viewport and observe which responsive classes become active at each breakpoint.
  4. Translate the visible content. Long labels must wrap, .row children must be able to shrink, and tables should use a local responsive wrapper instead of widening the page.
  5. Switch to Persian or Arabic and confirm that the page has dir=rtl, Bootstrap's RTL stylesheet is active, start/end utilities behave correctly, and code examples remain LTR.

Expected result: The browser demonstrates figure with responsive behavior. Persian and Arabic use RTL layout without creating page-wide horizontal scrolling; genuinely wide code or tables scroll locally.

Practice exercise

Build a new Bootstrap 5.3.8 example for figure from Chapter 12. Test it at 320px, 768px, and desktop width, translate its visible text to Persian and Arabic, and explain which Bootstrap classes or JavaScript API create the final behavior.

12.5 figure-caption

figure-caption is part of Bootstrap 5.3.8 covered in Chapter 12. Read the Bootstrap class names as a layer over CSS layout, spacing, components, utilities, and JavaScript behavior rather than as magic syntax. The example uses Bootstrap classes or APIs directly so you can connect the class name to its visual or interactive result.

For figure-caption in Chapter 12, inspect the DOM structure, Bootstrap class names, responsive breakpoint, and any data-bs attributes or JavaScript initialization. When Google Translate is active, also verify that longer labels wrap and the correct LTR or RTL Bootstrap stylesheet is enabled.

Test figure-caption at phone, tablet, laptop, and wide-screen sizes. Then translate the example to Persian and Arabic, increase browser zoom, and inspect whether rows, columns, forms, menus, overlays, and labels remain inside the viewport.

Concept in plain language

figure-caption is part of Bootstrap 5.3.8 covered in Chapter 12. Read the Bootstrap class names as a layer over CSS layout, spacing, components, utilities, and JavaScript behavior rather than as magic syntax.

10 teaching examples

  1. Example 1: Minimal component

    Build the smallest analytics page that demonstrates figure-caption. Keep the Bootstrap classes visible in the markup and explain which class provides the behavior. Chapter 12, topic 5, example 1.

  2. Example 2: Responsive variation

    Add a breakpoint-specific class to the account page example for figure-caption. Compare the mobile layout with the tablet or desktop layout. Chapter 12, topic 5, example 2.

  3. Example 3: Long translation

    Replace a short English label in the lesson page with a much longer translated label while using figure-caption. Confirm wrapping does not widen the viewport. Chapter 12, topic 5, example 3.

  4. Example 4: Persian test

    Translate the admin page to Persian. Verify start/end spacing, text alignment, component direction, and that the Bootstrap RTL stylesheet is active. Chapter 12, topic 5, example 4.

  5. Example 5: Arabic test

    Translate the booking page to Arabic. Check buttons, forms, dropdowns, navigation, and offcanvas placement for correct RTL behavior. Chapter 12, topic 5, example 5.

  6. Example 6: Accessibility review

    Use figure-caption in the course page and verify semantic HTML, accessible names, keyboard interaction, focus visibility, and status messaging. Chapter 12, topic 5, example 6.

  7. Example 7: Content stress

    Add long text, nested controls, wide media, and narrow viewport width to the dashboard. Adjust the Bootstrap structure without hiding meaningful content. Chapter 12, topic 5, example 7.

  8. Example 8: Utility comparison

    Rebuild one part of the profile screen using Bootstrap utilities instead of custom CSS, then compare readability and maintainability. Chapter 12, topic 5, example 8.

  9. Example 9: JavaScript-state test

    If figure-caption uses Bootstrap JavaScript, test open, close, focus, disposal, and repeated initialization in the checkout. If not, verify the example works without JavaScript. Chapter 12, topic 5, example 9.

  10. Example 10: Production review

    Review figure-caption in the contact form for breakpoints, RTL, Google Translate, zoom, keyboard use, performance, and maintainable class choices. Chapter 12, topic 5, example 10.

Bootstrap coding example

<figure class="figure"><img src="photo.webp" class="figure-img img-fluid" alt="Example"><figcaption class="figure-caption text-end">Caption aligned to the end</figcaption></figure>

Step-by-step code explanation

  1. Identify the Bootstrap class, data attribute, or JavaScript API used for figure-caption.
  2. Read the HTML nesting first. Bootstrap components often depend on a specific relationship between wrappers, controls, and content.
  3. Resize the viewport and observe which responsive classes become active at each breakpoint.
  4. Translate the visible content. Long labels must wrap, .row children must be able to shrink, and tables should use a local responsive wrapper instead of widening the page.
  5. Switch to Persian or Arabic and confirm that the page has dir=rtl, Bootstrap's RTL stylesheet is active, start/end utilities behave correctly, and code examples remain LTR.

Expected result: The browser demonstrates figure-caption with responsive behavior. Persian and Arabic use RTL layout without creating page-wide horizontal scrolling; genuinely wide code or tables scroll locally.

Practice exercise

Build a new Bootstrap 5.3.8 example for figure-caption from Chapter 12. Test it at 320px, 768px, and desktop width, translate its visible text to Persian and Arabic, and explain which Bootstrap classes or JavaScript API create the final behavior.

Chapter 12 review — 10 questions and answers

1. What should you inspect when img-fluid does not behave as expected?

Answer: Check the Bootstrap classes, breakpoint, DOM structure, loaded CSS version, and any JavaScript data attributes involved in img-fluid. Then inspect computed styles to see which declaration wins.

2. How should img-fluid be tested before publishing?

Answer: Test img-fluid on narrow and wide screens, with long translated text, in Persian and Arabic RTL mode, at increased zoom, and with keyboard navigation where the component is interactive.

3. What should you inspect when img-thumbnail does not behave as expected?

Answer: Check the Bootstrap classes, breakpoint, DOM structure, loaded CSS version, and any JavaScript data attributes involved in img-thumbnail. Then inspect computed styles to see which declaration wins.

4. How should img-thumbnail be tested before publishing?

Answer: Test img-thumbnail on narrow and wide screens, with long translated text, in Persian and Arabic RTL mode, at increased zoom, and with keyboard navigation where the component is interactive.

5. What should you inspect when Rounded Images does not behave as expected?

Answer: Check the Bootstrap classes, breakpoint, DOM structure, loaded CSS version, and any JavaScript data attributes involved in Rounded Images. Then inspect computed styles to see which declaration wins.

6. How should Rounded Images be tested before publishing?

Answer: Test Rounded Images on narrow and wide screens, with long translated text, in Persian and Arabic RTL mode, at increased zoom, and with keyboard navigation where the component is interactive.

7. What should you inspect when figure does not behave as expected?

Answer: Check the Bootstrap classes, breakpoint, DOM structure, loaded CSS version, and any JavaScript data attributes involved in figure. Then inspect computed styles to see which declaration wins.

8. How should figure be tested before publishing?

Answer: Test figure on narrow and wide screens, with long translated text, in Persian and Arabic RTL mode, at increased zoom, and with keyboard navigation where the component is interactive.

9. What should you inspect when figure-caption does not behave as expected?

Answer: Check the Bootstrap classes, breakpoint, DOM structure, loaded CSS version, and any JavaScript data attributes involved in figure-caption. Then inspect computed styles to see which declaration wins.

10. How should figure-caption be tested before publishing?

Answer: Test figure-caption on narrow and wide screens, with long translated text, in Persian and Arabic RTL mode, at increased zoom, and with keyboard navigation where the component is interactive.