Author: majadc
-
Notes Grid Layout on Main Page: CSS Snippet
The grid layout used to create pined notes on the main page. m a j a d c c o m The grid tracks are created using an explicit grid. The auto-fill keyword ensures that the browser places as many columns as possible while respecting the minmax() value. This means that the grid columns won’t […]
-
fit-content
fit-content is a value used to define the size of an HTML element based on its content. It is utilized in conjunction with the properties that accepts sizing values like width, height or properties used in the gird and flexbox layouts. fit-content adjusts a size of a element to fit the content within it, without […]
-
max-content
max-content is a value that can be used to define the size of HTML elements. It can be applied to properties that accept sizing values, such as width and height. The min-content value can also be used to size grid and flex layout elements. When using the max-content value, the element will be sized to […]
-
min-contnet
min-content is a value that can be used to define the size of HTML elements. It can be applied to properties that accept sizing values, such as width and height. The min-content value can also be used to size grid and flex layout elements. When using the min-content value, the element will be sized to […]
-
Position absolute within CSS Grid Layout
You can use the CSS property position: absolute within a grid layout. First, you need to set the position: relative property on the grid container and then use position: absolute on its child element. Once an item is absolutely positioned, it no longer participates in the grid layout flow and doesn’t affect the placement of […]
-
Position relative within CSS Grid Layout
It is possible to use position relative with a CSS grid item. When you use the CSS property position: relative with a CSS grid item, it affects the position of the grid item relative to its normal position within the grid layout. By default, grid items are positioned according to the grid layout rules, which […]
-
auto-fit and auto-fill
Auto-fill and auto-fit are two values for the grid-template-columns and grid-template-rows properties in CSS grid layout. grid-template-columns and grid-template-rows properties are used to define the number and size of grid tracks (rows and columns) in a CSS grid layout. Both of these properties accept a list of values, where each value represents a track. You […]
-
Grid areas
Grid areas are a feature of CSS Grid Layout that allow you to group together multiple cells of a grid and assign them a name. To define a grid area, you can use the grid-template-areas property, which allows you to create named grid areas by grouping together cells of the grid using quotation marks. See […]
-
Grid Lines
In CSS grid layout, the grid consists of tracks, which are formed by grid lines that create columns and rows. You can use these grid lines to position elements on the grid by addressing a specific cell using its row and column coordinates. You can refer to these coordinates using line numbers or by assigning […]
-
SVG
SVG – Scalable Vector Graphics – it is a two dimensional vector graphics. SVG images are created using XML markup language and can be easily edited, searched, indexed, scripted, and compressed without losing their quality. A vector graphic is a type of computer graphic that is created using mathematical equations to define lines, shapes, and […]