diff --git a/docs/css/backgrounds/background-color.md b/docs/css/backgrounds/background-color.mdx
similarity index 96%
rename from docs/css/backgrounds/background-color.md
rename to docs/css/backgrounds/background-color.mdx
index 09793e9..4d08033 100644
--- a/docs/css/backgrounds/background-color.md
+++ b/docs/css/backgrounds/background-color.mdx
@@ -4,7 +4,7 @@ title: Background Color
sidebar_label: Background Color
sidebar_position: 1
tags: [background, color, css background, background color]
-description: Learn how to set the background color of an element in CSS using the background-color property.
+description: "Learn how to set the background color of an element in CSS using the background-color property."
keywords:
[
background color,
@@ -12,11 +12,13 @@ keywords:
background-color property,
css background-color,
]
+hide_table_of_contents: true
---
In CSS, the `background-color` property is used to set the background color of an element. The `background-color` property accepts a color value, which can be specified using various color formats such as hexadecimal, RGB, RGBA, HSL, and HSLA.
## Syntax
@@ -53,6 +55,7 @@ In the HTML code below, the CSS rule will apply the light blue color to the back
By using the `background-color` property, you can customize the background color of elements on your web page to create visually appealing designs.
:::info Additional Information
diff --git a/docs/css/backgrounds/background-image/background-attachment.md b/docs/css/backgrounds/background-image/background-attachment.mdx
similarity index 96%
rename from docs/css/backgrounds/background-image/background-attachment.md
rename to docs/css/backgrounds/background-image/background-attachment.mdx
index 010adf2..7feb556 100644
--- a/docs/css/backgrounds/background-image/background-attachment.md
+++ b/docs/css/backgrounds/background-image/background-attachment.mdx
@@ -4,7 +4,7 @@ title: Background Attachment
sidebar_label: Background Attachment
sidebar_position: 4
tags: [background, css background, background attachment, background-attachment property]
-description: Learn how to set the background attachment behavior of an element in CSS using the background-attachment property.
+description: "Learn how to set the background attachment behavior of an element in CSS using the background-attachment property."
keywords:
[
background attachment,
@@ -12,11 +12,13 @@ keywords:
background-attachment property,
css background-attachment,
]
+hide_table_of_contents: true
---
In CSS, the `background-attachment` property is used to specify whether the background image of an element scrolls with the content or remains fixed as the content moves. This property is used to control the attachment behavior of the background image.
## Syntax
@@ -57,6 +59,7 @@ In the HTML code below, the CSS rule will apply the `fixed` background attachmen
By using the `background-attachment` property, you can control how the background image behaves when the content is scrolled, allowing you to create various visual effects on your web page.
:::info Additional Information
@@ -128,6 +131,7 @@ Now, you can see the output of the above code in the Browser Window like this:
In this example, the background image remains fixed within the viewport as the content is scrolled, creating a visually appealing effect on the web page.
## Conclusion
diff --git a/docs/css/backgrounds/background-image/background-position.md b/docs/css/backgrounds/background-image/background-position.mdx
similarity index 97%
rename from docs/css/backgrounds/background-image/background-position.md
rename to docs/css/backgrounds/background-image/background-position.mdx
index bad87f9..36cec36 100644
--- a/docs/css/backgrounds/background-image/background-position.md
+++ b/docs/css/backgrounds/background-image/background-position.mdx
@@ -4,7 +4,7 @@ title: Background Position
sidebar_label: Background Position
sidebar_position: 3
tags: [background, css background, background position, background-position property]
-description: Learn how to set the position of the background image of an element in CSS using the background-position property.
+description: "Learn how to set the position of the background image of an element in CSS using the background-position property."
keywords:
[
background position,
@@ -12,11 +12,13 @@ keywords:
background-position property,
css background-position,
]
+hide_table_of_contents: true
---
In CSS, the `background-position` property is used to specify the position of the background image of an element. This property allows you to control the placement of the background image within the element's background area.
## Syntax
@@ -67,6 +69,7 @@ In the HTML code below, the CSS rule will apply the `center` background position
By using the `background-position` property, you can control the placement of the background image within the element's background area, allowing you to create visually appealing designs on your web page.
:::note Try it yourself
diff --git a/docs/css/backgrounds/background-image/background-repeat.md b/docs/css/backgrounds/background-image/background-repeat.mdx
similarity index 97%
rename from docs/css/backgrounds/background-image/background-repeat.md
rename to docs/css/backgrounds/background-image/background-repeat.mdx
index a7a43fa..e701aee 100644
--- a/docs/css/backgrounds/background-image/background-repeat.md
+++ b/docs/css/backgrounds/background-image/background-repeat.mdx
@@ -4,7 +4,7 @@ title: Background Repeat
sidebar_label: Background Repeat
sidebar_position: 2
tags: [background, css background, background repeat, background-repeat property]
-description: Learn how to control the repetition of a background image in CSS using the background-repeat property.
+description: "Learn how to control the repetition of a background image in CSS using the background-repeat property."
keywords:
[
background repeat,
@@ -12,11 +12,13 @@ keywords:
background-repeat property,
css background-repeat,
]
+hide_table_of_contents: true
---
In CSS, the `background-repeat` property is used to specify how a background image is repeated within the background area of an element. This property allows you to control the repetition of the background image in both the horizontal and vertical directions.
## Syntax
@@ -64,6 +66,7 @@ In the HTML code below, the CSS rule will apply the `repeat` background repeat t
In this example, the background image will be repeated in both the horizontal and vertical directions to fill the background area of the `
` eleme
By using the shorthand notation for hex color values, you can write CSS code more efficiently and make it easier to specify colors in your stylesheets.
## Transparency with Hex Color Values
diff --git a/docs/css/colors/hsl.md b/docs/css/colors/hsl.mdx
similarity index 97%
rename from docs/css/colors/hsl.md
rename to docs/css/colors/hsl.mdx
index 24a0fbb..3922063 100644
--- a/docs/css/colors/hsl.md
+++ b/docs/css/colors/hsl.mdx
@@ -3,7 +3,7 @@ id: hsl
title: HSL Color Values
sidebar_label: HSL Color Values
tags: [color, hsl, css color, hsl color]
-description: HSL color values are used to specify colors in CSS using the hue, saturation, and lightness color channels.
+description: "HSL color values are used to specify colors in CSS using the hue, saturation, and lightness color channels."
keywords:
[
hsl color values,
@@ -12,6 +12,7 @@ keywords:
hsl color,
]
sidebar_position: 5
+hide_table_of_contents: true
---
import './css/style.css';
@@ -19,6 +20,7 @@ import './css/style.css';
In CSS, HSL color values are used to specify colors using the hue, saturation, and lightness color channels. HSL color values are represented by the `hsl()` function, which takes three arguments: the hue, saturation, and lightness color channels. The hue channel is represented by an angle value between 0 and 360 degrees, where 0 represents red, 120 represents green, and 240 represents blue. The saturation and lightness channels are represented by percentage values between 0% and 100%, where 0% represents no color saturation or lightness and 100% represents full color saturation or lightness.
## Syntax
@@ -54,6 +56,7 @@ In the HTML code below, the CSS rule will apply the green color with 50% lightne
```
:::info Additional Information
diff --git a/docs/css/colors/hsla.md b/docs/css/colors/hsla.mdx
similarity index 97%
rename from docs/css/colors/hsla.md
rename to docs/css/colors/hsla.mdx
index 1b4df84..c52dcc4 100644
--- a/docs/css/colors/hsla.md
+++ b/docs/css/colors/hsla.mdx
@@ -3,7 +3,7 @@ id: hsla
title: HSLA Color Values
sidebar_label: HSLA Color Values
tags: [color, hsla, css color, hsla color]
-description: HSLA color values are used to specify colors in CSS using the hue, saturation, lightness, and alpha color channels.
+description: "HSLA color values are used to specify colors in CSS using the hue, saturation, lightness, and alpha color channels."
keywords:
[
hsla color values,
@@ -12,11 +12,13 @@ keywords:
hsla color,
]
sidebar_position: 6
+hide_table_of_contents: true
---
In CSS, HSLA color values are used to specify colors using the hue, saturation, lightness, and alpha color channels. HSLA color values are represented by the `hsla()` function, which takes four arguments: the hue, saturation, lightness, and alpha color channels. The hue channel is represented by an angle value between 0 and 360 degrees, where 0 represents red, 120 represents green, and 240 represents blue. The saturation and lightness channels are represented by percentage values between 0% and 100%, where 0% represents no color saturation or lightness and 100% represents full color saturation or lightness. The alpha channel is represented by a decimal value between 0 and 1, where 0 represents full transparency and 1 represents full opacity.
## Syntax
@@ -55,6 +57,7 @@ In the HTML code below, the CSS rule will apply the blue color with 50% transpar
By using HSLA color values, you can create visually appealing color schemes with varying levels of transparency in your web designs.
:::info Additional Information
diff --git a/docs/css/colors/rgb.md b/docs/css/colors/rgb.mdx
similarity index 96%
rename from docs/css/colors/rgb.md
rename to docs/css/colors/rgb.mdx
index 7c346da..f03152a 100644
--- a/docs/css/colors/rgb.md
+++ b/docs/css/colors/rgb.mdx
@@ -3,7 +3,7 @@ id: rgb
title: RGB Color Values
sidebar_label: RGB Color Values
tags: [color, rgb, css color, rgb color]
-description: RGB color values are used to specify colors in CSS using the red, green, and blue color channels.
+description: "RGB color values are used to specify colors in CSS using the red, green, and blue color channels."
keywords:
[
rgb color values,
@@ -12,11 +12,13 @@ keywords:
rgb color,
]
sidebar_position: 2
+hide_table_of_contents: true
---
In CSS, RGB color values are used to specify colors using the red, green, and blue color channels. RGB color values are represented by the `rgb()` function, which takes three arguments: the red, green, and blue color channels. Each color channel is represented by an integer value between 0 and 255, where 0 represents no color and 255 represents the maximum intensity of the color channel.
## Syntax
@@ -79,6 +81,7 @@ The blue color channel controls the intensity of blue in the color. A value of 0
By adjusting the intensity of each color channel, you can create a wide variety of colors in the RGB color model.
## Example: Using RGB Color Values
diff --git a/docs/css/colors/rgba.md b/docs/css/colors/rgba.mdx
similarity index 97%
rename from docs/css/colors/rgba.md
rename to docs/css/colors/rgba.mdx
index 0b4f07f..5d9146c 100644
--- a/docs/css/colors/rgba.md
+++ b/docs/css/colors/rgba.mdx
@@ -3,7 +3,7 @@ id: rgba
title: RGBA Color Values
sidebar_label: RGBA Color Values
tags: [color, rgba, css color, rgba color]
-description: RGBA color values are used to specify colors in CSS using the red, green, blue, and alpha color channels.
+description: "RGBA color values are used to specify colors in CSS using the red, green, blue, and alpha color channels."
keywords:
[
rgba color values,
@@ -12,11 +12,13 @@ keywords:
rgba color,
]
sidebar_position: 4
+hide_table_of_contents: true
---
In CSS, RGBA color values are used to specify colors using the red, green, blue, and alpha color channels. RGBA color values are represented by the `rgba()` function, which takes four arguments: the red, green, blue, and alpha color channels. The red, green, and blue color channels are represented by integer values between 0 and 255, where 0 represents no color and 255 represents the maximum intensity of the color channel. The alpha channel is represented by a decimal value between 0 and 1, where 0 represents full transparency and 1 represents full opacity.
## Syntax
@@ -70,6 +72,7 @@ The RGBA color model is an extension of the RGB color model that includes an add
The RGBA color model is commonly used in web design to create visually appealing designs with elements that have varying levels of transparency.
## Example with Gradient Background
diff --git a/docs/css/fonts-and-text-properties/font-align.md b/docs/css/fonts-and-text-properties/font-align.mdx
similarity index 98%
rename from docs/css/fonts-and-text-properties/font-align.md
rename to docs/css/fonts-and-text-properties/font-align.mdx
index 694fcb6..9a50992 100644
--- a/docs/css/fonts-and-text-properties/font-align.md
+++ b/docs/css/fonts-and-text-properties/font-align.mdx
@@ -4,18 +4,20 @@ title: "CSS Font Alignment"
sidebar_label: "Font Alignment"
sidebar_position: 8
tags: ["css", "font alignment", "css font alignment", "css text alignment", "css text properties"]
-description: Learn how to use the CSS `text-align` property to align text within a container on your web page.
+description: "Learn how to use the CSS `text-align` property to align text within a container on your web page."
keywords:
- css text alignment
- css text align
- css text alignment property
- css text alignment values
- css text alignment examples
+hide_table_of_contents: true
---
In CSS, the `text-align` property is used to specify the horizontal alignment of text within a container. It allows you to control the positioning of text elements on your web page, aligning them to the left, right, center, or justified within their containing block.
The `text-align` property accepts several values that determine the alignment of text. By using this property, you can create visually appealing layouts by aligning text elements according to your design requirements.
@@ -84,6 +86,7 @@ The `text-align` property can be applied to various text elements, such as headi
:::
### 2. Justifying Text
@@ -160,6 +163,7 @@ Experiment with different text alignment values to see how they affect the layou
:::
### 4. Aligning Text to the Left
diff --git a/docs/css/fonts-and-text-properties/font-size.md b/docs/css/fonts-and-text-properties/font-size.mdx
similarity index 98%
rename from docs/css/fonts-and-text-properties/font-size.md
rename to docs/css/fonts-and-text-properties/font-size.mdx
index 385375f..ca74116 100644
--- a/docs/css/fonts-and-text-properties/font-size.md
+++ b/docs/css/fonts-and-text-properties/font-size.mdx
@@ -9,7 +9,7 @@ keywords:
- css text size
- css font size property
- css font size example
-description: Learn how to set the font size of text using the CSS font-size property.
+description: "Learn how to set the font size of text using the CSS font-size property."
tags:
- css
- font size
@@ -17,11 +17,13 @@ tags:
- css text size
- css font size property
- css font size example
+hide_table_of_contents: true
---
In CSS, the `font-size` property is used to set the size of text content. You can specify the font size in various units such as pixels, ems, rems, percentages, and more. By adjusting the font size, you can control the visual appearance of text on your web page, making it larger or smaller as needed.
## Syntax
@@ -39,6 +41,7 @@ selector {
- The `font-size` property affects the size of the text content but does not change the size of the element itself. It only adjusts the appearance of the text within the element.
:::info Note
The default font size for most browsers is `16px`. If you do not specify a font size for text content, it will be displayed at the browser's default size.
@@ -123,6 +126,7 @@ You can also set the font size using ems (`em`) as the unit of measurement. The
:::info Note
When using em units, the font size of an element is calculated relative to the font size of its parent element. If the parent element does not have a specified font size, the browser's default font size (`16px`) is used as the reference.
@@ -197,6 +201,7 @@ You can also use rems (`rem`) as a relative unit of measurement for font size. T
:::info Note
When using rem units, the font size of an element is calculated relative to the font size of the root element (``). This makes it easier to maintain consistent font sizes across your web page.
@@ -276,6 +281,7 @@ Viewport units (`vw`, `vh`, `vmin`, `vmax`) are relative to the size of the view
:::
### 7. Setting the Font Size Using Absolute Units
diff --git a/docs/css/fonts-and-text-properties/font-style.md b/docs/css/fonts-and-text-properties/font-style.mdx
similarity index 96%
rename from docs/css/fonts-and-text-properties/font-style.md
rename to docs/css/fonts-and-text-properties/font-style.mdx
index 4872339..c5f1879 100644
--- a/docs/css/fonts-and-text-properties/font-style.md
+++ b/docs/css/fonts-and-text-properties/font-style.mdx
@@ -9,7 +9,7 @@ keywords:
- css font style values
- css font style examples
- css text properties
-description: Learn how to use the CSS `font-style` property to style the italic or oblique text on your web page.
+description: "Learn how to use the CSS `font-style` property to style the italic or oblique text on your web page."
tags:
- css
- font style
@@ -17,11 +17,13 @@ tags:
- css font style property
- css font style values
- css text properties
+hide_table_of_contents: true
---
In CSS, the `font-style` property is used to specify the style of a font, such as italic or oblique. It allows you to apply different text styles to your web page, making text elements appear italicized or slanted as needed. The `font-style` property accepts several values that control the appearance of text, providing you with flexibility in styling your content.
## Syntax
@@ -97,6 +99,7 @@ Experiment with different font styles to see how they affect the appearance of t
:::
## Inheriting Font Style
diff --git a/docs/css/fonts-and-text-properties/font-weight.md b/docs/css/fonts-and-text-properties/font-weight.mdx
similarity index 97%
rename from docs/css/fonts-and-text-properties/font-weight.md
rename to docs/css/fonts-and-text-properties/font-weight.mdx
index ce3a6c1..47481f3 100644
--- a/docs/css/fonts-and-text-properties/font-weight.md
+++ b/docs/css/fonts-and-text-properties/font-weight.mdx
@@ -9,7 +9,7 @@ keywords:
- css bold text
- css font weight property
- css font weight values
-description: Learn how to use the CSS `font-weight` property to control the thickness of text in your web page.
+description: "Learn how to use the CSS `font-weight` property to control the thickness of text in your web page."
tags:
- css
- font weight
@@ -17,11 +17,13 @@ tags:
- css bold text
- css font weight property
- css font weight values
+hide_table_of_contents: true
---
In CSS, the `font-weight` property is used to specify the thickness or boldness of a font. It allows you to control the visual weight of text elements on your web page, making them appear lighter or bolder as needed. The `font-weight` property accepts a variety of values that range from `100` (thin) to `900` (bold), providing you with fine-grained control over the appearance of text.
## Syntax
@@ -84,6 +86,7 @@ The `font-weight` property can be applied to various text elements, such as head
:::
### 2. Using Numeric Values for Font Weight
diff --git a/docs/css/fonts-and-text-properties/generic-vs-specific-font-families.md b/docs/css/fonts-and-text-properties/generic-vs-specific-font-families.mdx
similarity index 97%
rename from docs/css/fonts-and-text-properties/generic-vs-specific-font-families.md
rename to docs/css/fonts-and-text-properties/generic-vs-specific-font-families.mdx
index 7d7521a..a264a31 100644
--- a/docs/css/fonts-and-text-properties/generic-vs-specific-font-families.md
+++ b/docs/css/fonts-and-text-properties/generic-vs-specific-font-families.mdx
@@ -9,7 +9,7 @@ keywords:
- css specific font families
- css font-family property
- css font-family values
-description: Learn the difference between generic and specific font families in CSS and how to use them to style text on your web page.
+description: "Learn the difference between generic and specific font families in CSS and how to use them to style text on your web page."
tags:
- css
- font families
@@ -18,11 +18,13 @@ tags:
- css specific font families
- css font-family property
- css font-family values
+hide_table_of_contents: true
---
In CSS, font families are used to define the typeface or font style that should be applied to text elements on a web page. There are two types of font families you can use in CSS: generic font families and specific font families. Understanding the difference between these two types of font families is essential for styling text effectively and ensuring consistent typography across your website.
## Generic Font Families
diff --git a/docs/css/introduction/comments-in-css.md b/docs/css/introduction/comments-in-css.mdx
similarity index 100%
rename from docs/css/introduction/comments-in-css.md
rename to docs/css/introduction/comments-in-css.mdx
diff --git a/docs/css/introduction/how-to-add-css-to-html.md b/docs/css/introduction/how-to-add-css-to-html.mdx
similarity index 100%
rename from docs/css/introduction/how-to-add-css-to-html.md
rename to docs/css/introduction/how-to-add-css-to-html.mdx
diff --git a/docs/css/introduction/what-is-css.md b/docs/css/introduction/what-is-css.mdx
similarity index 100%
rename from docs/css/introduction/what-is-css.md
rename to docs/css/introduction/what-is-css.mdx
diff --git a/docs/css/selectors/combinator-selectors/adjacent-sibling-selector.md b/docs/css/selectors/combinator-selectors/adjacent-sibling-selector.mdx
similarity index 100%
rename from docs/css/selectors/combinator-selectors/adjacent-sibling-selector.md
rename to docs/css/selectors/combinator-selectors/adjacent-sibling-selector.mdx
diff --git a/docs/css/selectors/combinator-selectors/child-selector.md b/docs/css/selectors/combinator-selectors/child-selector.mdx
similarity index 100%
rename from docs/css/selectors/combinator-selectors/child-selector.md
rename to docs/css/selectors/combinator-selectors/child-selector.mdx
diff --git a/docs/css/selectors/combinator-selectors/descendant-selector.md b/docs/css/selectors/combinator-selectors/descendant-selector.mdx
similarity index 100%
rename from docs/css/selectors/combinator-selectors/descendant-selector.md
rename to docs/css/selectors/combinator-selectors/descendant-selector.mdx
diff --git a/docs/css/selectors/combinator-selectors/general-sibling-selector.md b/docs/css/selectors/combinator-selectors/general-sibling-selector.mdx
similarity index 100%
rename from docs/css/selectors/combinator-selectors/general-sibling-selector.md
rename to docs/css/selectors/combinator-selectors/general-sibling-selector.mdx