🎓 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 4 • Responsive LTR + RTL

Responsive Columns

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

4.1 col-sm

col-sm is part of Bootstrap 5.3.8 covered in Chapter 4. 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 col-sm in Chapter 4, 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 col-sm 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

col-sm is part of Bootstrap 5.3.8 covered in Chapter 4. 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 gallery that demonstrates col-sm. Keep the Bootstrap classes visible in the markup and explain which class provides the behavior. Chapter 4, topic 1, example 1.

  2. Example 2: Responsive variation

    Add a breakpoint-specific class to the support page example for col-sm. Compare the mobile layout with the tablet or desktop layout. Chapter 4, topic 1, example 2.

  3. Example 3: Long translation

    Replace a short English label in the event page with a much longer translated label while using col-sm. Confirm wrapping does not widen the viewport. Chapter 4, topic 1, example 3.

  4. Example 4: Persian test

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

  5. Example 5: Arabic test

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

  6. Example 6: Accessibility review

    Use col-sm in the lesson page and verify semantic HTML, accessible names, keyboard interaction, focus visibility, and status messaging. Chapter 4, topic 1, example 6.

  7. Example 7: Content stress

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

  8. Example 8: Utility comparison

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

  9. Example 9: JavaScript-state test

    If col-sm uses Bootstrap JavaScript, test open, close, focus, disposal, and repeated initialization in the course page. If not, verify the example works without JavaScript. Chapter 4, topic 1, example 9.

  10. Example 10: Production review

    Review col-sm in the dashboard for breakpoints, RTL, Google Translate, zoom, keyboard use, performance, and maintainable class choices. Chapter 4, topic 1, example 10.

Bootstrap coding example

<div class="row g-3"><div class="col-12 col-sm-6"><div class="p-3 border">Column A</div></div><div class="col-12 col-sm-6"><div class="p-3 border">Column B</div></div></div>

Step-by-step code explanation

  1. Identify the Bootstrap class, data attribute, or JavaScript API used for col-sm.
  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 col-sm 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 col-sm from Chapter 4. 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.

4.2 col-md

col-md is part of Bootstrap 5.3.8 covered in Chapter 4. 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 col-md in Chapter 4, 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 col-md 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

col-md is part of Bootstrap 5.3.8 covered in Chapter 4. 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 event page that demonstrates col-md. Keep the Bootstrap classes visible in the markup and explain which class provides the behavior. Chapter 4, topic 2, example 1.

  2. Example 2: Responsive variation

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

  3. Example 3: Long translation

    Replace a short English label in the account page with a much longer translated label while using col-md. Confirm wrapping does not widen the viewport. Chapter 4, topic 2, example 3.

  4. Example 4: Persian test

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

  5. Example 5: Arabic test

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

  6. Example 6: Accessibility review

    Use col-md in the booking page and verify semantic HTML, accessible names, keyboard interaction, focus visibility, and status messaging. Chapter 4, topic 2, example 6.

  7. Example 7: Content stress

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

  8. Example 8: Utility comparison

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

  9. Example 9: JavaScript-state test

    If col-md uses Bootstrap JavaScript, test open, close, focus, disposal, and repeated initialization in the profile screen. If not, verify the example works without JavaScript. Chapter 4, topic 2, example 9.

  10. Example 10: Production review

    Review col-md in the checkout for breakpoints, RTL, Google Translate, zoom, keyboard use, performance, and maintainable class choices. Chapter 4, topic 2, example 10.

Bootstrap coding example

<div class="row g-3"><div class="col-12 col-md-6"><div class="p-3 border">Column A</div></div><div class="col-12 col-md-6"><div class="p-3 border">Column B</div></div></div>

Step-by-step code explanation

  1. Identify the Bootstrap class, data attribute, or JavaScript API used for col-md.
  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 col-md 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 col-md from Chapter 4. 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.

4.3 col-lg

col-lg is part of Bootstrap 5.3.8 covered in Chapter 4. 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 col-lg in Chapter 4, 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 col-lg 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

col-lg is part of Bootstrap 5.3.8 covered in Chapter 4. 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 account page that demonstrates col-lg. Keep the Bootstrap classes visible in the markup and explain which class provides the behavior. Chapter 4, topic 3, example 1.

  2. Example 2: Responsive variation

    Add a breakpoint-specific class to the lesson page example for col-lg. Compare the mobile layout with the tablet or desktop layout. Chapter 4, topic 3, example 2.

  3. Example 3: Long translation

    Replace a short English label in the admin page with a much longer translated label while using col-lg. Confirm wrapping does not widen the viewport. Chapter 4, topic 3, example 3.

  4. Example 4: Persian test

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

  5. Example 5: Arabic test

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

  6. Example 6: Accessibility review

    Use col-lg in the dashboard and verify semantic HTML, accessible names, keyboard interaction, focus visibility, and status messaging. Chapter 4, topic 3, example 6.

  7. Example 7: Content stress

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

  8. Example 8: Utility comparison

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

  9. Example 9: JavaScript-state test

    If col-lg uses Bootstrap JavaScript, test open, close, focus, disposal, and repeated initialization in the contact form. If not, verify the example works without JavaScript. Chapter 4, topic 3, example 9.

  10. Example 10: Production review

    Review col-lg in the article for breakpoints, RTL, Google Translate, zoom, keyboard use, performance, and maintainable class choices. Chapter 4, topic 3, example 10.

Bootstrap coding example

<div class="row g-3"><div class="col-12 col-lg-6"><div class="p-3 border">Column A</div></div><div class="col-12 col-lg-6"><div class="p-3 border">Column B</div></div></div>

Step-by-step code explanation

  1. Identify the Bootstrap class, data attribute, or JavaScript API used for col-lg.
  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 col-lg 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 col-lg from Chapter 4. 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.

4.4 col-xl

col-xl is part of Bootstrap 5.3.8 covered in Chapter 4. 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 col-xl in Chapter 4, 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 col-xl 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

col-xl is part of Bootstrap 5.3.8 covered in Chapter 4. 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 admin page that demonstrates col-xl. Keep the Bootstrap classes visible in the markup and explain which class provides the behavior. Chapter 4, topic 4, example 1.

  2. Example 2: Responsive variation

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

  3. Example 3: Long translation

    Replace a short English label in the course page with a much longer translated label while using col-xl. Confirm wrapping does not widen the viewport. Chapter 4, topic 4, example 3.

  4. Example 4: Persian test

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

  5. Example 5: Arabic test

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

  6. Example 6: Accessibility review

    Use col-xl in the checkout and verify semantic HTML, accessible names, keyboard interaction, focus visibility, and status messaging. Chapter 4, topic 4, example 6.

  7. Example 7: Content stress

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

  8. Example 8: Utility comparison

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

  9. Example 9: JavaScript-state test

    If col-xl uses Bootstrap JavaScript, test open, close, focus, disposal, and repeated initialization in the settings panel. If not, verify the example works without JavaScript. Chapter 4, topic 4, example 9.

  10. Example 10: Production review

    Review col-xl in the gallery for breakpoints, RTL, Google Translate, zoom, keyboard use, performance, and maintainable class choices. Chapter 4, topic 4, example 10.

Bootstrap coding example

<div class="row g-3"><div class="col-12 col-xl-6"><div class="p-3 border">Column A</div></div><div class="col-12 col-xl-6"><div class="p-3 border">Column B</div></div></div>

Step-by-step code explanation

  1. Identify the Bootstrap class, data attribute, or JavaScript API used for col-xl.
  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 col-xl 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 col-xl from Chapter 4. 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.

4.5 col-xxl

col-xxl is part of Bootstrap 5.3.8 covered in Chapter 4. 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 col-xxl in Chapter 4, 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 col-xxl 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

col-xxl is part of Bootstrap 5.3.8 covered in Chapter 4. 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 course page that demonstrates col-xxl. Keep the Bootstrap classes visible in the markup and explain which class provides the behavior. Chapter 4, topic 5, example 1.

  2. Example 2: Responsive variation

    Add a breakpoint-specific class to the dashboard example for col-xxl. Compare the mobile layout with the tablet or desktop layout. Chapter 4, topic 5, example 2.

  3. Example 3: Long translation

    Replace a short English label in the profile screen with a much longer translated label while using col-xxl. Confirm wrapping does not widen the viewport. Chapter 4, topic 5, example 3.

  4. Example 4: Persian test

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

  5. Example 5: Arabic test

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

  6. Example 6: Accessibility review

    Use col-xxl in the article and verify semantic HTML, accessible names, keyboard interaction, focus visibility, and status messaging. Chapter 4, topic 5, example 6.

  7. Example 7: Content stress

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

  8. Example 8: Utility comparison

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

  9. Example 9: JavaScript-state test

    If col-xxl uses Bootstrap JavaScript, test open, close, focus, disposal, and repeated initialization in the support page. If not, verify the example works without JavaScript. Chapter 4, topic 5, example 9.

  10. Example 10: Production review

    Review col-xxl in the event page for breakpoints, RTL, Google Translate, zoom, keyboard use, performance, and maintainable class choices. Chapter 4, topic 5, example 10.

Bootstrap coding example

<div class="row g-3"><div class="col-12 col-xxl-6"><div class="p-3 border">Column A</div></div><div class="col-12 col-xxl-6"><div class="p-3 border">Column B</div></div></div>

Step-by-step code explanation

  1. Identify the Bootstrap class, data attribute, or JavaScript API used for col-xxl.
  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 col-xxl 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 col-xxl from Chapter 4. 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 4 review — 10 questions and answers

1. What should you inspect when col-sm does not behave as expected?

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

2. How should col-sm be tested before publishing?

Answer: Test col-sm 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 col-md does not behave as expected?

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

4. How should col-md be tested before publishing?

Answer: Test col-md 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 col-lg does not behave as expected?

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

6. How should col-lg be tested before publishing?

Answer: Test col-lg 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 col-xl does not behave as expected?

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

8. How should col-xl be tested before publishing?

Answer: Test col-xl 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 col-xxl does not behave as expected?

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

10. How should col-xxl be tested before publishing?

Answer: Test col-xxl 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.