file stringlengths 16 94 | text stringlengths 32 24.4k | vector list |
|---|---|---|
css/reference/properties/place-self/index.md | CSS - Properties - place-self - Syntax:
Example:
/* Positional alignment */
place-self: auto center;
place-self: normal start;
place-self: center normal;
place-self: start auto;
place-self: end normal;
place-self: self-start auto;
place-self: self-end normal;
place-self: flex-start auto;
place-self: flex-end normal;
... | [
0.23203159868717194,
-0.38194310665130615,
-0.9324309229850769,
0.025637075304985046,
-0.6477318406105042,
-1.1379016637802124,
1.1340405941009521,
1.8285963535308838,
1.1661593914031982,
0.2467374950647354,
-0.30530741810798645,
0.5661048293113708,
-0.575006365776062,
0.4688555598258972,
... |
css/reference/properties/place-self/index.md | CSS - Properties - place-self - Syntax - Values:
This property is specified as one or two of the following keyword values:
- `auto`: Computes to the parent's `align-items` value.
- `normal`: The effect of this keyword is dependent of the layout mode we are in:
- In absolutely-positioned layouts, the keyword behaves... | [
-0.12301400303840637,
-0.0014483779668807983,
-1.0655394792556763,
0.5264484882354736,
0.6857464909553528,
-0.1946709007024765,
0.025888483971357346,
1.946221113204956,
0.16972632706165314,
0.15070271492004395,
-0.32434746623039246,
0.6359016299247742,
-0.6246443390846252,
0.88672637939453... |
css/reference/properties/place-self/index.md | CSS - Properties - place-self - Examples - Basic demonstration:
In the following example we have a 2 x 2 grid layout. Initially the grid container has `justify-items` and `align-items` values of `stretch` — the defaults — which causes the grid items to stretch across the entire width of their cells.
The second, third... | [
-0.8403400778770447,
-0.18887373805046082,
-1.3565020561218262,
-0.14894410967826843,
-0.31812533736228943,
-0.9785717725753784,
0.6892526745796204,
1.1953377723693848,
0.22861427068710327,
0.5163198709487915,
-0.5165642499923706,
0.4889960289001465,
-1.253239631652832,
0.23983311653137207... |
css/reference/properties/place-self/index.md | CSS - Properties - place-self - Examples - Basic demonstration - HTML:
Example:
<article class="container">
<span>First</span>
<span>Second</span>
<span>Third</span>
<span>Fourth</span>
</article> | [
-0.07179524004459381,
0.09507904201745987,
-0.4983178973197937,
0.2372237741947174,
-0.5444256663322449,
-0.5425432324409485,
1.378402590751648,
0.8738275766372681,
0.10028009116649628,
0.7025135159492493,
-0.11283282935619354,
0.5102081894874573,
-0.20706050097942352,
-0.9604008197784424,... |
css/reference/properties/place-self/index.md | CSS - Properties - place-self - Examples - Basic demonstration - CSS:
Example:
html {
font-family: "Helvetica", "Arial", sans-serif;
letter-spacing: 1px;
}
article {
background-color: red;
display: grid;
grid-template-columns: 1fr 1fr;
grid-auto-rows: 80px;
grid-gap: 10px;
margin: 20px;
width: 300p... | [
-0.7426304817199707,
0.37816518545150757,
-0.7713958024978638,
-0.7012275457382202,
0.3683013916015625,
-1.3794423341751099,
-0.38997882604599,
1.6870967149734497,
-0.6132508516311646,
0.15415982902050018,
0.8265285491943359,
-0.20265673100948334,
-0.3821606934070587,
0.28484562039375305,
... |
css/reference/properties/padding-inline-start/index.md | CSS - Properties - padding-inline-start:
The `padding-inline-start` CSS property defines the logical inline start padding of an element, which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.
Example:
padding-inline-start: 20px;
writing-mode: horizontal-tb;
E... | [
-0.005488924216479063,
0.5587424635887146,
-1.1128510236740112,
-0.30512651801109314,
0.4582032561302185,
-1.3118730783462524,
-0.2599041759967804,
1.6123782396316528,
0.3558707535266876,
-0.37795746326446533,
-0.03385167941451073,
-0.12010495364665985,
-0.137378990650177,
-0.1084580123424... |
css/reference/properties/padding-inline-start/index.md | CSS - Properties - padding-inline-start - Syntax:
Example:
/* <length> values */
padding-inline-start: 10px; /* An absolute length */
padding-inline-start: 1em; /* A length relative to the text size */
/* <percentage> value */
padding-inline-start: 5%; /* A padding relative to the block container's width */
/* Glob... | [
-0.3844393491744995,
0.3599267601966858,
-0.5363821387290955,
0.024340473115444183,
-0.37803971767425537,
-1.1241618394851685,
0.535163938999176,
2.152218818664551,
0.43455201387405396,
0.15803709626197815,
-1.1570582389831543,
0.5900335311889648,
-1.0143455266952515,
0.5022250413894653,
... |
css/reference/properties/padding-inline-start/index.md | CSS - Properties - padding-inline-start - Syntax - Values:
- `<length>`: The size of the padding as a fixed value. Must be non-negative.
- `<percentage>`: The size of the padding as a percentage, relative to the inline size (width in a horizontal language, defined by `writing-mode`) of the containing block... | [
-1.1387748718261719,
-0.16989640891551971,
-0.9398382902145386,
-0.08334915339946747,
-0.42964574694633484,
-0.6650835871696472,
0.9427013993263245,
2.078845739364624,
0.5312609672546387,
-0.12283286452293396,
-1.1428356170654297,
0.3440554141998291,
-0.23353126645088196,
0.165894225239753... |
css/reference/properties/padding-inline-start/index.md | CSS - Properties - padding-inline-start - Description:
The `padding-inline-start` property takes the same values as physical properties such as `padding-top`. However, it can be equivalent to `padding-left`, `padding-right`, `padding-top`, or `padding-bottom` depending on the values set for `writing-mode`, `direction`... | [
-0.7424593567848206,
0.5390247702598572,
-0.725258469581604,
0.26868879795074463,
0.9333963394165039,
-0.1336185336112976,
0.32806217670440674,
1.720686912536621,
0.37854376435279846,
-0.19375847280025482,
-0.37194669246673584,
-0.25552108883857727,
-0.06673531234264374,
-0.152207940816879... |
css/reference/properties/padding-inline-start/index.md | CSS - Properties - padding-inline-start - Examples - Setting inline start padding for vertical text - HTML:
Example:
<div>
<p class="exampleText">Example text</p>
</div> | [
-1.7058277130126953,
0.27380234003067017,
-0.5072487592697144,
0.5066350102424622,
-0.6053830981254578,
0.12307524681091309,
1.249192476272583,
2.2579262256622314,
0.45866143703460693,
-0.46495354175567627,
-0.9680796265602112,
0.0919037014245987,
-0.3132195770740509,
-0.35519304871559143,... |
css/reference/properties/padding-inline-start/index.md | CSS - Properties - padding-inline-start - Examples - Setting inline start padding for vertical text - CSS:
Example:
div {
background-color: yellow;
width: 120px;
height: 120px;
}
.exampleText {
writing-mode: vertical-lr;
padding-inline-start: 20px;
background-color: #c8c800;
} | [
-2.245638847351074,
0.40659716725349426,
-0.5085105895996094,
-0.04556416720151901,
-0.28462347388267517,
0.6543692946434021,
0.829587459564209,
2.016024351119995,
0.34628725051879883,
-0.3487240970134735,
-0.9699707627296448,
0.41698119044303894,
-0.20889616012573242,
0.06789612770080566,... |
css/reference/properties/overscroll-behavior-block/index.md | CSS - Properties - overscroll-behavior-block:
The `overscroll-behavior-block` CSS property sets the browser's behavior when the block direction boundary of a scrolling area is reached.
See `overscroll-behavior` for a full explanation. | [
-1.086176872253418,
-0.3781577944755554,
-1.33966863155365,
0.8800546526908875,
-0.1953602433204651,
-0.9322320222854614,
-0.4287829101085663,
0.18330314755439758,
0.008938983082771301,
0.3821137547492981,
0.10777744650840759,
0.05624529719352722,
-0.25531333684921265,
0.5799451470375061,
... |
css/reference/properties/overscroll-behavior-block/index.md | CSS - Properties - overscroll-behavior-block - Syntax:
Example:
/* Keyword values */
overscroll-behavior-block: auto; /* default */
overscroll-behavior-block: contain;
overscroll-behavior-block: none;
/* Global values */
overscroll-behavior-block: inherit;
overscroll-behavior-block: initial;
overscroll-behavior-bloc... | [
-0.5616767406463623,
0.1855376809835434,
-0.35888972878456116,
0.2896391749382019,
-0.08540542423725128,
-1.435177206993103,
0.45744794607162476,
1.5181034803390503,
-0.1508292257785797,
0.011438373476266861,
-0.46195197105407715,
-0.2234964370727539,
-0.41916874051094055,
0.67658191919326... |
css/reference/properties/overscroll-behavior-block/index.md | CSS - Properties - overscroll-behavior-block - Syntax - Values:
This property is specified as one of the following keyword values:
- `auto`: The default scroll overflow behavior occurs as normal.
- `contain`: Default scroll overflow behavior (e.g., "bounce" effects) is observed inside the element where this value is ... | [
-1.237537145614624,
-0.08539513498544693,
-0.8446194529533386,
-0.10452630370855331,
0.3585864007472992,
-0.6534477472305298,
-0.3320152163505554,
1.5514744520187378,
-0.17146599292755127,
0.0878034308552742,
0.3938872516155243,
0.0693928450345993,
0.21056923270225525,
-0.04635357856750488... |
css/reference/properties/overscroll-behavior-block/index.md | CSS - Properties - overscroll-behavior-block - Examples - Preventing block overscrolling:
In this demo we have two block-level boxes, one inside the other. The outer box has a large `height` set on it so the page will scroll vertically. The inner box has a small `width` (and `height`) set on it so it sits comfortably ... | [
-0.6328720450401306,
-0.08135174214839935,
-0.4922981560230255,
0.22405320405960083,
0.5849676132202148,
-0.25027284026145935,
0.13957864046096802,
0.9680951833724976,
0.21086230874061584,
0.3232998251914978,
0.520610511302948,
0.5027021169662476,
-0.08754170686006546,
0.017565764486789703... |
css/reference/properties/overscroll-behavior-block/index.md | CSS - Properties - overscroll-behavior-block - Examples - Preventing block overscrolling - HTML:
Example:
<main>
<div>
<div>
<p>
<code>overscroll-behavior-block</code> has been used to make it so that
when the scroll boundaries of the yellow inner box are reached, the
whole page do... | [
-1.401591181755066,
0.1338575929403305,
-0.3864322900772095,
0.13221310079097748,
0.37695643305778503,
0.012037988752126694,
0.19830626249313354,
0.9040990471839905,
-0.4893558919429779,
0.4656098186969757,
0.07787269353866577,
0.0911647230386734,
-0.20217810571193695,
0.06674864143133163,... |
css/reference/properties/overscroll-behavior-block/index.md | CSS - Properties - overscroll-behavior-block - Examples - Preventing block overscrolling - CSS:
Example:
main {
height: 3000px;
width: 500px;
background-color: white;
background-image: repeating-linear-gradient(
to bottom,
transparent 0px,
transparent 19px,
rgb(0 0 0 / 50%) 20px
);
}
main >... | [
-0.6377660036087036,
0.257991760969162,
-0.921001136302948,
-0.1742187738418579,
0.23385891318321228,
-0.7238826155662537,
-0.36885571479797363,
1.323183536529541,
-0.48449259996414185,
0.5522947311401367,
0.21511757373809814,
0.5402064919471741,
0.005393169820308685,
0.45311397314071655,
... |
css/reference/properties/anchor-scope/index.md | CSS - Properties - anchor-scope:
The `anchor-scope` CSS property can be used to limit the scope in which a positioned element can be associated with anchor elements to a particular subtree. | [
-0.7327229976654053,
-0.2715681195259094,
-0.4580201804637909,
-0.2781277596950531,
-0.5496475696563721,
-1.7664014101028442,
0.4939824938774109,
0.9229081869125366,
-0.18016530573368073,
0.6569341421127319,
0.37237659096717834,
-0.07159093022346497,
-0.3096601366996765,
0.2347900867462158... |
css/reference/properties/anchor-scope/index.md | CSS - Properties - anchor-scope - Syntax:
Example:
/* Single values */
anchor-scope: none;
anchor-scope: all;
anchor-scope: --anchor-name;
/* Multiple <dashed-ident> values */
anchor-scope: --anchor-name, --another-name;
/* Global values */
anchor-scope: inherit;
anchor-scope: initial;
anchor-scope: revert;
anchor-... | [
-0.5059642791748047,
0.4794904291629791,
0.07059133797883987,
-0.5396480560302734,
-0.7100242376327515,
-1.1890534162521362,
0.7819585204124451,
1.7584235668182373,
-0.010923542082309723,
0.18201954662799835,
0.19761547446250916,
-0.012767501175403595,
-0.04666120558977127,
-0.061634134501... |
css/reference/properties/anchor-scope/index.md | CSS - Properties - anchor-scope - Syntax - Values:
This property is specified as the keyword `none` or `all` or a comma-separated list of `<dashed-ident>` values:
- `none`: No anchor scope limiting happens on an element. This is the default value.
- `all`: Sets the scope so that any `anchor-name` values set in the su... | [
-0.5765571594238281,
-0.6490380167961121,
-0.6249249577522278,
-0.6446897983551025,
-0.5361155271530151,
-1.4022603034973145,
1.7520208358764648,
1.380061388015747,
0.28242412209510803,
-0.03472916781902313,
-0.006800232455134392,
-0.32169124484062195,
-0.4880797863006592,
0.19990006089210... |
css/reference/properties/anchor-scope/index.md | CSS - Properties - anchor-scope - Description:
When multiple anchor elements on a page are given the same `anchor-name` value and a positioned element is associated with that anchor name (by specifying the name as its `position-anchor` property value), the positioned element will be associated with the last anchor ele... | [
0.30218932032585144,
0.03521160036325455,
-0.7521562576293945,
0.09917314350605011,
0.47564369440078735,
-1.4630745649337769,
0.18526418507099152,
1.0368455648422241,
-0.4037728011608124,
0.1086132600903511,
0.311354398727417,
-0.16224732995033264,
-0.08757880330085754,
0.9173974394798279,... |
css/reference/properties/anchor-scope/index.md | CSS - Properties - anchor-scope - Examples - Basic usage:
This example demonstrates how anchor scope works at a basic level. It shows how an anchor element inside a scoped container can be limited to only having positioned elements inside the same scoped container tethered to it. | [
0.11085251718759537,
0.38193434476852417,
-0.7989336252212524,
-0.7174426913261414,
0.14147984981536865,
-0.9071548581123352,
0.6851477026939392,
0.8308077454566956,
-0.6854751110076904,
0.5673854947090149,
0.04782959073781967,
-0.3071954846382141,
-0.36590513586997986,
0.09302571415901184... |
css/reference/properties/anchor-scope/index.md | CSS - Properties - anchor-scope - Examples - Basic usage - HTML:
We specify a `section` element that we will set an anchor scope on. This contains two `div` elements, one to be turned into an anchor, and one to be an anchor-positioned element.
We also include a third `<div>` outside the `<section>`, which we will als... | [
-0.8693381547927856,
0.023971308022737503,
-0.043300971388816833,
0.047898069024086,
0.4126136302947998,
-0.6540435552597046,
0.9761006832122803,
1.0421133041381836,
0.07883748412132263,
0.4032263159751892,
0.43826696276664734,
0.044193416833877563,
-0.2919333279132843,
0.33300718665122986... |
css/reference/properties/anchor-scope/index.md | CSS - Properties - anchor-scope - Examples - Basic usage - CSS:
We first set `anchor-scope: --my-anchor` on the `<section>`. This limits its scope so that anchor element descendants of the `<section>` with a name of `--my-anchor` can only be bound to by positioned elements that are also descendants of the `<section>`.... | [
-0.12693023681640625,
0.26856812834739685,
0.12952472269535065,
-0.5708874464035034,
0.672315239906311,
-1.232858419418335,
-0.150386244058609,
1.5276902914047241,
0.1838780641555786,
0.2724723219871521,
0.4780460000038147,
-0.2354779839515686,
-0.3368406295776367,
0.9300966858863831,
-0... |
css/reference/properties/anchor-scope/index.md | CSS - Properties - anchor-scope - Examples - Comparing different `anchor-scope` values:
This example demonstrates the effects of the different `anchor-scope` values by allowing you to apply different `anchor-scope` values to multiple containers, all containing anchors with the same `anchor-name` value. | [
-0.9397296905517578,
-0.1622711420059204,
-0.7220879197120667,
-0.48123419284820557,
-0.7367954254150391,
-0.7656794786453247,
0.8466765880584717,
1.4996614456176758,
0.25232774019241333,
-0.09383001923561096,
0.4715976119041443,
-0.05088823288679123,
-0.5432403087615967,
-0.20371218025684... |
css/reference/properties/anchor-scope/index.md | CSS - Properties - anchor-scope - Examples - Comparing different `anchor-scope` values - HTML:
We specify three `section` elements that we will set an anchor scope on. Each `<section>` contains two `div` elements, one to be turned into an anchor, and one to be an anchor-positioned element.
We also include an addition... | [
-0.999562680721283,
0.10560309141874313,
-0.3754572868347168,
0.2339647114276886,
0.7621665596961975,
-0.6514208316802979,
0.7635883092880249,
1.1571002006530762,
-0.6448032259941101,
0.42514893412590027,
0.3322640359401703,
-0.006465017795562744,
-0.02256930246949196,
0.6395434737205505,
... |
css/reference/properties/anchor-scope/index.md | CSS - Properties - anchor-scope - Examples - Comparing different `anchor-scope` values - CSS:
We start by specifying our anchor elements as anchors by giving them two `anchor-name` values: `--my-anchor` and `--another-anchor`.
Example:
body {
display: flex;
justify-content: center;
gap: 50px;
margin-top: 5px... | [
0.08628976345062256,
0.2524661421775818,
-0.47057005763053894,
-0.374431312084198,
0.8043119311332703,
-0.8761624097824097,
0.410650372505188,
1.4023200273513794,
-0.5266690850257874,
0.14976075291633606,
0.5576086640357971,
-0.4862346351146698,
-0.691267192363739,
0.8668810129165649,
-1... |
css/reference/properties/overlay/index.md | CSS - Properties - overlay:
The `overlay` CSS property specifies whether an element appearing in the top layer (for example, a shown popover or modal `dialog` element) is actually rendered in the top layer. This property is only relevant within a list of `transition-property` values, and only if `allow-discrete` is se... | [
-0.2680995464324951,
-0.06562909483909607,
-0.7517508864402771,
0.4967707395553589,
0.48917925357818604,
-1.6165969371795654,
-0.5254374146461487,
0.9941920042037964,
-0.36624428629875183,
0.33633047342300415,
0.14536665380001068,
-0.017926916480064392,
-0.22150716185569763,
0.823207557201... |
css/reference/properties/overlay/index.md | CSS - Properties - overlay - Syntax:
Example:
/* Keyword values */
overlay: auto;
overlay: none;
/* Global values */
overlay: inherit;
overlay: initial;
overlay: revert;
overlay: revert-layer;
overlay: unset; | [
-0.631331205368042,
0.4520021378993988,
-0.020381471142172813,
0.36121320724487305,
-0.5376040935516357,
-0.9287970662117004,
0.8635525703430176,
2.1609995365142822,
0.3149947226047516,
0.020414212718605995,
-0.41931042075157166,
0.6015271544456482,
0.22673028707504272,
-0.0864733234047889... |
css/reference/properties/overlay/index.md | CSS - Properties - overlay - Syntax - Values:
This property is specified as one of the following keyword values:
- `auto`: The element is rendered in the top layer if it is promoted to the top layer.
- `none`: The element is not rendered in the top layer. | [
-0.4555729031562805,
-0.595678985118866,
-0.3633592426776886,
0.3465307652950287,
-0.3536815047264099,
-0.3968069553375244,
1.2465850114822388,
2.312952995300293,
-0.016152985394001007,
0.24611833691596985,
0.13293112814426422,
0.7192269563674927,
0.04175209254026413,
0.16572605073451996,
... |
css/reference/properties/overlay/index.md | CSS - Properties - overlay - Examples - Transitioning a popover:
In this example, a popover is animated as it transitions from hidden to shown and back again. | [
-0.05733023211359978,
0.11843404173851013,
-0.9461153745651245,
0.8116486072540283,
-0.319794237613678,
0.01133733056485653,
0.25946179032325745,
2.2169108390808105,
0.013835161924362183,
0.11132823675870895,
-0.2075127512216568,
0.08850991725921631,
-0.5689682364463806,
0.0480155795812606... |
css/reference/properties/overlay/index.md | CSS - Properties - overlay - Examples - Transitioning a popover - HTML:
The HTML contains a `div` element declared as a popover using the popover attribute, and a `button` element designated as the popover's display control using its popovertarget attribute.
Example:
<button popovertarget="mypopover">Show the popove... | [
-1.3791253566741943,
0.00040575582534074783,
0.049551598727703094,
0.7830469608306885,
0.2731887698173523,
-1.0324732065200806,
-0.039511844515800476,
0.7793782353401184,
-0.32732224464416504,
0.16103044152259827,
-0.28266265988349915,
0.19117772579193115,
-0.007871707901358604,
0.26136478... |
css/reference/properties/overlay/index.md | CSS - Properties - overlay - Examples - Transitioning a popover - CSS:
The `overlay` property is only present in the list of transitioned properties. As `overlay` is a user-agent controlled property, it is not declared in the pre-transition or post-transition states.
Example:
html {
font-family: "Helvetica", "Aria... | [
0.17393837869167328,
0.46368005871772766,
-0.6101685166358948,
0.3629336655139923,
0.8374372720718384,
-0.9378161430358887,
-0.4985910654067993,
2.042396306991577,
-0.3706374168395996,
0.20129141211509705,
-0.21625931560993195,
-0.027108337730169296,
-0.3526349365711212,
0.1580874025821685... |
css/reference/properties/transform-style/index.md | CSS - Properties - transform-style:
The `transform-style` CSS property sets whether children of an element are positioned in the 3D space or are flattened in the plane of the element.
Example:
transform-style: flat;
Example:
transform-style: preserve-3d;
Example:
<section class="default-example" id="default-exam... | [
-1.2511277198791504,
-0.7762410640716553,
-1.3639302253723145,
-0.12502677738666534,
0.07250554859638214,
-0.7827600240707397,
1.7667120695114136,
1.481784462928772,
0.12371869385242462,
0.2929992973804474,
0.19824282824993134,
0.3483586609363556,
-0.7038294672966003,
-0.38310617208480835,... |
css/reference/properties/transform-style/index.md | CSS - Properties - transform-style - Syntax:
Example:
/* Keyword values */
transform-style: flat;
transform-style: preserve-3d;
/* Global values */
transform-style: inherit;
transform-style: initial;
transform-style: revert;
transform-style: revert-layer;
transform-style: unset; | [
-0.7573584914207458,
0.4689548909664154,
-0.5844688415527344,
-0.00879199244081974,
-0.2875193953514099,
-0.5197330117225647,
0.8851279020309448,
2.073329448699951,
-0.037312451750040054,
-0.10266812145709991,
-0.38935378193855286,
0.7647566199302673,
-0.32990947365760803,
-0.7675612568855... |
css/reference/properties/transform-style/index.md | CSS - Properties - transform-style - Syntax - Values:
This property is specified as one of the following keyword values:
- `flat`: Indicates that the children of the element are lying in the plane of the element itself.
- `preserve-3d`: Indicates that the children of the element should be positioned in the 3D-space. | [
-0.8465530872344971,
-0.4359663724899292,
-1.0336823463439941,
-0.6259554624557495,
0.07383130490779877,
-0.6017442345619202,
2.049412488937378,
1.9123989343643188,
-0.2380916327238083,
0.20364481210708618,
-0.4968395233154297,
1.076177954673767,
-0.2778860926628113,
0.056564316153526306,
... |
css/reference/properties/transform-style/index.md | CSS - Properties - transform-style - Description:
The spec lists some grouping property values, which require the user agent to create a flattened representation of the descendant elements before they can be applied, and therefore force the element to have a used value of `transform-style: flat`, even when `preserve-3... | [
-1.1835663318634033,
-0.23466774821281433,
-1.2248289585113525,
0.13499970734119415,
0.47139936685562134,
-1.1673493385314941,
1.0662583112716675,
1.3778849840164185,
-0.5876046419143677,
0.31106650829315186,
0.028332065790891647,
0.4994093179702759,
0.39451220631599426,
-0.332804530858993... |
css/reference/properties/transform-style/index.md | CSS - Properties - transform-style - Examples - Transform style demonstration:
In this example we have a 3D cube created using transforms. The parent container of the cube faces has `transform-style: preserve-3d` set on it by default, so it is transformed in the 3D space and you can see it as intended.
We also provid... | [
-0.3140498101711273,
0.02251093089580536,
-0.9995090365409851,
-0.16717901825904846,
0.38946446776390076,
0.4735284745693207,
1.1618152856826782,
2.28337025642395,
-0.044220250099897385,
0.2403394728899002,
0.12059733271598816,
-0.1096387654542923,
-0.08004848659038544,
-0.5421371459960938... |
css/reference/properties/transform-style/index.md | CSS - Properties - transform-style - Examples - Transform style demonstration - HTML:
Example:
<section id="example-element">
<div class="face front">1</div>
<div class="face back">2</div>
<div class="face right">3</div>
<div class="face left">4</div>
<div class="face top">5</div>
<div class="face bottom"... | [
-1.333434820175171,
-0.03321142494678497,
-0.32111239433288574,
-0.3781745433807373,
-0.06030255928635597,
-0.49036505818367004,
0.25175121426582336,
1.222612977027893,
-0.8031761050224304,
-0.17488983273506165,
0.16312655806541443,
-0.31814059615135193,
-0.2795683741569519,
0.080334424972... |
css/reference/properties/transform-style/index.md | CSS - Properties - transform-style - Examples - Transform style demonstration - CSS:
Example:
#example-element {
margin: 50px;
width: 100px;
height: 100px;
transform-style: preserve-3d;
transform: rotate3d(1, 1, 1, 30deg);
}
.face {
display: flex;
align-items: center;
justify-content: center;
width... | [
-0.3652369976043701,
-0.12698853015899658,
-0.9992682337760925,
-0.5890436172485352,
0.10861638188362122,
-0.8876872062683105,
-0.08080321550369263,
1.96291983127594,
-0.14557640254497528,
0.15153595805168152,
0.449537992477417,
-0.14433762431144714,
0.35098445415496826,
0.6733359694480896... |
css/reference/properties/transform-style/index.md | CSS - Properties - transform-style - Examples - Transform style demonstration - JavaScript:
Example:
const cube = document.getElementById("example-element");
const checkbox = document.getElementById("preserve");
checkbox.addEventListener("change", () => {
cube.style.transformStyle = checkbox.checked ? "preserve-3d... | [
-0.7231536507606506,
-0.43738922476768494,
-0.04494540020823479,
-0.4069066643714905,
0.2078894078731537,
-0.6622107028961182,
0.6449605226516724,
1.0248314142227173,
-1.01346755027771,
-0.24716240167617798,
0.10188010334968567,
-0.8073664903640747,
-0.1598425954580307,
-0.1950488239526748... |
css/reference/properties/border-left-width/index.md | CSS - Properties - border-left-width:
The `border-left-width` CSS property sets the width of the left border of an element.
Example:
border-left-width: thick;
Example:
border-left-width: 2em;
Example:
border-left-width: 4px;
Example:
border-left-width: 2ex;
Example:
border-left-width: 0;
Example:
<section ... | [
-0.09880613535642624,
0.31316444277763367,
-0.8885708451271057,
-0.6061429977416992,
0.4725719690322876,
-1.863189935684204,
-0.10412910580635071,
1.3131568431854248,
0.09308654069900513,
-0.2835689187049866,
0.20000071823596954,
0.379745215177536,
-0.46747446060180664,
0.5674342513084412,... |
css/reference/properties/border-left-width/index.md | CSS - Properties - border-left-width - Syntax:
Example:
/* Keyword values */
border-left-width: thin;
border-left-width: medium;
border-left-width: thick;
/* <length> values */
border-left-width: 10em;
border-left-width: 3vmax;
border-left-width: 6px;
/* Global keywords */
border-left-width: inherit;
border-left-wi... | [
-1.0780812501907349,
0.5302166938781738,
0.16645249724388123,
-0.8216763138771057,
0.3213050067424774,
-1.5369645357131958,
-0.19876624643802643,
1.2333581447601318,
-0.04043569043278694,
-0.2658505141735077,
-1.038301706314087,
0.7983220219612122,
-0.6144849061965942,
0.43085241317749023,... |
css/reference/properties/border-left-width/index.md | CSS - Properties - border-left-width - Syntax - Values:
- `<line-width>`: Defines the width of the border, either as an explicit non-negative `<length>` or the keywords: `thin`, `medium`, or `thick`. The default is `medium`. | [
-1.049710988998413,
-0.4892822206020355,
-1.1658689975738525,
-0.967665433883667,
-0.2786233425140381,
-0.724577784538269,
-0.03858284652233124,
1.9267314672470093,
0.8437855243682861,
-0.23261995613574982,
-1.069183349609375,
0.9591943025588989,
-0.6965479254722595,
-0.3172282576560974,
... |
css/reference/properties/border-left-width/index.md | CSS - Properties - border-left-width - Examples - Comparing border widths - HTML:
Example:
<div>Element 1</div>
<div>Element 2</div> | [
-0.8545374274253845,
0.09618411958217621,
-0.48004716634750366,
-0.6635576486587524,
-0.6422725319862366,
-0.6578313708305359,
0.7094598412513733,
1.6639761924743652,
0.7881848216056824,
-0.6807504296302795,
-1.0575292110443115,
0.5411626100540161,
-0.4983138144016266,
-0.11205988377332687... |
css/reference/properties/border-left-width/index.md | CSS - Properties - border-left-width - Examples - Comparing border widths - CSS:
Example:
div {
border: 1px solid red;
margin: 1em 0;
}
div:nth-child(1) {
border-left-width: thick;
}
div:nth-child(2) {
border-left-width: 2em;
} | [
-1.159225583076477,
0.15071161091327667,
-0.4108032286167145,
-1.2603936195373535,
-0.4961055815219879,
-0.545748233795166,
0.8271671533584595,
1.5260850191116333,
0.39473915100097656,
-0.09775008261203766,
-0.3433048725128174,
0.960675835609436,
-1.0418648719787598,
0.013238780200481415,
... |
css/reference/properties/font-synthesis-position/index.md | CSS - Properties - font-synthesis-position:
The `font-synthesis-position` CSS property lets you specify whether or not a browser may synthesize the subscript and superscript "position" typefaces when they are missing in a font family, while using `font-variant-position` to set the positions.
The `font-synthesis-posit... | [
-0.9547191262245178,
-0.2646541893482208,
-0.980879008769989,
0.9033810496330261,
0.5298183560371399,
-1.1978081464767456,
0.8944182395935059,
2.213899612426758,
1.1139732599258423,
0.21259161829948425,
0.016263391822576523,
-0.16734768450260162,
0.4810604453086853,
-0.484139084815979,
-... |
css/reference/properties/font-synthesis-position/index.md | CSS - Properties - font-synthesis-position - Syntax:
Example:
/* Keyword values */
font-synthesis-position: auto;
font-synthesis-position: none;
/* Global values */
font-synthesis-position: inherit;
font-synthesis-position: initial;
font-synthesis-position: revert;
font-synthesis-position: revert-layer;
font-synthes... | [
-0.7934222221374512,
-0.058388520032167435,
-0.034643739461898804,
0.6102068424224854,
-0.48443445563316345,
-1.2706270217895508,
0.34699201583862305,
2.454087972640991,
1.3710037469863892,
0.3484305441379547,
-0.3041481077671051,
-0.05711393803358078,
0.2624613642692566,
-0.20310044288635... |
css/reference/properties/font-synthesis-position/index.md | CSS - Properties - font-synthesis-position - Syntax - Values:
This property is specified as one of the following keyword values:
- `auto`: Indicates that a missing position typeface may be synthesized by the browser if needed.
- `none`: Indicates that the synthesis of a missing position typeface by the browser is not... | [
-0.8092569708824158,
-0.5550459027290344,
-0.4456287920475006,
0.7868462800979614,
-0.2892735004425049,
-0.28464341163635254,
1.1424579620361328,
2.521495819091797,
1.0704145431518555,
-0.057387180626392365,
0.21032793819904327,
-0.41435056924819946,
0.7615640163421631,
-0.3807454407215118... |
css/reference/properties/font-synthesis-position/index.md | CSS - Properties - font-synthesis-position - Examples - Disabling synthesis of position typeface:
This example shows turning off synthesis of the superscript and subscript typefaces by the browser in the `Montserrat` font. | [
-0.3140454590320587,
-0.10103237628936768,
-0.7458382844924927,
-0.15507091581821442,
-0.38568347692489624,
-0.7993952631950378,
0.9215234518051147,
2.1298797130584717,
1.2080787420272827,
-0.5110950469970703,
0.02851644903421402,
-0.5997990965843201,
0.5109010338783264,
-0.813519477844238... |
css/reference/properties/font-synthesis-position/index.md | CSS - Properties - font-synthesis-position - Examples - Disabling synthesis of position typeface - HTML:
Example:
<p>
These are the default position <span class="super">superscript</span>,
position <span class="sub">subscript</span>, <strong>bold</strong> and
<em>oblique</em> typefaces.
</p>
<p class="no-syn">... | [
-1.2040497064590454,
0.026605505496263504,
-1.0123299360275269,
-0.4599848985671997,
0.12008851766586304,
-0.7183705568313599,
1.281252384185791,
1.4687464237213135,
1.5698457956314087,
-0.30970489978790283,
0.3631073832511902,
-0.47631335258483887,
0.8967902064323425,
-0.42190074920654297... |
css/reference/properties/font-synthesis-position/index.md | CSS - Properties - font-synthesis-position - Examples - Disabling synthesis of position typeface - CSS:
Example:
@import "https://fonts.googleapis.com/css2?family=Montserrat&display=swap";
* {
font-family: "Montserrat", sans-serif;
}
.super {
font-variant-position: super;
}
.sub {
font-variant-position: sub;
}... | [
-1.0190703868865967,
-0.0987071543931961,
-0.8170889616012573,
-0.22200633585453033,
-0.09760335832834244,
-1.0779664516448975,
0.31694138050079346,
2.132408380508423,
0.7801788449287415,
-0.09184492379426956,
0.24442821741104126,
-0.12652862071990967,
0.3060717284679413,
-0.56958901882171... |
css/reference/properties/overflow-inline/index.md | CSS - Properties - overflow-inline:
The `overflow-inline` CSS property sets what shows when content overflows the inline start and end edges of a box. This may be nothing, a scroll bar, or the overflow content.
Note: The `overflow-inline` property maps to `overflow-y` or `overflow-x` depending on the writing mode of ... | [
-1.1171631813049316,
-0.18675357103347778,
-1.0132075548171997,
0.1099042147397995,
0.7007342576980591,
-1.532378077507019,
-0.19788560271263123,
2.105480909347534,
0.20512768626213074,
-0.21816234290599823,
-0.24439339339733124,
-0.07555213570594788,
-0.15670140087604523,
-0.0372075065970... |
css/reference/properties/overflow-inline/index.md | CSS - Properties - overflow-inline - Syntax:
Example:
/* Keyword values */
overflow-inline: visible;
overflow-inline: hidden;
overflow-inline: clip;
overflow-inline: scroll;
overflow-inline: auto;
/* Global values */
overflow-inline: inherit;
overflow-inline: initial;
overflow-inline: revert;
overflow-inline: revert... | [
-1.0461345911026,
0.018263258039951324,
-0.4258632957935333,
0.17055314779281616,
0.12968236207962036,
-0.863102912902832,
-0.08182717114686966,
2.228715658187866,
0.15759114921092987,
-0.039682600647211075,
-0.34849852323532104,
0.450164794921875,
0.12417323887348175,
-0.5352039337158203,... |
css/reference/properties/overflow-inline/index.md | CSS - Properties - overflow-inline - Syntax - Values:
This property is specified as one of the following `<overflow>` keyword values:
- `visible`: Content is not clipped and may be rendered outside the padding box's inline start and end edges.
- `hidden`: Content is clipped if necessary to fit the inline dimens... | [
-0.6385459899902344,
0.1179451197385788,
-0.699171245098114,
0.2528010606765747,
0.7178578972816467,
-1.0240269899368286,
-0.019526079297065735,
1.750500202178955,
-0.18748298287391663,
0.31078600883483887,
0.15621422231197357,
0.10673989355564117,
-0.10944383591413498,
0.36772000789642334... |
css/reference/properties/overflow-inline/index.md | CSS - Properties - overflow-inline - Examples - Setting inline overflow behavior - HTML:
Example:
<ul>
<li>
<code>overflow-inline: hidden</code> (hides the text outside the box)
<div id="div1">ABCDEFGHIJKLMOPQRSTUVWXYZABCDEFGHIJKLMOPQRSTUVWXYZ</div>
</li>
<li>
<code>overflow-inline: scroll</code> (... | [
-1.601749300956726,
0.010802540928125381,
-0.30639898777008057,
-0.11612024903297424,
0.36475059390068054,
-0.8567383289337158,
-0.05167258530855179,
1.64543616771698,
-0.2663344442844391,
0.5294011235237122,
-0.12479331344366074,
0.30227208137512207,
-0.3128787875175476,
-0.06055808812379... |
css/reference/properties/overflow-inline/index.md | CSS - Properties - overflow-inline - Examples - Setting inline overflow behavior - CSS:
Example:
div {
border: 1px solid black;
width: 250px;
margin-bottom: 12px;
}
#div1 {
overflow-inline: hidden;
}
#div2 {
overflow-inline: scroll;
}
#div3 {
overflow-inline: visible;
}
#div4 {
overflow-inline: auto;
}... | [
-1.185022234916687,
0.23009273409843445,
-0.9365250468254089,
-0.6821172833442688,
0.5953862071037292,
-0.6594789624214172,
-0.03258843719959259,
1.5339924097061157,
-0.9207897186279297,
0.19946518540382385,
-0.04802300035953522,
0.2357197105884552,
0.0265546552836895,
-0.20987851917743683... |
css/reference/properties/border-inline-width/index.md | CSS - Properties - border-inline-width:
The `border-inline-width` CSS property defines the width of the logical inline borders of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the `border-top-width` and `border-bottom-... | [
-0.43115323781967163,
0.6475330591201782,
-1.0146757364273071,
-0.6303945779800415,
0.5857467651367188,
-1.4047377109527588,
-0.026094449684023857,
1.149104118347168,
0.4426282048225403,
-0.47839146852493286,
-0.22932957112789154,
0.24676671624183655,
-0.103795625269413,
0.4171364009380340... |
css/reference/properties/border-inline-width/index.md | CSS - Properties - border-inline-width - Syntax:
Example:
/* <'line-width'> values */
border-inline-width: 5px 10px;
border-inline-width: 5px;
border-inline-width: thick;
/* Global values */
border-inline-width: inherit;
border-inline-width: initial;
border-inline-width: revert;
border-inline-width: revert-layer;
bo... | [
-0.6786166429519653,
0.7843583226203918,
-0.5274269580841064,
-0.24669799208641052,
-0.08050614595413208,
-0.8531906008720398,
-0.019133105874061584,
1.990447759628296,
0.5675833821296692,
0.009391479194164276,
-1.365026831626892,
1.1459431648254395,
-0.3368968963623047,
-0.042720444500446... |
css/reference/properties/border-inline-width/index.md | CSS - Properties - border-inline-width - Syntax - Values:
- `<line-width>`: Defines the width of the border, either as an explicit non-negative `<length>` or the keywords: `thin`, `medium`, or `thick`. The default is `medium`. | [
-1.0010533332824707,
-0.27618762850761414,
-1.2263232469558716,
-0.8216736316680908,
-0.020803704857826233,
-0.5128123760223389,
-0.3286120593547821,
1.755868911743164,
0.48829567432403564,
-0.08622530102729797,
-1.052262783050537,
1.0439059734344482,
-0.5401545763015747,
-0.37617731094360... |
css/reference/properties/border-inline-width/index.md | CSS - Properties - border-inline-width - Examples - HTML:
Example:
<div>
<p class="exampleText">Example text</p>
</div> | [
-1.1461384296417236,
0.07017640769481659,
-0.5926944613456726,
-0.26970309019088745,
-0.5471657514572144,
-0.49863380193710327,
0.9559844136238098,
1.879794955253601,
0.4123295843601227,
-0.5530314445495605,
-0.86123126745224,
1.2388705015182495,
-0.4260652959346771,
-0.8807825446128845,
... |
css/reference/properties/border-inline-width/index.md | CSS - Properties - border-inline-width - Examples - CSS:
Example:
div {
background-color: yellow;
width: 120px;
height: 120px;
}
.exampleText {
writing-mode: vertical-lr;
border: 1px solid blue;
border-inline-width: 5px 10px;
} | [
-1.6735936403274536,
0.29395797848701477,
-0.499850869178772,
-0.4967988133430481,
0.08202469348907471,
0.37606123089790344,
0.3170083165168762,
1.5628267526626587,
-0.0828251838684082,
-0.3101928234100342,
-0.6828233003616333,
0.9233448505401611,
0.36320748925209045,
-0.11806883662939072,... |
css/reference/properties/font-synthesis-small-caps/index.md | CSS - Properties - font-synthesis-small-caps:
The `font-synthesis-small-caps` CSS property lets you specify whether or not the browser may synthesize small-caps typeface when it is missing in a font family. Small-caps glyphs typically use the form of uppercase letters but are reduced to the size of lowercase letters.
... | [
-1.6609498262405396,
0.6567819118499756,
-0.5882048606872559,
0.5031048655509949,
0.3305682837963104,
-1.2950259447097778,
0.5292838215827942,
2.1198432445526123,
0.5647039413452148,
0.07369804382324219,
-0.4439190924167633,
-0.06879808008670807,
0.26229947805404663,
-0.7874909043312073,
... |
css/reference/properties/font-synthesis-small-caps/index.md | CSS - Properties - font-synthesis-small-caps - Syntax:
Example:
/* Keyword values */
font-synthesis-small-caps: auto;
font-synthesis-small-caps: none;
/* Global values */
font-synthesis-small-caps: inherit;
font-synthesis-small-caps: initial;
font-synthesis-small-caps: revert;
font-synthesis-small-caps: revert-layer... | [
-1.1976598501205444,
0.2581365704536438,
0.020904485136270523,
0.49689793586730957,
-0.6292694211006165,
-1.1170068979263306,
0.1923355907201767,
2.433217763900757,
1.0046781301498413,
0.38015812635421753,
-0.299783319234848,
0.24017611145973206,
0.19844159483909607,
-0.3375532925128937,
... |
css/reference/properties/font-synthesis-small-caps/index.md | CSS - Properties - font-synthesis-small-caps - Syntax - Values:
This property is specified as one of the following keyword values:
- `auto`: Indicates that the missing small-caps typeface may be synthesized by the browser if needed.
- `none`: Indicates that the synthesis of the missing small-caps typeface by the brow... | [
-0.9794915318489075,
-0.06572489440441132,
-0.33480599522590637,
0.7284598350524902,
-0.24957312643527985,
-0.3621774911880493,
1.245680332183838,
2.526470184326172,
0.5688875913619995,
0.03070192039012909,
-0.07533729076385498,
-0.21946506202220917,
0.45135876536369324,
-0.617797732353210... |
css/reference/properties/font-synthesis-small-caps/index.md | CSS - Properties - font-synthesis-small-caps - Examples - Disabling synthesis of small-caps typeface:
This example shows turning off synthesis of the small-caps typeface by the browser in the `Montserrat` font. | [
-0.4851537346839905,
0.8614094257354736,
-0.4321257770061493,
0.06314685195684433,
-0.8038271069526672,
-1.025510311126709,
0.8549596667289734,
2.407952308654785,
0.7009390592575073,
-0.19556592404842377,
-0.36600184440612793,
-0.4470804035663605,
0.40872517228126526,
-0.8627250790596008,
... |
css/reference/properties/font-synthesis-small-caps/index.md | CSS - Properties - font-synthesis-small-caps - Examples - Disabling synthesis of small-caps typeface - HTML:
Example:
<p class="english">
These are the default <span class="small-caps">small-caps</span>,
<strong>bold</strong>, and <em>oblique</em> typefaces.
</p>
<p class="english no-syn">
The <span class="sma... | [
-1.2287988662719727,
0.41369375586509705,
0.051251597702503204,
-0.34524592757225037,
0.13313956558704376,
-1.1994810104370117,
1.3048008680343628,
1.5735290050506592,
0.7080950140953064,
-0.2697840929031372,
-0.20775990188121796,
0.21185457706451416,
0.34789741039276123,
-0.99991619586944... |
css/reference/properties/font-synthesis-small-caps/index.md | CSS - Properties - font-synthesis-small-caps - Examples - Disabling synthesis of small-caps typeface - CSS:
Example:
@import "https://fonts.googleapis.com/css2?family=Montserrat&display=swap";
.english {
font-family: "Montserrat", sans-serif;
}
.small-caps {
font-variant: small-caps;
}
.no-syn {
font-synthesis... | [
-0.7185032963752747,
0.8408761620521545,
-1.1304762363433838,
-0.2629587650299072,
0.5215087532997131,
-1.5309697389602661,
0.09461008757352829,
1.9929780960083008,
-0.07982176542282104,
-0.14011244475841522,
0.5482730269432068,
-0.3003554344177246,
0.407767117023468,
-0.20914942026138306,... |
css/reference/properties/position/index.md | CSS - Properties - position:
The `position` CSS property sets how an element is positioned in a document. The `top`, `right`, `bottom`, and `left` physical properties and the `inset-block-start`, `inset-block-end`, `inset-inline-start`, and `inset-inline-end` flow-relative logical properties can be used to determine t... | [
-0.1820574253797531,
0.0875275656580925,
-1.227288007736206,
0.2172655463218689,
0.5799055099487305,
-2.186094284057617,
-0.5932303071022034,
2.3137080669403076,
-0.23394224047660828,
0.2339577078819275,
0.6475024819374084,
0.09001968801021576,
0.33300337195396423,
0.3459591567516327,
-0... |
css/reference/properties/position/index.md | CSS - Properties - position - Syntax:
Example:
position: static;
position: relative;
position: absolute;
position: fixed;
position: sticky;
/* Global values */
position: inherit;
position: initial;
position: revert;
position: revert-layer;
position: unset; | [
-0.5329285860061646,
0.3279305696487427,
-0.5693838596343994,
0.14123409986495972,
-0.48841696977615356,
-1.2805333137512207,
1.2248181104660034,
1.761126160621643,
0.7411161065101624,
0.26697826385498047,
-0.4626084268093109,
0.25769153237342834,
-0.040574878454208374,
0.2065243124961853,... |
css/reference/properties/position/index.md | CSS - Properties - position - Syntax - Values:
This property is specified as one of the following keyword values:
- `static`: The element is positioned according to the Normal Flow of the document. The `top`, `right`, `bottom`, `left`, and `z-index` properties have no effect. This is the default value.
- `relative`: ... | [
-0.5529115200042725,
0.31656306982040405,
-0.8191665410995483,
0.4670085310935974,
0.5945573449134827,
-1.02825129032135,
0.03500907123088837,
0.9041529893875122,
-0.0746091827750206,
0.013245312497019768,
0.07350383698940277,
0.49946361780166626,
-0.608730137348175,
0.44070401787757874,
... |
css/reference/properties/position/index.md | CSS - Properties - position - Description - Types of positioning:
- A positioned element is an element whose computed `position` value is either `relative`, `absolute`, `fixed`, or `sticky`. (In other words, it's anything except `static`.)
- A relatively positioned element is an element whose computed `position` value... | [
-0.12859514355659485,
-0.08785483986139297,
-0.9582812786102295,
0.40936577320098877,
0.4515342116355896,
-1.3212693929672241,
0.19582627713680267,
0.9439466595649719,
0.0026100650429725647,
0.36808329820632935,
0.040307410061359406,
0.010648839175701141,
-0.4349038600921631,
0.75282764434... |
css/reference/properties/position/index.md | CSS - Properties - position - Accessibility:
Ensure that elements positioned with an `absolute` or `fixed` value do not obscure other content when the page is zoomed to increase text size.
- MDN Understanding WCAG, Guideline 1.4 explanations
- Visual Presentation: Understanding SC 1.4.8 | Understanding WCAG 2.0 | [
-1.1707279682159424,
0.0902608186006546,
-1.052994728088379,
-0.4116427004337311,
-0.26699531078338623,
-1.5003386735916138,
1.3204668760299683,
0.8109822869300842,
0.7974860668182373,
0.8567399382591248,
-0.08465094864368439,
-0.17529532313346863,
-0.734804093837738,
0.005052797496318817,... |
css/reference/properties/position/index.md | CSS - Properties - position - Accessibility - Performance & Accessibility:
Scrolling elements containing `fixed` or `sticky` content can cause performance and accessibility issues. As a user scrolls, the browser must repaint the sticky or fixed content in a new location. Depending on the content needing to be repainte... | [
-1.3706032037734985,
-0.8555100560188293,
-0.9776952266693115,
0.0024158209562301636,
-0.2228626012802124,
-1.0778709650039673,
0.8404722809791565,
0.8698814511299133,
0.03142988681793213,
0.9649746417999268,
0.21142810583114624,
0.4198298454284668,
-0.11253976821899414,
0.6836374998092651... |
css/reference/properties/position/index.md | CSS - Properties - position - Examples - Relative positioning:
Relatively positioned elements are offset a given amount from their normal position within the document, but without the offset affecting other elements. In the example below, note how the other elements are placed as if "Two" were taking up the space of i... | [
-0.6435622572898865,
0.18528571724891663,
-1.0190513134002686,
0.22915446758270264,
-0.9336236715316772,
-0.735514223575592,
1.1778628826141357,
1.27736234664917,
0.6290966272354126,
-0.38817480206489563,
-0.9308704137802124,
-0.36815163493156433,
-1.1300175189971924,
-0.2947002053260803,
... |
css/reference/properties/position/index.md | CSS - Properties - position - Examples - Relative positioning - HTML:
Example:
<div class="box" id="one">One</div>
<div class="box" id="two">Two</div>
<div class="box" id="three">Three</div>
<div class="box" id="four">Four</div> | [
-1.5378292798995972,
0.11480256915092468,
-0.619726300239563,
0.1201333999633789,
-0.635066568851471,
-0.43226781487464905,
1.3648301362991333,
1.5029500722885132,
-0.1501951515674591,
-0.06495266407728195,
-0.6616287231445312,
-0.31436651945114136,
-0.27901947498321533,
-0.787569701671600... |
css/reference/properties/position/index.md | CSS - Properties - position - Examples - Relative positioning - CSS:
Example:
* {
box-sizing: border-box;
}
.box {
display: inline-block;
width: 100px;
height: 100px;
background: red;
color: white;
}
#two {
position: relative;
top: 20px;
left: 20px;
background: blue;
} | [
-1.4009931087493896,
0.6047144532203674,
-0.9670116305351257,
-0.280309796333313,
-0.48075786232948303,
-0.005449255928397179,
0.6551677584648132,
1.4093341827392578,
0.5794124007225037,
0.20118075609207153,
-0.29237207770347595,
-0.0789729431271553,
0.15921525657176971,
0.1458392292261123... |
css/reference/properties/position/index.md | CSS - Properties - position - Examples - Absolute positioning:
Elements that are relatively positioned remain in the normal flow of the document. In contrast, an element that is absolutely positioned is taken out of the flow; thus, other elements are positioned as if it did not exist. The absolutely positioned element... | [
0.137197807431221,
-0.48606395721435547,
-1.2851186990737915,
0.7557539343833923,
0.2681681513786316,
-1.828485369682312,
1.4499784708023071,
1.149442195892334,
0.9407360553741455,
0.5540969371795654,
0.34390920400619507,
-0.85873943567276,
-0.605509340763092,
1.0544809103012085,
-0.5214... |
css/reference/properties/position/index.md | CSS - Properties - position - Examples - Absolute positioning - HTML:
Example:
<h1>Absolute positioning</h1>
<p>
I am a basic block level element. My adjacent block level elements sit on new
lines below me.
</p>
<p class="positioned">
By default we span 100% of the width of our parent element, and we are as t... | [
-0.03627682477235794,
0.3067571520805359,
-0.9095542430877686,
-0.16408921778202057,
0.7204760909080505,
-1.3899527788162231,
-0.11329314857721329,
0.9615413546562195,
0.2164103388786316,
0.2061670571565628,
0.19607383012771606,
0.37181878089904785,
-0.46576300263404846,
0.5363820791244507... |
css/reference/properties/position/index.md | CSS - Properties - position - Examples - Absolute positioning - CSS:
Example:
* {
box-sizing: border-box;
}
body {
width: 500px;
margin: 0 auto;
}
p {
background: aqua;
border: 3px solid blue;
padding: 10px;
margin: 10px;
}
span {
background: red;
border: 1px solid black;
}
.positioned {
posit... | [
-0.6987711787223816,
0.41001781821250916,
-0.9291884899139404,
-0.6343198418617249,
0.04713669419288635,
-0.9045215845108032,
1.1413819789886475,
1.6675424575805664,
0.25447481870651245,
0.189022958278656,
0.07874508202075958,
-0.1724427342414856,
0.15155339241027832,
0.3279295563697815,
... |
css/reference/properties/position/index.md | CSS - Properties - position - Examples - Fixed positioning:
Fixed positioning is similar to absolute positioning, with the exception that the element's containing block is the initial containing block established by the viewport, unless any ancestor has `transform`, `perspective`, or `filter` property set to something... | [
-0.03921091929078102,
-0.7951057553291321,
-1.4497718811035156,
0.47505903244018555,
0.02454354614019394,
-1.44766366481781,
1.52444326877594,
2.312018394470215,
0.09223158657550812,
0.5408220887184143,
0.4228898286819458,
-0.7783379554748535,
-0.34987521171569824,
0.9902138710021973,
-0... |
css/reference/properties/position/index.md | CSS - Properties - position - Examples - Fixed positioning - HTML:
Example:
<div class="outer">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam congue tortor
eget pulvinar lobortis. Vestibulum ante ipsum primis in faucibus orci luctus
et ultrices posuere cubilia Curae; Nam ac dolor augu... | [
-0.5384342670440674,
0.11558952927589417,
-0.07549022883176804,
-0.24476701021194458,
0.400328665971756,
-1.8451988697052002,
0.4221839904785156,
0.7445405721664429,
-0.3531569540500641,
0.5201317071914673,
0.4187361001968384,
-0.014955844730138779,
-0.8859890103340149,
-0.2747829258441925... |
css/reference/properties/position/index.md | CSS - Properties - position - Examples - Fixed positioning - CSS:
Example:
* {
box-sizing: border-box;
}
.box {
width: 100px;
height: 100px;
background: red;
color: white;
}
#one {
position: fixed;
top: 80px;
left: 10px;
background: blue;
}
.outer {
width: 500px;
height: 300px;
overflow: sc... | [
-0.3103707432746887,
0.3480466902256012,
-1.1526845693588257,
-0.5884507298469543,
0.2513188421726227,
-0.6289882659912109,
-0.13137948513031006,
2.034425973892212,
-0.23028768599033356,
-0.06906447559595108,
0.6854540109634399,
-0.45297983288764954,
-0.03118791989982128,
0.219808101654052... |
css/reference/properties/position/index.md | CSS - Properties - position - Examples - Sticky positioning:
The following CSS rule positions the element with id `one` relatively until the viewport is scrolled such that the element is 10 pixels from the top. Beyond that threshold, the element is fixed to 10 pixels from the top.
Example:
#one {
position: sticky;... | [
-0.8784916400909424,
-0.4037686884403229,
-1.1373342275619507,
-0.01855497620999813,
-0.017963513731956482,
-1.6813462972640991,
0.8687261343002319,
0.48099541664123535,
-0.8370672464370728,
0.8676740527153015,
0.1044871062040329,
0.15501496195793152,
-0.0253165103495121,
0.113109335303306... |
css/reference/properties/position/index.md | CSS - Properties - position - Examples - Sticky positioning - List with sticky headings:
A common use for sticky positioning is for the headings in an alphabetized list. The "B" heading will appear just below the items that begin with "A" until they are scrolled offscreen. Rather than sliding offscreen with the rest o... | [
-0.9395525455474854,
-0.7307635545730591,
-1.4361554384231567,
0.6233056783676147,
0.2820338308811188,
-1.3417259454727173,
1.1562386751174927,
1.1103605031967163,
-0.2053326666355133,
0.27557986974716187,
-0.5601593255996704,
-0.08043043315410614,
0.5186600685119629,
0.5948631167411804,
... |
css/reference/properties/position/index.md | CSS - Properties - position - Examples - Sticky positioning - List with sticky headings - HTML:
Example:
<dl>
<div>
<dt>A</dt>
<dd>Andrew W.K.</dd>
<dd>Apparat</dd>
<dd>Arcade Fire</dd>
<dd>At The Drive-In</dd>
<dd>Aziz Ansari</dd>
</div>
<div>
<dt>C</dt>
<dd>Chromeo</dd>
<dd... | [
-1.1109881401062012,
-0.002676151692867279,
-0.986607015132904,
0.10739633440971375,
-0.4454110860824585,
-0.4707023501396179,
1.399638056755066,
0.19547167420387268,
-0.39834365248680115,
1.140100121498108,
0.5359265804290771,
0.11898833513259888,
-0.43370872735977173,
-0.5109639763832092... |
css/reference/properties/position/index.md | CSS - Properties - position - Examples - Sticky positioning - List with sticky headings - CSS:
Example:
* {
box-sizing: border-box;
}
dl > div {
background: white;
padding-top: 24px;
}
dt {
background: #b8c1c8;
border-bottom: 1px solid #989ea4;
border-top: 1px solid #717d85;
color: white;
font:
... | [
-0.7305994629859924,
0.43169549107551575,
-0.4624805152416229,
-0.4197184145450592,
0.5044311881065369,
-1.2876038551330566,
0.22298595309257507,
1.5554983615875244,
-0.6261765956878662,
0.4521012306213379,
0.5329084992408752,
-0.2433594912290573,
-0.02322126179933548,
0.21027055382728577,... |
css/reference/properties/position/index.md | CSS - Properties - position - Examples - Sticky positioning - Sticky position with all the inset boundaries set:
The following example demonstrates an element's behavior when all inset boundaries are set. Here, we have two light bulb emojis in a paragraph. The light bulbs use sticky positioning, and the inset boundari... | [
-1.0703715085983276,
0.05290918052196503,
-0.47236010432243347,
-0.07109501212835312,
-0.028281360864639282,
-1.431505799293518,
0.3263695240020752,
0.9985313415527344,
-0.08222592622041702,
-0.10304573178291321,
-0.135796457529068,
0.2578566074371338,
0.08346500992774963,
0.46449559926986... |
css/reference/properties/position/index.md | CSS - Properties - position - Examples - Sticky positioning - Sticky position with all the inset boundaries set - HTML:
Example:
Use scrollbars to put the light bulbs(💡) in the right place in the following
text:
<div>
<p>
The representation of an idea by a light bulb(<span class="bulb">💡</span>)
is a comm... | [
-0.6273626685142517,
0.6301175951957703,
0.39275556802749634,
-0.30751562118530273,
0.5756774544715881,
-1.3788814544677734,
0.40370890498161316,
1.1792107820510864,
0.19496476650238037,
-0.152150496840477,
-0.5052812695503235,
0.21973764896392822,
-0.17134800553321838,
0.02514531463384628... |
css/reference/properties/position/index.md | CSS - Properties - position - Examples - Sticky positioning - Sticky position with all the inset boundaries set - CSS:
Example:
div {
width: 400px;
height: 200px;
overflow: scroll;
scrollbar-width: thin;
font-size: 16px;
font-family: "Verdana";
border: 1px solid;
}
p {
width: 600px;
user-select: no... | [
-0.7370412349700928,
0.6867839097976685,
-1.0835838317871094,
-0.27772027254104614,
0.3970930874347687,
-0.9081505537033081,
0.1655297428369522,
1.5873786211013794,
0.0564890056848526,
-0.14292633533477783,
0.5194211602210999,
0.45788758993148804,
0.395399808883667,
0.2202681303024292,
-... |
css/reference/properties/column-rule-color/index.md | CSS - Properties - column-rule-color:
The `column-rule-color` CSS property defines the colors of the lines drawn between columns in multi-column grid, flex, and multi-col layouts.
Example:
column-rule-color: purple;
Example:
column-rule-color: rgb(48 125 222), rgb(222 48 125);
Example:
column-rule-color: rgb(48 ... | [
-0.5644930005073547,
-0.022865574806928635,
-1.1016294956207275,
-0.22627374529838562,
0.4317711591720581,
-1.8398226499557495,
-0.9816845655441284,
1.5431807041168213,
-0.014745227992534637,
0.09037069231271744,
0.34576186537742615,
-0.3976157307624817,
-0.2957797944545746,
0.525322616100... |
css/reference/properties/column-rule-color/index.md | CSS - Properties - column-rule-color - Syntax:
Example:
/* Single <color> value */
column-rule-color: purple;
column-rule-color: rgb(192 56 78);
column-rule-color: transparent;
column-rule-color: hsl(0 100% 50% / 60%);
/* Multiple values */
column-rule-color: purple, magenta;
column-rule-color: repeat(3, purple), re... | [
-1.5160597562789917,
0.051709435880184174,
-0.075248584151268,
-0.4504849314689636,
-0.08833766728639603,
-1.1707823276519775,
-0.5660812258720398,
1.4371306896209717,
-0.3794511556625366,
-0.0027704760432243347,
-0.09548468142747879,
-0.3834436535835266,
-0.1806391179561615,
0.29510685801... |
css/reference/properties/column-rule-color/index.md | CSS - Properties - column-rule-color - Syntax - Values:
The `column-rule-color` property accepts a comma-separated list of values, including:
- `<line-color>`: A `<color>` representing the color of the line.
- `<repeat-line-color>`: A `repeat()` function, with an `<integer>` of `1` or more as the first ar... | [
-1.4584205150604248,
-0.15671606361865997,
-1.2882214784622192,
0.09548205137252808,
-0.24209682643413544,
-1.4778283834457397,
0.1469755917787552,
1.9861998558044434,
-0.5918728709220886,
-0.16271184384822845,
-0.29621097445487976,
0.23625656962394714,
0.23254111409187317,
-0.141722738742... |
css/reference/properties/column-rule-color/index.md | CSS - Properties - column-rule-color - Description:
The `column-rule-color` property defines the colors of any lines drawn in the gaps between columns in multi-column, flex, and grid containers with more than one column.
The value is a comma-separated list of components, which can include `<line-color>`, `<repeat-lin... | [
-1.1126633882522583,
-0.25569528341293335,
-0.5644032955169678,
0.01410255953669548,
0.6199543476104736,
-0.8215044140815735,
-0.6540969014167786,
2.128079891204834,
-0.328991562128067,
0.20652109384536743,
-0.24246005713939667,
0.010615333914756775,
-0.16775614023208618,
0.201770305633544... |
css/reference/properties/column-rule-color/index.md | CSS - Properties - column-rule-color - Description - Repeated line colors:
The `repeat()` function, with an integer of `1` or greater as the first argument, can be used to repeat a valid list of CSS `<color>` values passed as subsequent arguments the specified number of times. This allows the color values to be ... | [
-1.6053489446640015,
-0.008523143827915192,
-1.3355659246444702,
0.3391950726509094,
-0.08700194209814072,
-1.9083290100097656,
0.4019608199596405,
1.2284091711044312,
-1.2740908861160278,
0.32324567437171936,
-0.5093679428100586,
-0.0930895060300827,
0.11386433243751526,
0.481867253780365... |
css/reference/properties/column-rule-color/index.md | CSS - Properties - column-rule-color - Description - Auto-repeating line colors:
The `repeat()` function also accepts `auto` as the first argument instead of a positive integer. With `auto` as the first argument, the `<color>` values passed as subsequent arguments will be repeated as many times as needed to fill in va... | [
-1.1157984733581543,
-0.2404870241880417,
-0.4498176574707031,
0.30462145805358887,
0.45843714475631714,
-0.8581027388572693,
0.1296364814043045,
1.7578697204589844,
-0.43064093589782715,
0.3896592855453491,
-0.28358760476112366,
-0.2588050365447998,
-0.10238003730773926,
0.125688314437866... |
css/reference/properties/column-rule-color/index.md | CSS - Properties - column-rule-color - Examples - Basic example:
In this example, we define a single color for the lines drawn between columns in a multi-column layout. | [
-0.7646273970603943,
0.20435123145580292,
-1.496156096458435,
-0.47626161575317383,
-0.43500572443008423,
-0.6229701638221741,
-0.1483168601989746,
2.1769137382507324,
-0.43645599484443665,
0.3015877604484558,
-0.04364582151174545,
-0.20036649703979492,
0.062482185661792755,
0.069458127021... |
css/reference/properties/column-rule-color/index.md | CSS - Properties - column-rule-color - Examples - Basic example - HTML:
We include a paragraph of text.
Example:
<p>
This is a bunch of text split into three columns. The `column-rule-color`
property is used to change the color of the line that is drawn between
columns. Don't you think that's wonderful?
</p> | [
-1.4537382125854492,
0.15097014605998993,
-0.7456493377685547,
0.21524351835250854,
-0.3689684271812439,
-1.3016217947006226,
0.3772830367088318,
1.7320201396942139,
-0.2990923821926117,
0.03508676588535309,
-0.7578704357147217,
0.12009285390377045,
0.010272778570652008,
-0.546806097030639... |
css/reference/properties/column-rule-color/index.md | CSS - Properties - column-rule-color - Examples - Basic example - CSS:
We define the `p` element as a multi-column container. We include a `gap` of `7px` to provide padding for the `3px` dashed rule drawn between the columns:
Example:
p {
column-count: 5;
gap: 7px;
column-rule-style: dashed;
column-rule-widt... | [
-1.0911431312561035,
-0.2145460993051529,
-0.7455499768257141,
-0.2774500250816345,
0.5729349851608276,
-0.5140778422355652,
0.42369943857192993,
1.2667763233184814,
-0.8018864989280701,
0.9593631029129028,
0.33370304107666016,
-0.18806377053260803,
-0.4022437036037445,
0.21532967686653137... |
css/reference/properties/column-rule-color/index.md | CSS - Properties - column-rule-color - Examples - Multiple color values:
This example demonstrates declaring more than one color, and how the values are repeated when there are fewer values in the list of colors than gutters between columns.
Using the same HTML and CSS as in the previous example, we include three com... | [
-1.134511113166809,
0.01276538334786892,
-0.6535525321960449,
0.15267778933048248,
0.44913262128829956,
-0.7975543737411499,
-0.27532684803009033,
1.3998912572860718,
-0.7773212194442749,
0.44778886437416077,
0.051998481154441833,
-0.07285657525062561,
0.026544440537691116,
0.0806138217449... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.