Next.js QuestCode Sinhala

CSS

Style and layout — flexbox, grid, responsive design.

32 activities

CSS

Style a Button / Button එකක් Style කරන්න

Practice CSS backgrounds, text colors, spacing, and rounded corners. / CSS background, text colors, spacing සහ rounded corners භාවිතා කිරීමට පුහුණු වන්න.

Not started
CSS

Your First CSS Rule / ඔබේ පළමු CSS Rule එක

Learn how to write your first CSS rule and style an HTML element. / ඔබේ පළමු CSS rule එක ලියා HTML element එකකට style එකක් ලබාදෙන ආකාරය ඉගෙන ගන්න.

Locked
CSS

Change Text Color / Text එකේ පාට වෙනස් කරමු

Learn how to change the color of text using CSS. / CSS භාවිතයෙන් text එකක පාට වෙනස් කරන ආකාරය ඉගෙන ගන්න.

Locked
CSS

Change Background Color / පසුබිම් පාට වෙනස් කරමු

Learn how to change an element's background color using CSS. / CSS භාවිතයෙන් element එකක පසුබිම් පාට වෙනස් කරන ආකාරය ඉගෙන ගන්න.

Locked
CSS

Style a Heading / Heading එකක් Style කරමු

Learn how to style a heading by changing its text color and font size with CSS. / CSS භාවිතයෙන් heading එකක text color සහ font size වෙනස් කරන ආකාරය ඉගෙන ගන්න.

Locked
CSS

Change Font Size / අකුරු ප්‍රමාණය වෙනස් කරමු

Learn how to control text size using the CSS font-size property. / CSS font-size property එක භාවිතයෙන් text එකක අකුරු ප්‍රමාණය වෙනස් කරන ආකාරය ඉගෙන ගන්න.

Locked
CSS

Add a Border / Border එකක් එකතු කරමු

Learn how to add a visible border around an HTML element using CSS. / CSS භාවිතයෙන් HTML element එකක් වටා පැහැදිලි border එකක් එකතු කරන ආකාරය ඉගෙන ගන්න.

Locked
CSS

Add Padding / ඇතුළත ඉඩක් එකතු කරමු

Learn how to create space between an element's content and its border using CSS padding. / CSS padding භාවිතයෙන් element එකක content එක සහ border එක අතර ඇතුළත ඉඩක් ලබාදෙන ආකාරය ඉගෙන ගන්න.

Locked
CSS

Add Margin / පිටත ඉඩක් එකතු කරමු

Learn how to create space outside an HTML element using CSS margin. / CSS margin භාවිතයෙන් HTML element එකක පිටත ඉඩක් නිර්මාණය කරන ආකාරය ඉගෙන ගන්න.

Locked
CSS

Set Width and Height / පළල සහ උස සකස් කරමු

Learn how to control an element's width and height using CSS. / CSS භාවිතයෙන් element එකක පළල සහ උස සකස් කරන ආකාරය ඉගෙන ගන්න.

Locked
CSS

Create Your First Styled Card / ඔබේ පළමු Styled Card එක හදමු

Learn to combine CSS properties to create a neat card with a light background, blue border, spacing, and rounded corners. / පසුබිම් වර්ණය, නිල් border එක, ඇතුළත ඉඩ සහ වටකුරු කොන් යොදාගෙන ලස්සන Card එකක් සාදන්න.

Locked
CSS

Master the CSS Box Model / CSS Box Model එක හඳුනාගමු

Understand how content, padding, border, and margin work together to control the space around an element. / Content, padding, border සහ margin එකට ක්‍රියා කරලා element එකක වටා ඇති ඉඩ පාලනය කරන ආකාරය ඉගෙනගන්න.

Locked
CSS

Understand Box Sizing / Box Sizing තේරුම් ගනිමු

Learn how the CSS box-sizing property controls an element's total width and helps create predictable layouts. / CSS box-sizing property එක මඟින් element එකක මුළු පළල පාලනය කර layout එක නිවැරදිව සකස් කරන ආකාරය ඉගෙනගන්න.

Locked
CSS

Center Elements with Flexbox / Flexbox භාවිතයෙන් Elements මැදට ගනිමු

Learn how to center an element horizontally and vertically using CSS Flexbox. / CSS Flexbox භාවිතයෙන් element එකක් තිරස්ව සහ සිරස්ව මැදට ගන්නා ආකාරය ඉගෙනගන්න.

Locked
CSS

Build a Horizontal Navigation Bar / Horizontal Navigation Bar එකක් හදමු

Use CSS Flexbox and gap to arrange navigation links in a clean horizontal row. / Navigation links පිළිවෙළට තිරස් පේළියක සකස් කිරීමට CSS Flexbox සහ gap භාවිත කරන්න.

Locked
CSS

Space Items with Flexbox / Flexbox භාවිතයෙන් Items අතර ඉඩ බෙදමු

Learn how to distribute items across a container using justify-content: space-between. / justify-content: space-between භාවිතයෙන් container එකක් තුළ items අතර ඉඩ බෙදාහරින ආකාරය ඉගෙනගන්න.

Locked
CSS

Build a Two-Column Layout / Columns දෙකක Layout එකක් හදමු

Create a responsive-looking two-column layout using Flexbox and gap. / Flexbox සහ gap භාවිතයෙන් columns දෙකක් සහිත layout එකක් නිර්මාණය කරන්න.

Locked
CSS

Change Flexbox Direction / Flexbox දිශාව වෙනස් කරමු

Learn how to arrange elements vertically using flex-direction: column and understand how it differs from row. / flex-direction: column භාවිතයෙන් elements සිරස්ව සකස් කරන ආකාරය සහ එය row සමඟ වෙනස් වන ආකාරය ඉගෙනගන්න.

Locked
CSS

Make a Flexbox Layout Wrap / Flexbox Items ඊළඟ පේළියට ගෙනයමු

English: Learn how to wrap Flexbox items into multiple rows when there is not enough horizontal space. සිංහල: තිරස් ඉඩ ප්‍රමාණවත් නොවන විට Flexbox items පේළි කිහිපයකට සකස් කරන ආකාරය ඉගෙනගන්න.

Locked
CSS

Control Flex Item Growth / flex-grow මඟින් Items වල පළල පාලනය කරමු

English: Learn how flex-grow allows Flexbox items to expand and share the available free space inside a container. සිංහල: Container එකක ඉතිරිවන හිස් ඉඩ Flexbox items අතර බෙදාදී ඒවා විශාල කරන ආකාරය ඉගෙනගන්න.

Locked
CSS

Control Flex Item Shrinking / flex-shrink මඟින් Items කුඩා වීම පාලනය කරමු

English: Learn how flex-shrink controls how much Flexbox items shrink when there is not enough space inside their container. සිංහල: Container එක තුළ ඉඩ ප්‍රමාණවත් නොවන විට Flexbox items කුඩා වන ප්‍රමාණය flex-shrink මඟින් පාලනය කරන ආකාරය ඉගෙනගන්න.

Locked
CSS

Master the Flex Shorthand / flex Property එක භාවිත කරමු

English: Learn how the flex shorthand combines flex-grow, flex-shrink, and flex-basis to control the size and flexibility of Flexbox items. සිංහල: Flexbox items වල ප්‍රමාණය සහ නම්‍යශීලීභාවය පාලනය කිරීමට flex-grow, flex-shrink සහ flex-basis එකම flex property එකකින් භාවිත කරන ආකාරය ඉගෙනගන්න.

Locked
CSS

Align One Flex Item with align-self / තනි Flex Item එකක් Align කරමු

English: Learn how to align one Flexbox item independently using align-self without changing the alignment of the other items. සිංහල: අනෙක් Flexbox items වල alignment වෙනස් නොකර align-self භාවිතයෙන් එක් item එකක් පමණක් වෙනම align කරන ආකාරය ඉගෙනගන්න.

Locked
CSS

Build a Responsive Card Layout with Flexbox / Responsive Card Layout එකක් හදමු

English: Build a flexible card layout using Flexbox, flex-wrap, and gap so cards can move to new rows when space is limited. සිංහල: ඉඩ සීමිත වන විට cards අලුත් පේළිවලට යා හැකි responsive layout එකක් Flexbox, flex-wrap සහ gap භාවිතයෙන් නිර්මාණය කරන්න.

Locked
CSS

Create Equal-Height Cards with Flexbox / එකම උස ඇති Cards හදමු

English: Use Flexbox to create equal-height cards and align their buttons neatly at the bottom. සිංහල: Flexbox භාවිතයෙන් එකම උස ඇති cards සාදා ඒවායේ buttons පහළට පිළිවෙළට align කරන ආකාරය ඉගෙනගන්න.

Locked
CSS

Build a Sidebar and Main Content Layout

English: Use Flexbox to create a fixed-width sidebar beside a flexible main content area. සිංහල: Flexbox භාවිතයෙන් නියමිත පළලක් ඇති Sidebar එකක් සහ ඉතිරි ඉඩ ලබාගන්නා Main Content area එකක් සාදන්න.

Locked
CSS

Build a Responsive Sidebar Layout

English: Use Flexbox and a media query to stack the sidebar above the main content on smaller screens. සිංහල: Flexbox සහ Media Query භාවිතයෙන් කුඩා තිරවල Sidebar එක Main Content එකට ඉහළින් පෙන්වන responsive layout එකක් සාදන්න.

Locked
CSS

Create a Responsive Navigation Bar

English: Build a responsive navigation bar that displays links horizontally on desktop and vertically on smaller screens. සිංහල: Desktop තිරවල links තිරස්ව සහ කුඩා තිරවල සිරස්ව පෙන්වන responsive navigation bar එකක් සාදන්න.

Locked
CSS

Build a Responsive Grid of Cards

English: Create a responsive card grid that displays three columns on desktop, two on medium screens, and one on small screens. සිංහල: Desktop තිරවල columns තුනක්, මධ්‍යම තිරවල columns දෙකක් සහ කුඩා තිරවල column එකක් පෙන්වන responsive card grid එකක් සාදන්න.

Locked
CSS

Build a Two-Dimensional Layout with CSS Grid

English: Use CSS Grid rows, columns, and grid-column to build a dashboard layout with a header, sidebar, main content, and footer. සිංහල: CSS Grid rows, columns සහ grid-column භාවිතයෙන් Header, Sidebar, Main Content සහ Footer සහිත dashboard layout එකක් සාදන්න.

Locked
CSS

Create a Responsive Grid Using minmax()

English: Build a responsive card grid using repeat(), auto-fit, and minmax() without writing multiple media queries. සිංහල: Media Queries කිහිපයක් ලියන්නේ නැතුව repeat(), auto-fit සහ minmax() භාවිතයෙන් responsive card grid එකක් සාදන්න.

Locked
CSS

Control Grid Item Placement with grid-column and grid-row

English: Learn to position CSS Grid items across multiple columns and rows using grid-column, grid-row, and span. සිංහල: grid-column, grid-row සහ span භාවිතයෙන් CSS Grid cards columns සහ rows කිහිපයක් හරහා පැතිරෙන ලෙස සකස් කිරීමට ඉගෙන ගන්න.

Locked