Bootstrap 5.3.8 • Chapter 3 • Responsive LTR + RTL
Grid Fundamentals
Every topic includes its own Bootstrap coding example, explanation, ten teaching examples, expected result, practice, and responsive Persian/Arabic checks.
3.1 Rows and Columns
Rows and Columns is part of Bootstrap 5.3.8 covered in Chapter 3. 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 Rows and Columns in Chapter 3, 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 Rows and Columns 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
Rows and Columns is part of Bootstrap 5.3.8 covered in Chapter 3. 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
Example 1: Minimal component
Build the smallest profile screen that demonstrates Rows and Columns. Keep the Bootstrap classes visible in the markup and explain which class provides the behavior. Chapter 3, topic 1, example 1.
Example 2: Responsive variation
Add a breakpoint-specific class to the checkout example for Rows and Columns. Compare the mobile layout with the tablet or desktop layout. Chapter 3, topic 1, example 2.
Example 3: Long translation
Replace a short English label in the contact form with a much longer translated label while using Rows and Columns. Confirm wrapping does not widen the viewport. Chapter 3, topic 1, example 3.
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 3, topic 1, example 4.
Example 5: Arabic test
Translate the settings panel to Arabic. Check buttons, forms, dropdowns, navigation, and offcanvas placement for correct RTL behavior. Chapter 3, topic 1, example 5.
Example 6: Accessibility review
Use Rows and Columns in the gallery and verify semantic HTML, accessible names, keyboard interaction, focus visibility, and status messaging. Chapter 3, topic 1, example 6.
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 3, topic 1, example 7.
Example 8: Utility comparison
Rebuild one part of the event page using Bootstrap utilities instead of custom CSS, then compare readability and maintainability. Chapter 3, topic 1, example 8.
Example 9: JavaScript-state test
If Rows and Columns uses Bootstrap JavaScript, test open, close, focus, disposal, and repeated initialization in the analytics page. If not, verify the example works without JavaScript. Chapter 3, topic 1, example 9.
Example 10: Production review
Review Rows and Columns in the account page for breakpoints, RTL, Google Translate, zoom, keyboard use, performance, and maintainable class choices. Chapter 3, topic 1, example 10.
Bootstrap coding example
<div class="row"><div class="col">A</div><div class="col">B</div></div>Step-by-step code explanation
- Identify the Bootstrap class, data attribute, or JavaScript API used for Rows and Columns.
- Read the HTML nesting first. Bootstrap components often depend on a specific relationship between wrappers, controls, and content.
- Resize the viewport and observe which responsive classes become active at each breakpoint.
- 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.
- 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 Rows and Columns 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 Rows and Columns from Chapter 3. 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.
3.2 12-Column Grid
12-Column Grid is part of Bootstrap 5.3.8 covered in Chapter 3. 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 12-Column Grid in Chapter 3, 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 12-Column Grid 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
12-Column Grid is part of Bootstrap 5.3.8 covered in Chapter 3. 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
Example 1: Minimal component
Build the smallest contact form that demonstrates 12-Column Grid. Keep the Bootstrap classes visible in the markup and explain which class provides the behavior. Chapter 3, topic 2, example 1.
Example 2: Responsive variation
Add a breakpoint-specific class to the article example for 12-Column Grid. Compare the mobile layout with the tablet or desktop layout. Chapter 3, topic 2, example 2.
Example 3: Long translation
Replace a short English label in the settings panel with a much longer translated label while using 12-Column Grid. Confirm wrapping does not widen the viewport. Chapter 3, topic 2, example 3.
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 3, topic 2, example 4.
Example 5: Arabic test
Translate the support page to Arabic. Check buttons, forms, dropdowns, navigation, and offcanvas placement for correct RTL behavior. Chapter 3, topic 2, example 5.
Example 6: Accessibility review
Use 12-Column Grid in the event page and verify semantic HTML, accessible names, keyboard interaction, focus visibility, and status messaging. Chapter 3, topic 2, example 6.
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 3, topic 2, example 7.
Example 8: Utility comparison
Rebuild one part of the account page using Bootstrap utilities instead of custom CSS, then compare readability and maintainability. Chapter 3, topic 2, example 8.
Example 9: JavaScript-state test
If 12-Column Grid uses Bootstrap JavaScript, test open, close, focus, disposal, and repeated initialization in the lesson page. If not, verify the example works without JavaScript. Chapter 3, topic 2, example 9.
Example 10: Production review
Review 12-Column Grid in the admin page for breakpoints, RTL, Google Translate, zoom, keyboard use, performance, and maintainable class choices. Chapter 3, topic 2, example 10.
Bootstrap coding example
<div class="row"><div class="col-4">4 columns</div><div class="col-8">8 columns</div></div>Step-by-step code explanation
- Identify the Bootstrap class, data attribute, or JavaScript API used for 12-Column Grid.
- Read the HTML nesting first. Bootstrap components often depend on a specific relationship between wrappers, controls, and content.
- Resize the viewport and observe which responsive classes become active at each breakpoint.
- 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.
- 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 12-Column Grid 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 12-Column Grid from Chapter 3. 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.
3.3 Auto-Layout Columns
Auto-Layout Columns is part of Bootstrap 5.3.8 covered in Chapter 3. 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 Auto-Layout Columns in Chapter 3, 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 Auto-Layout Columns 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
Auto-Layout Columns is part of Bootstrap 5.3.8 covered in Chapter 3. 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
Example 1: Minimal component
Build the smallest settings panel that demonstrates Auto-Layout Columns. Keep the Bootstrap classes visible in the markup and explain which class provides the behavior. Chapter 3, topic 3, example 1.
Example 2: Responsive variation
Add a breakpoint-specific class to the gallery example for Auto-Layout Columns. Compare the mobile layout with the tablet or desktop layout. Chapter 3, topic 3, example 2.
Example 3: Long translation
Replace a short English label in the support page with a much longer translated label while using Auto-Layout Columns. Confirm wrapping does not widen the viewport. Chapter 3, topic 3, example 3.
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 3, topic 3, example 4.
Example 5: Arabic test
Translate the analytics page to Arabic. Check buttons, forms, dropdowns, navigation, and offcanvas placement for correct RTL behavior. Chapter 3, topic 3, example 5.
Example 6: Accessibility review
Use Auto-Layout Columns in the account page and verify semantic HTML, accessible names, keyboard interaction, focus visibility, and status messaging. Chapter 3, topic 3, example 6.
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 3, topic 3, example 7.
Example 8: Utility comparison
Rebuild one part of the admin page using Bootstrap utilities instead of custom CSS, then compare readability and maintainability. Chapter 3, topic 3, example 8.
Example 9: JavaScript-state test
If Auto-Layout Columns uses Bootstrap JavaScript, test open, close, focus, disposal, and repeated initialization in the booking page. If not, verify the example works without JavaScript. Chapter 3, topic 3, example 9.
Example 10: Production review
Review Auto-Layout Columns in the course page for breakpoints, RTL, Google Translate, zoom, keyboard use, performance, and maintainable class choices. Chapter 3, topic 3, example 10.
Bootstrap coding example
<div class="row"><div class="col">Auto</div><div class="col">Auto</div><div class="col">Auto</div></div>Step-by-step code explanation
- Identify the Bootstrap class, data attribute, or JavaScript API used for Auto-Layout Columns.
- Read the HTML nesting first. Bootstrap components often depend on a specific relationship between wrappers, controls, and content.
- Resize the viewport and observe which responsive classes become active at each breakpoint.
- 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.
- 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 Auto-Layout Columns 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 Auto-Layout Columns from Chapter 3. 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.
3.4 Column Widths
Column Widths is part of Bootstrap 5.3.8 covered in Chapter 3. 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 Column Widths in Chapter 3, 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 Column Widths 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
Column Widths is part of Bootstrap 5.3.8 covered in Chapter 3. 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
Example 1: Minimal component
Build the smallest support page that demonstrates Column Widths. Keep the Bootstrap classes visible in the markup and explain which class provides the behavior. Chapter 3, topic 4, example 1.
Example 2: Responsive variation
Add a breakpoint-specific class to the event page example for Column Widths. Compare the mobile layout with the tablet or desktop layout. Chapter 3, topic 4, example 2.
Example 3: Long translation
Replace a short English label in the analytics page with a much longer translated label while using Column Widths. Confirm wrapping does not widen the viewport. Chapter 3, topic 4, example 3.
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 3, topic 4, example 4.
Example 5: Arabic test
Translate the lesson page to Arabic. Check buttons, forms, dropdowns, navigation, and offcanvas placement for correct RTL behavior. Chapter 3, topic 4, example 5.
Example 6: Accessibility review
Use Column Widths in the admin page and verify semantic HTML, accessible names, keyboard interaction, focus visibility, and status messaging. Chapter 3, topic 4, example 6.
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 3, topic 4, example 7.
Example 8: Utility comparison
Rebuild one part of the course page using Bootstrap utilities instead of custom CSS, then compare readability and maintainability. Chapter 3, topic 4, example 8.
Example 9: JavaScript-state test
If Column Widths uses Bootstrap JavaScript, test open, close, focus, disposal, and repeated initialization in the dashboard. If not, verify the example works without JavaScript. Chapter 3, topic 4, example 9.
Example 10: Production review
Review Column Widths in the profile screen for breakpoints, RTL, Google Translate, zoom, keyboard use, performance, and maintainable class choices. Chapter 3, topic 4, example 10.
Bootstrap coding example
<div class="row"><div class="col-3">25%</div><div class="col-9">75%</div></div>Step-by-step code explanation
- Identify the Bootstrap class, data attribute, or JavaScript API used for Column Widths.
- Read the HTML nesting first. Bootstrap components often depend on a specific relationship between wrappers, controls, and content.
- Resize the viewport and observe which responsive classes become active at each breakpoint.
- 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.
- 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 Column Widths 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 Column Widths from Chapter 3. 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.
3.5 Nested Grids
Nested Grids is part of Bootstrap 5.3.8 covered in Chapter 3. 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 Nested Grids in Chapter 3, 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 Nested Grids 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
Nested Grids is part of Bootstrap 5.3.8 covered in Chapter 3. 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
Example 1: Minimal component
Build the smallest analytics page that demonstrates Nested Grids. Keep the Bootstrap classes visible in the markup and explain which class provides the behavior. Chapter 3, topic 5, example 1.
Example 2: Responsive variation
Add a breakpoint-specific class to the account page example for Nested Grids. Compare the mobile layout with the tablet or desktop layout. Chapter 3, topic 5, example 2.
Example 3: Long translation
Replace a short English label in the lesson page with a much longer translated label while using Nested Grids. Confirm wrapping does not widen the viewport. Chapter 3, topic 5, example 3.
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 3, topic 5, example 4.
Example 5: Arabic test
Translate the booking page to Arabic. Check buttons, forms, dropdowns, navigation, and offcanvas placement for correct RTL behavior. Chapter 3, topic 5, example 5.
Example 6: Accessibility review
Use Nested Grids in the course page and verify semantic HTML, accessible names, keyboard interaction, focus visibility, and status messaging. Chapter 3, topic 5, example 6.
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 3, topic 5, example 7.
Example 8: Utility comparison
Rebuild one part of the profile screen using Bootstrap utilities instead of custom CSS, then compare readability and maintainability. Chapter 3, topic 5, example 8.
Example 9: JavaScript-state test
If Nested Grids uses Bootstrap JavaScript, test open, close, focus, disposal, and repeated initialization in the checkout. If not, verify the example works without JavaScript. Chapter 3, topic 5, example 9.
Example 10: Production review
Review Nested Grids in the contact form for breakpoints, RTL, Google Translate, zoom, keyboard use, performance, and maintainable class choices. Chapter 3, topic 5, example 10.
Bootstrap coding example
<div class="row"><div class="col-12"><div class="row"><div class="col-6">Nested</div><div class="col-6">Nested</div></div></div></div>Step-by-step code explanation
- Identify the Bootstrap class, data attribute, or JavaScript API used for Nested Grids.
- Read the HTML nesting first. Bootstrap components often depend on a specific relationship between wrappers, controls, and content.
- Resize the viewport and observe which responsive classes become active at each breakpoint.
- 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.
- 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 Nested Grids 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 Nested Grids from Chapter 3. 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 3 review — 10 questions and answers
1. What should you inspect when Rows and Columns does not behave as expected?
Answer: Check the Bootstrap classes, breakpoint, DOM structure, loaded CSS version, and any JavaScript data attributes involved in Rows and Columns. Then inspect computed styles to see which declaration wins.
2. How should Rows and Columns be tested before publishing?
Answer: Test Rows and Columns 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 12-Column Grid does not behave as expected?
Answer: Check the Bootstrap classes, breakpoint, DOM structure, loaded CSS version, and any JavaScript data attributes involved in 12-Column Grid. Then inspect computed styles to see which declaration wins.
4. How should 12-Column Grid be tested before publishing?
Answer: Test 12-Column Grid 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 Auto-Layout Columns does not behave as expected?
Answer: Check the Bootstrap classes, breakpoint, DOM structure, loaded CSS version, and any JavaScript data attributes involved in Auto-Layout Columns. Then inspect computed styles to see which declaration wins.
6. How should Auto-Layout Columns be tested before publishing?
Answer: Test Auto-Layout Columns 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 Column Widths does not behave as expected?
Answer: Check the Bootstrap classes, breakpoint, DOM structure, loaded CSS version, and any JavaScript data attributes involved in Column Widths. Then inspect computed styles to see which declaration wins.
8. How should Column Widths be tested before publishing?
Answer: Test Column Widths 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 Nested Grids does not behave as expected?
Answer: Check the Bootstrap classes, breakpoint, DOM structure, loaded CSS version, and any JavaScript data attributes involved in Nested Grids. Then inspect computed styles to see which declaration wins.
10. How should Nested Grids be tested before publishing?
Answer: Test Nested Grids 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.