ToMotion AI logo
Menu
Back to gallery

Public AI explainer video

Responsive CSS Media Query + English Keywords vs Any-Language Comments

Here’s a simple responsive CSS example for mobile and small screens. We’ll use a media query: @media (max-width: 768px). That means when the screen is...

Prompt

Source idea used to generate this video.

CSS /* રિસ્પોન્સિવ ડિઝાઇન (મોબાઇલ અને નાની સ્ક્રીન માટે) */ @media (max-width: 768px) { /* નેવિગેશન બારને ઉભા (વર્ટિકલ) ફોર્મેટમાં ગોઠવો */ .navbar { flex-direction: column; gap: 15px; /* તત્વો વચ્ચે 15px ની જગ્યા છોડો */ } /* 'અમારા વિશે' વિભાગના કન્ટેન્ટને ઉભા ફોર્મેટમાં ગોઠવો */ .about-content { flex-direction: column; } } 💡 મહત્વની નોંધ (Important Note): CSS કીવર્ડ્સ (જેમ કે @media, flex-direction, column વગેરે) અંગ્રેજીમાં જ લખવા પડે છે જેથી બ્રાઉઝર તેને યોગ્ય રીતે એક્ઝિક્યુટ કરી શકે. કોમેન્ટ્સ (/* ... */ વચ્ચે લખેલું લખાણ) બ્રાઉઝર ઇગ્નોર કરે છે, તેથી તમે ત્યાં ગુજરાતી સમેત કોઈપણ ભાષા લખી શકો છો

Narration

Narration used to create this video.

Video narration

Here’s a simple responsive CSS example for mobile and small screens. We’ll use a media query: @media (max-width: 768px). That means when the screen is 768 pixels wide or less, these styles take over. First, the navbar. On large screens it might be a row, but inside the media query we set: flex-direction: column; and add gap: 15px; so the links stack vertically with breathing room. Next, the about section. If .about-content is a horizontal layout on desktop, we switch it on small screens with: flex-direction: column; so the text and image stack neatly. One important rule: CSS keywords and syntax—like @media, max-width, flex-direction, and gap—must stay in English exactly. But comments inside /* ... */ are ignored by the browser, so you can write them in Gujarati or any language to help humans read the code.