file stringlengths 16 94 | text stringlengths 32 24.4k | vector list |
|---|---|---|
css/reference/selectors/_colon_nth-child/index.md | CSS - Selectors - :nth-child - Examples - Using of selector to fix striped tables - HTML:
Example:
<table class="broken">
<thead>
<tr><th>Name</th><th>Age</th><th>Country</th></tr>
</thead>
<tbody>
<tr><td>Mamitiana</td><td>23</td><td>Madagascar</td></tr>
<tr><td>Yuki</td><td>48</td><td>Japan</td></... | [
-1.0217801332473755,
0.13600897789001465,
-0.7707549333572388,
0.3948977589607239,
0.810073971748352,
-0.16416789591312408,
0.5067658424377441,
1.1564046144485474,
-0.42166510224342346,
0.3648531138896942,
0.5842088460922241,
0.10817533731460571,
-0.7147734761238098,
0.42645853757858276,
... |
css/reference/selectors/_colon_nth-child/index.md | CSS - Selectors - :nth-child - Examples - Using of selector to fix striped tables - CSS:
Example:
body {
display: flex;
justify-content: space-around;
}
td {
padding: 0.125rem 0.5rem;
}
Example:
.broken > tbody > tr:nth-child(even) {
background-color: silver;
}
Example:
.fixed > tbody > tr:nth-child(even ... | [
-0.7003694772720337,
0.09217793494462967,
-0.7671307921409607,
-0.175567626953125,
0.33080393075942993,
-1.050276756286621,
0.5561369061470032,
1.4520479440689087,
-0.6007523536682129,
0.38137996196746826,
0.6704679131507874,
-0.1452098786830902,
-1.0704752206802368,
0.588726818561554,
-... |
css/reference/selectors/_colon_nth-child/index.md | CSS - Selectors - :nth-child - Examples - Styling a table column:
To style a table column, you can't set the style on the `col` element as table cells are not children of it (as you can with the row element, `tr`). Pseudo-classes like `:nth-child()` are handy to select the column cells.
In this example, we set differ... | [
-0.8265624642372131,
-0.3515104651451111,
-1.3184055089950562,
0.8971792459487915,
-0.2376421093940735,
-1.0253576040267944,
1.1927528381347656,
1.0389057397842407,
-0.03274109959602356,
0.49920499324798584,
0.7673895955085754,
0.0375184491276741,
-1.2476154565811157,
-0.03699103742837906,... |
css/reference/selectors/_colon_nth-child/index.md | CSS - Selectors - :nth-child - Examples - Styling a table column - HTML:
Example:
<table>
<caption>Student roster</caption>
<colgroup>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr><th>Name</th><th>Age</th><th>Country</th></tr>
</thead>
<tbody>
<tr><td>Mamitiana</td><td>23</td><td>Madagascar</td></... | [
-0.7626785039901733,
-0.0586341917514801,
-0.7750011086463928,
-0.2616540789604187,
0.6352310180664062,
-0.11363707482814789,
0.7694423794746399,
1.1298999786376953,
-1.2366575002670288,
0.40145808458328247,
0.8437051177024841,
0.29004642367362976,
-0.41493362188339233,
0.6355124711990356,... |
css/reference/selectors/_colon_nth-child/index.md | CSS - Selectors - :nth-child - Examples - Styling a table column - CSS:
Example:
td {
padding: 0.125rem 0.5rem;
height: 3rem;
border: 1px solid black;
}
tr :nth-child(1) {
text-align: left;
vertical-align: bottom;
background-color: silver;
}
tbody tr :nth-child(2) {
text-align: center;
vertical-alig... | [
-0.639857292175293,
0.12770305573940277,
-0.7679134607315063,
-0.008734885603189468,
0.6437673568725586,
-0.2621375620365143,
0.33966532349586487,
1.4556044340133667,
-1.0721352100372314,
0.43219152092933655,
0.6334606409072876,
-0.16957254707813263,
-0.8798731565475464,
0.8280536532402039... |
css/reference/selectors/_colon_muted/index.md | CSS - Selectors - :muted:
The `:muted` CSS pseudo-class selector represents an element that is capable of making sound, such as `audio` or `video`, but is muted (forced silent).
Muted is different from `:volume-locked` in that the page author has control over whether a media element can be muted or un-muted. User age... | [
-0.5633244514465332,
-0.4623092710971832,
-0.6563979983329773,
0.14717574417591095,
0.4539265036582947,
-1.4980859756469727,
0.3772610127925873,
1.301378607749939,
0.11817170679569244,
0.8283258676528931,
0.22419774532318115,
-0.9630690217018127,
-0.9239020943641663,
-0.7768212556838989,
... |
css/reference/selectors/_colon_muted/index.md | CSS - Selectors - :muted - Syntax:
Example:
:muted {
/* ... */
} | [
0.3234723210334778,
0.11017322540283203,
-0.6782087087631226,
0.41599586606025696,
-0.6981355547904968,
-1.0096769332885742,
0.5511008501052856,
1.9832475185394287,
0.22677144408226013,
0.35657694935798645,
0.17052827775478363,
-0.5872716903686523,
-0.5871336460113525,
-0.6796416640281677,... |
css/reference/selectors/_colon_muted/index.md | CSS - Selectors - :muted - Examples - HTML:
The `muted` attribute is added to the `video` element so that the sound is muted, this works the same for `audio` elements.
Example:
<!-- 'Big Buck Bunny' licensed under CC 3.0 by the Blender foundation. Hosted by archive.org -->
<!-- Poster from peach.blender.org -->
<vid... | [
-1.0240013599395752,
0.18704919517040253,
-0.6089993119239807,
0.7477625608444214,
0.3232273459434509,
-0.7508537769317627,
-0.007673328742384911,
0.6636513471603394,
-0.5623019933700562,
0.12294820696115494,
0.2599349915981293,
-0.5321978330612183,
-0.04315574839711189,
0.0440130904316902... |
css/reference/selectors/_colon_muted/index.md | CSS - Selectors - :muted - Examples - CSS:
If the `<video>` element is `muted` then a red outline is drawn around it, when it is not muted then it has a green outline. Try toggling the mute icon in the controls to see the state change.
Example:
video {
margin: 5px;
}
Example:
video:muted {
outline: 5px solid r... | [
-0.5612391829490662,
-0.21819810569286346,
-0.9488361477851868,
-0.2801421582698822,
0.06506012380123138,
-0.7074294090270996,
-0.664322555065155,
2.095207691192627,
-0.3908834457397461,
0.2786555886268616,
0.5690428018569946,
-1.0545966625213623,
0.30909469723701477,
-0.34655702114105225,... |
css/reference/selectors/_colon_nth-last-child/index.md | CSS - Selectors - :nth-last-child:
The `:nth-last-child()` CSS pseudo-class matches elements based on their position among a group of siblings, counting from the end.
Example:
p {
font-weight: bold;
}
li:nth-last-child(-n + 3) {
border: 2px solid orange;
margin-top: 1px;
}
li:nth-last-child(even) {
backgro... | [
-0.5923055410385132,
-0.12552061676979065,
-0.6999325752258301,
-0.6226521134376526,
-0.7216730713844299,
-1.060524582862854,
1.8988317251205444,
0.46160632371902466,
-0.06828222423791885,
0.690672755241394,
0.31494173407554626,
-0.22080305218696594,
-1.0194146633148193,
0.5226093530654907... |
css/reference/selectors/_colon_nth-last-child/index.md | CSS - Selectors - :nth-last-child - Syntax:
Example:
:nth-last-child(<nth> [of <complex-selector-list>]?) {
/* ... */
} | [
-0.0507667139172554,
-0.20731030404567719,
-0.6691717505455017,
0.5024465322494507,
-0.9816351532936096,
-1.517102599143982,
0.958899199962616,
1.6047000885009766,
0.34107089042663574,
-0.10262036323547363,
0.7182669639587402,
0.19473981857299805,
-1.1610255241394043,
0.18183112144470215,
... |
css/reference/selectors/_colon_nth-last-child/index.md | CSS - Selectors - :nth-last-child - Syntax - Parameters:
The `:nth-last-child()` pseudo-class is specified with a single argument, which represents the pattern for matching elements, counting from the end. | [
-0.17679496109485626,
-0.5843426585197449,
-1.2796282768249512,
0.38827311992645264,
-0.7671647667884827,
-1.171726942062378,
1.5201915502548218,
1.3269727230072021,
-0.44799330830574036,
0.5438245534896851,
0.19679312407970428,
-0.18995976448059082,
-0.7426866292953491,
0.4030165672302246... |
css/reference/selectors/_colon_nth-last-child/index.md | CSS - Selectors - :nth-last-child - Syntax - Parameters - Keyword values:
- `odd`: Represents elements whose numeric position in a series of siblings is odd: 1, 3, 5, etc., counting from the end.
- `even`: Represents elements whose numeric position in a series of siblings is even: 2, 4, 6, etc., counting from the end. | [
0.00005357062036637217,
-0.17569467425346375,
-0.9533148407936096,
-0.5315296649932861,
-0.7190555930137634,
-0.9735223650932312,
1.533852458000183,
0.7495300769805908,
0.08147028088569641,
0.23370328545570374,
-0.13657954335212708,
0.020412802696228027,
-1.231274127960205,
0.5031947493553... |
css/reference/selectors/_colon_nth-last-child/index.md | CSS - Selectors - :nth-last-child - Syntax - Parameters - Functional notation:
- `<An+B>`: Represents elements whose numeric position in a series of siblings matches the pattern `An+B`, for every positive integer or zero value of `n`, where: - `A` is an integer step size, - `B` is an integer offset, - `n` is all ... | [
-0.9017249941825867,
-0.331190824508667,
-0.293003648519516,
0.623654842376709,
0.14926321804523468,
-0.09845609217882156,
1.278147578239441,
1.023002028465271,
0.33882203698158264,
0.5390873551368713,
-0.009392036125063896,
-0.5495786070823669,
-0.4133131802082062,
0.8221641182899475,
-... |
css/reference/selectors/_colon_nth-last-child/index.md | CSS - Selectors - :nth-last-child - Syntax - Parameters - The `of <selector>` syntax:
By passing a selector argument, we can select the nth-last element that matches that selector. For example, the following selector matches the last three important list items, which are assigned with `class="important"`.
Example:
:... | [
-0.01983085460960865,
-0.3493121564388275,
-0.6605892777442932,
0.9075499176979065,
-0.3931121528148651,
-1.1581209897994995,
0.8990998268127441,
0.530566930770874,
0.24398347735404968,
0.2890598475933075,
0.6116060614585876,
0.4508333206176758,
-0.8985292911529541,
0.7216207385063171,
-... |
css/reference/selectors/_colon_nth-last-child/index.md | CSS - Selectors - :nth-last-child - Examples - Example selectors:
- `tr:nth-last-child(odd)` or `tr:nth-last-child(2n+1)`: Represents the odd rows of an HTML table: 1, 3, 5, etc., counting from the end.
- `tr:nth-last-child(even)` or `tr:nth-last-child(2n)`: Represents the even rows of an HTML table: 2, 4, 6, etc., co... | [
-0.05894583836197853,
-0.09618190675973892,
-0.8939368724822998,
0.6286839842796326,
0.2692733407020569,
-1.314408779144287,
0.22878330945968628,
0.9440993666648865,
-0.7125885486602783,
0.4595007300376892,
0.6060896515846252,
0.05542372167110443,
-1.032533884048462,
1.0977882146835327,
... |
css/reference/selectors/_colon_nth-last-child/index.md | CSS - Selectors - :nth-last-child - Examples - Table example - HTML:
Example:
<table>
<tbody>
<tr>
<td>First line</td>
</tr>
<tr>
<td>Second line</td>
</tr>
<tr>
<td>Third line</td>
</tr>
<tr>
<td>Fourth line</td>
</tr>
<tr>
<td>Fifth line</td>
<... | [
-0.709852397441864,
0.03357863426208496,
-0.24795116484165192,
0.12799429893493652,
0.6772417426109314,
-0.4430745542049408,
1.0918004512786865,
0.40066564083099365,
-0.589889645576477,
0.34478065371513367,
0.3750125765800476,
-0.8053979277610779,
-0.472794771194458,
0.4793786406517029,
... |
css/reference/selectors/_colon_nth-last-child/index.md | CSS - Selectors - :nth-last-child - Examples - Table example - CSS:
Example:
table {
border: 1px solid blue;
}
/* Selects the last three elements */
tr:nth-last-child(-n + 3) {
background-color: pink;
}
/* Selects every element starting from the second to last item */
tr:nth-last-child(n + 2) {
color: blue;
}... | [
-0.03208405151963234,
0.40840667486190796,
-0.8439320921897888,
-0.22608602046966553,
-0.0011355206370353699,
-1.0539685487747192,
0.4971223473548889,
1.2902164459228516,
-0.7954398393630981,
0.4889852702617645,
1.2211260795593262,
-0.4133477509021759,
-0.4222821295261383,
0.54023087024688... |
css/reference/selectors/_colon_nth-last-child/index.md | CSS - Selectors - :nth-last-child - Examples - Quantity query:
A quantity query styles elements depending on how many of them there are. In this example, list items turn red when there are at least three of them in a given list. This is accomplished by combining the capabilities of the `nth-last-child` pseudo-class an... | [
-0.5682118535041809,
-0.20665213465690613,
-0.6079534888267517,
0.5311849117279053,
-1.2914669513702393,
-0.24242733418941498,
0.7090901732444763,
0.9655550718307495,
-0.4896574318408966,
0.12450306117534637,
-0.140970841050148,
0.15389132499694824,
-0.7610588669776917,
-0.4518341422080993... |
css/reference/selectors/_colon_nth-last-child/index.md | CSS - Selectors - :nth-last-child - Examples - Quantity query - HTML:
Example:
<h4>A list of four items (styled):</h4>
<ol>
<li>One</li>
<li>Two</li>
<li>Three</li>
<li>Four</li>
</ol>
<h4>A list of two items (unstyled):</h4>
<ol>
<li>One</li>
<li>Two</li>
</ol> | [
-0.4435253143310547,
0.4765539765357971,
-0.9341967105865479,
0.44959986209869385,
-0.7579520344734192,
-0.3372597098350525,
1.338165521621704,
0.7108410000801086,
-0.5727369785308838,
0.34286925196647644,
0.1800912469625473,
0.37993937730789185,
-0.24045264720916748,
-0.7686974406242371,
... |
css/reference/selectors/_colon_nth-last-child/index.md | CSS - Selectors - :nth-last-child - Examples - Quantity query - CSS:
Example:
/* If there are at least three list items,
style them all */
li:nth-last-child(n + 3),
li:nth-last-child(3) ~ li {
color: red;
} | [
-0.7824174165725708,
-0.1194453164935112,
-0.9720957279205322,
0.21090427041053772,
-1.0100140571594238,
-0.3560035228729248,
0.5055583715438843,
1.1758946180343628,
-0.6526792645454407,
0.48326870799064636,
0.5928115248680115,
0.46834397315979004,
-0.6302613019943237,
-0.0691375657916069,... |
css/reference/selectors/_colon_nth-last-child/index.md | CSS - Selectors - :nth-last-child - Examples - `of <selector>` syntax example:
In this example, there is an unordered list of names. Some items have a `noted` class applied and are then highlighted with a thick bottom border. | [
0.054465968161821365,
-0.018625302240252495,
-0.8669328689575195,
0.628000795841217,
-0.5343053936958313,
-0.6731454730033875,
1.2568347454071045,
1.6663202047348022,
0.19371289014816284,
0.06671879440546036,
0.6729175448417664,
0.224979966878891,
-0.8520753979682922,
0.029818028211593628,... |
css/reference/selectors/_colon_nth-last-child/index.md | CSS - Selectors - :nth-last-child - Examples - `of <selector>` syntax example - HTML:
Example:
<ul>
<li class="noted">Diego</li>
<li>Shilpa</li>
<li class="noted">Caterina</li>
<li>Jayla</li>
<li>Tyrone</li>
<li>Ricardo</li>
<li class="noted">Gila</li>
<li>Sienna</li>
<li>Titilayo</li>
<li class="... | [
-1.4990655183792114,
-0.0012835925444960594,
-0.5152453184127808,
0.24915212392807007,
0.2022058665752411,
-0.7073104977607727,
0.2944170832633972,
1.5884016752243042,
-0.1735013723373413,
0.18713337182998657,
0.5842805504798889,
0.005770295858383179,
-0.4936273694038391,
0.190540388226509... |
css/reference/selectors/_colon_nth-last-child/index.md | CSS - Selectors - :nth-last-child - Examples - `of <selector>` syntax example - CSS:
Example:
* {
font-family: sans-serif;
}
ul {
display: flex;
flex-wrap: wrap;
list-style: none;
font-size: 1.2rem;
padding-left: 0;
}
li {
margin: 0.125rem;
padding: 0.25rem;
border: 1px solid tomato;
}
.noted {
... | [
-0.26157069206237793,
0.20013824105262756,
-0.6407428979873657,
-0.04137881472706795,
0.7892600893974304,
-0.9465507864952087,
0.2594405710697174,
2.1400153636932373,
-0.5812373161315918,
0.44582560658454895,
0.9217953085899353,
-0.4139380156993866,
-0.533301591873169,
0.40835556387901306,... |
css/reference/selectors/_colon_read-write/index.md | CSS - Selectors - :read-write:
The `:read-write` CSS pseudo-class represents an element (such as `input` or `textarea`) that is editable by the user.
Example:
label,
input[type="submit"] {
display: block;
margin-top: 1em;
}
*:read-write {
background-color: ivory;
border: 2px solid darkorange;
border-radiu... | [
-0.9193083047866821,
0.4684116244316101,
-1.3591694831848145,
-0.6844743490219116,
0.6623046398162842,
-1.3939002752304077,
-0.5153630971908569,
1.200330376625061,
-0.20393329858779907,
0.18521785736083984,
0.8289965987205505,
0.11163431406021118,
-0.5713611841201782,
-0.1628524363040924,
... |
css/reference/selectors/_colon_read-write/index.md | CSS - Selectors - :read-write - Syntax:
Example:
:read-write {
/* ... */
} | [
0.11942475289106369,
0.09239639341831207,
-0.49280282855033875,
0.7875779271125793,
-0.7117490172386169,
-0.23010914027690887,
0.5370854735374451,
1.9667725563049316,
0.7923457026481628,
-0.393110066652298,
0.8743330240249634,
-0.011657815426588058,
-0.6306912302970886,
-0.6881118416786194... |
css/reference/selectors/_colon_read-write/index.md | CSS - Selectors - :read-write - Examples - Confirming form details using read-only controls:
You can use `readonly` form controls when you want a user to verify information they entered earlier, which you want to submit with new data in read-write controls. In the example below, the `:read-only` pseudo-class is used t... | [
-0.32673388719558716,
0.3735837936401367,
-0.6284778714179993,
-0.29330334067344666,
0.5818661451339722,
-1.4227490425109863,
0.1404852569103241,
1.5134135484695435,
-0.18125873804092407,
-0.03578980639576912,
0.6611308455467224,
-0.40532582998275757,
-0.2295982539653778,
-0.27949011325836... |
css/reference/selectors/_colon_read-write/index.md | CSS - Selectors - :read-write - Examples - Styling read-write non-form controls:
This selector doesn't just select `input`/`textarea` elements — it will select any element that can be edited by the user, such as a `p` element with `contenteditable` set on it.
Example:
<p contenteditable>This paragraph is editable; i... | [
-0.4195327162742615,
0.504267156124115,
-0.40123504400253296,
0.05363544821739197,
0.6857833862304688,
-0.7340841293334961,
0.19970451295375824,
0.9485905170440674,
-0.10280314087867737,
0.12670187652111053,
0.557885468006134,
-0.6189536452293396,
-0.18655642867088318,
-0.21842651069164276... |
css/reference/selectors/_colon_empty/index.md | CSS - Selectors - :empty:
The `:empty` CSS pseudo-class represents any element that has no children. Children can be either element nodes or text (including whitespace). Comments, processing instructions, and CSS `content` do not affect whether an element is considered empty.
Example:
div:empty {
outline: 2px soli... | [
-1.262178897857666,
-0.5946233868598938,
-0.6038087010383606,
0.16811686754226685,
0.5636315941810608,
-1.9090923070907593,
1.639448881149292,
1.3246493339538574,
-0.28460395336151123,
0.6979939341545105,
0.70548015832901,
0.21457603573799133,
-0.9838637113571167,
-0.502362847328186,
-0.... |
css/reference/selectors/_colon_empty/index.md | CSS - Selectors - :empty - Syntax:
Example:
:empty {
/* ... */
} | [
0.10917036235332489,
0.09636444598436356,
-0.7723160982131958,
0.7920366525650024,
-0.3725011348724365,
-2.2788503170013428,
1.141032099723816,
1.9993441104888916,
0.27700167894363403,
-0.20096729695796967,
0.7176880240440369,
0.4224720001220703,
-0.04636073112487793,
-0.5277676582336426,
... |
css/reference/selectors/_colon_empty/index.md | CSS - Selectors - :empty - Accessibility:
Assistive technology such as screen readers cannot parse interactive content that is empty. All interactive content must have an accessible name, which is created by providing a text value for the interactive control's parent element (anchors, buttons, etc.). Accessible names ... | [
-0.7562325596809387,
-0.5929105877876282,
-0.18834877014160156,
0.09406398236751556,
0.6895713806152344,
-2.024698495864868,
0.7605642080307007,
0.5666423439979553,
0.1496638059616089,
0.7927448153495789,
-0.27128714323043823,
-0.0305408276617527,
0.44746795296669006,
-0.01769949123263359,... |
css/reference/selectors/_colon_empty/index.md | CSS - Selectors - :empty - Examples - HTML:
Example:
<div class="box"><!-- I will be lime. --></div>
<div class="box">I will be pink.</div>
<div class="box">
<!-- I will be pink in older browsers because of the whitespace around this comment. -->
</div>
<div class="box">
<p>
<!-- I will be pink in all browser... | [
-1.7227929830551147,
0.20222868025302887,
-0.24142621457576752,
0.596246063709259,
-0.08735290914773941,
-1.925826072692871,
0.6992858052253723,
1.2553640604019165,
0.17252260446548462,
0.5853440761566162,
0.18473367393016815,
0.035199567675590515,
-0.5164585113525391,
-0.4055021107196808,... |
css/reference/selectors/_colon_empty/index.md | CSS - Selectors - :empty - Examples - CSS:
Example:
body {
display: flex;
justify-content: space-around;
}
Example:
.box {
background: pink;
height: 80px;
width: 80px;
}
.box:empty {
background: lime;
} | [
-1.1605068445205688,
0.17649701237678528,
-0.7603183388710022,
-0.16059812903404236,
0.15697081387043,
-1.4872972965240479,
0.997504711151123,
0.8795478343963623,
-0.5565280914306641,
-0.031253837049007416,
0.7252282500267029,
-0.1279940903186798,
-0.1776776760816574,
0.18598201870918274,
... |
css/reference/selectors/_doublecolon_first-letter/index.md | CSS - Selectors - ::first-letter:
The `::first-letter` CSS pseudo-element applies styles to the first letter of the first line of a block container, but only when not preceded by other content (such as images or inline tables).
Example:
p::first-letter {
font-size: 1.5rem;
font-weight: bold;
color: brown;
}
E... | [
0.5736035704612732,
-0.5742142200469971,
-1.2289619445800781,
-0.06637869775295258,
1.217344880104065,
-1.6130917072296143,
-0.3438495397567749,
1.6645586490631104,
0.049070149660110474,
0.3758792579174042,
1.3949819803237915,
-0.587374210357666,
-0.18280287086963654,
-0.05791057273745537,... |
css/reference/selectors/_doublecolon_first-letter/index.md | CSS - Selectors - ::first-letter - Allowable properties:
Only a small subset of CSS properties can be used with the `::first-letter` pseudo-element:
- All font properties: `font`, `font-style`, `font-feature-settings`, `font-kerning`, `font-language-override`, `font-stretch`, `font-synthesis`, `font-variant`, `font-v... | [
-0.2867484986782074,
0.16033615171909332,
-0.8800502419471741,
0.4122852385044098,
0.3156428933143616,
-1.7529942989349365,
0.4068170189857483,
1.9110087156295776,
-0.016586273908615112,
0.1710807979106903,
1.127286434173584,
0.3787117004394531,
0.3997195363044739,
-0.07181311398744583,
... |
css/reference/selectors/_doublecolon_first-letter/index.md | CSS - Selectors - ::first-letter - Syntax:
Example:
::first-letter {
/* ... */
} | [
-0.27745839953422546,
-0.5531795024871826,
-1.1267470121383667,
0.7073151469230652,
-0.30826225876808167,
-1.0849030017852783,
1.203969955444336,
1.159813404083252,
0.7800816893577576,
-0.165359765291214,
0.6444751024246216,
0.02206697314977646,
-0.3510577082633972,
-0.7992702722549438,
... |
css/reference/selectors/_doublecolon_first-letter/index.md | CSS - Selectors - ::first-letter - Examples - Basic drop cap:
In this example we will use the `::first-letter` pseudo-element to create a drop cap effect on the first letter of the paragraph coming right after the `<h2>`. | [
-0.2230275720357895,
0.2709532678127289,
-0.7138081192970276,
0.3899831175804138,
-0.14334335923194885,
-1.388701319694519,
1.4026398658752441,
0.7549664974212646,
-0.06961730122566223,
0.24163402616977692,
-0.2067655771970749,
-0.5691850185394287,
-1.1982024908065796,
-0.8494265079498291,... |
css/reference/selectors/_doublecolon_first-letter/index.md | CSS - Selectors - ::first-letter - Examples - Basic drop cap - HTML:
Example:
<h2>My heading</h2>
<p>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
voluptua. At vero eos et accusam et justo duo dolores et ea rebu... | [
-1.6188170909881592,
-0.1123710349202156,
0.6460447311401367,
-0.4901593327522278,
0.32175251841545105,
-1.4927815198898315,
-0.08481204509735107,
0.7448552250862122,
0.004978574812412262,
0.0810776799917221,
0.6815853118896484,
-0.5065350532531738,
-0.9885433316230774,
-0.3494547605514526... |
css/reference/selectors/_doublecolon_first-letter/index.md | CSS - Selectors - ::first-letter - Examples - Basic drop cap - CSS:
Example:
p {
width: 500px;
line-height: 1.5;
}
h2 + p::first-letter {
color: white;
background-color: black;
border-radius: 2px;
box-shadow: 3px 3px 0 red;
font-size: 250%;
padding: 6px 3px;
margin-right: 6px;
float: left;
} | [
-0.6884973049163818,
-0.2227100282907486,
-0.49628946185112,
-0.6306586265563965,
0.37448233366012573,
-0.5834060311317444,
0.6460675597190857,
1.1260420083999634,
-0.3283883333206177,
0.5702754855155945,
0.16215398907661438,
-0.9617783427238464,
-0.26467955112457275,
-0.5032336711883545,
... |
css/reference/selectors/_doublecolon_first-letter/index.md | CSS - Selectors - ::first-letter - Examples - Effect on special punctuation and non-Latin characters:
This example illustrates the effect of `::first-letter` on special punctuation and non-Latin characters. | [
-0.16626925766468048,
-0.3803722560405731,
-1.0906792879104614,
0.7041335105895996,
-0.24539700150489807,
-0.7060128450393677,
1.409484624862671,
1.5871981382369995,
0.3966524302959442,
0.07827076315879822,
0.5358280539512634,
0.16721515357494354,
-1.1888232231140137,
-1.298539161682129,
... |
css/reference/selectors/_doublecolon_first-letter/index.md | CSS - Selectors - ::first-letter - Examples - Effect on special punctuation and non-Latin characters - HTML:
Example:
<p>
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie
consequat.
</p>
<p>-The beginning of a special punctuation mark.</p>
<p>_The beginning of a special punctuation ma... | [
-0.4918619394302368,
0.3902985751628876,
0.16495193541049957,
0.33353862166404724,
0.6201027035713196,
-0.659407913684845,
0.28334879875183105,
1.2859654426574707,
0.5942177176475525,
-0.07291732728481293,
0.4156721830368042,
0.11419326066970825,
-0.41013145446777344,
-0.22910453379154205,... |
css/reference/selectors/_doublecolon_first-letter/index.md | CSS - Selectors - ::first-letter - Examples - Effect on special punctuation and non-Latin characters - CSS:
Example:
p::first-letter {
color: red;
font-size: 150%;
} | [
-0.9207106828689575,
-0.277469664812088,
-1.1007884740829468,
0.23981589078903198,
-0.4418359398841858,
-0.5208945870399475,
1.3791228532791138,
1.3855425119400024,
0.1556732952594757,
0.32295161485671997,
0.12430688738822937,
-0.09137701988220215,
-0.5996257066726685,
-1.025071620941162,
... |
css/reference/selectors/_doublecolon_first-letter/index.md | CSS - Selectors - ::first-letter - Examples - Styling first letter in SVG text element:
In this example, we use the `::first-letter` pseudo-element to style the first letter of an SVG `text` element.
Note: At time of writing this feature has limited support. | [
-1.0139750242233276,
-0.07596994936466217,
-0.43365001678466797,
0.34714844822883606,
0.23975855112075806,
-1.0541754961013794,
1.3980635404586792,
0.33508551120758057,
0.1517462432384491,
0.24140024185180664,
0.574508786201477,
-0.7638484239578247,
-0.4361504912376404,
-1.3285249471664429... |
css/reference/selectors/_doublecolon_first-letter/index.md | CSS - Selectors - ::first-letter - Examples - Styling first letter in SVG text element - HTML:
Example:
<svg viewBox="0 0 300 40">
<text y="30">First letter in <text> SVG</text>
</svg> | [
-1.2819896936416626,
-0.11682230234146118,
-0.29192936420440674,
0.10296465456485748,
0.14650584757328033,
-0.9871728420257568,
0.7877115607261658,
0.3604409396648407,
-0.08324733376502991,
-0.09299981594085693,
0.8982332944869995,
-0.5494948625564575,
-0.1793607622385025,
-1.3075338602066... |
css/reference/selectors/_doublecolon_first-letter/index.md | CSS - Selectors - ::first-letter - Examples - Styling first letter in SVG text element - CSS:
Example:
text {
font-family: sans-serif;
}
text::first-letter {
font-family: serif;
font-size: 2rem;
font-weight: 600;
fill: tomato;
stroke: indigo;
} | [
-1.3320449590682983,
-0.04407685995101929,
-0.23155049979686737,
0.3388725817203522,
0.07543493807315826,
-1.0217036008834839,
0.7926267981529236,
0.6008560061454773,
-0.30839699506759644,
-0.3924582004547119,
1.4526845216751099,
-0.4632986783981323,
-0.4200557768344879,
-0.961618542671203... |
css/reference/properties/index.md | CSS - Properties:
A CSS property is a parameter used in a CSS declaration that lets you style certain aspects of selected elements. For example, the `opacity` property is used to set the opacity of a selected element, allowing you to control if content behind that element is visible:
Example:
/* Set 0.8 opacity on <... | [
-0.9978275895118713,
-0.005550437606871128,
-0.9579130411148071,
0.08007524907588959,
0.2572167217731476,
-2.1543359756469727,
0.9042879939079285,
1.3536945581436157,
0.43020111322402954,
0.8295136094093323,
-0.519985556602478,
0.23470145463943481,
0.24456804990768433,
-0.05468405038118362... |
css/reference/properties/index.md | CSS - Properties - Syntax:
Example:
selector {
property: value;
} | [
-0.27556371688842773,
0.06286170333623886,
-0.8513550162315369,
0.8306766748428345,
-0.384830504655838,
-0.8511899709701538,
1.2590415477752686,
1.695170283317566,
0.25628700852394104,
-0.1810910850763321,
0.25480324029922485,
0.3170005679130554,
-0.012137385085225105,
-0.4547460973262787,... |
css/reference/properties/index.md | CSS - Properties - Alphabetical index of properties:
Standard properties defined by CSS specifications include the following: | [
-0.5947603583335876,
-0.03941330686211586,
-0.9866989850997925,
0.2782948315143585,
-0.277351438999176,
-1.4924942255020142,
0.5013015866279602,
0.3063632845878601,
-0.07866992056369781,
0.07026423513889313,
0.038525767624378204,
-0.12460486590862274,
-0.347341924905777,
0.0677111297845840... |
css/reference/properties/index.md | CSS - Properties - Alphabetical index of properties - Misc:
- Custom properties (`--*`): CSS variables | [
-0.8447058796882629,
0.05588316172361374,
-0.7162764072418213,
0.6774426698684692,
-0.3606205880641937,
-1.62660551071167,
1.3259449005126953,
1.1223922967910767,
0.10325179994106293,
0.33291956782341003,
-0.0690605491399765,
0.5154068470001221,
-0.6074902415275574,
-0.21034836769104004,
... |
css/reference/properties/index.md | CSS - Properties - Alphabetical index of properties - A:
- `accent-color`
- `align-content`
- `align-items`
- `align-self`
- `alignment-baseline`
- `all` (shorthand)
- `anchor-name`
- `anchor-scope`
- `animation-composition`
- `animation-delay`
- `animation-direction`
- `animation-duration`
- `animation-fill-mode`
- `... | [
0.033942196518182755,
-0.10652949661016464,
-0.5571532845497131,
-0.2370976358652115,
-0.025681577622890472,
-0.002651942428201437,
0.11456672847270966,
1.1970794200897217,
-0.4088023900985718,
-0.45793142914772034,
0.1938394159078598,
-0.1443355679512024,
-0.45053336024284363,
0.434282094... |
css/reference/properties/index.md | CSS - Properties - Alphabetical index of properties - B:
- `backdrop-filter`
- `backface-visibility`
- `background-attachment`
- `background-blend-mode`
- `background-clip`
- `background-color`
- `background-image`
- `background-origin`
- `background-position-x`
- `background-position-y`
- `background-position`
- `bac... | [
-1.1279977560043335,
0.2538135051727295,
-0.6941751837730408,
0.07021881639957428,
-0.05797240883111954,
-0.11635623127222061,
0.6107314825057983,
2.301030158996582,
-0.12001557648181915,
-0.09043456614017487,
-0.2668991684913635,
0.6618401408195496,
0.0699269250035286,
0.10719293355941772... |
css/reference/properties/index.md | CSS - Properties - Alphabetical index of properties - Border-:
- `border-block-color`
- `border-block-end-color`
- `border-block-end-style`
- `border-block-end-width`
- `border-block-end` (shorthand)
- `border-block-start-color`
- `border-block-start-style`
- `border-block-start-width`
- `border-block-start` (shorthan... | [
-0.5363830327987671,
0.36656349897384644,
-0.5473422408103943,
-0.09027119725942612,
0.1230250746011734,
-0.26321473717689514,
0.3224436044692993,
1.5103179216384888,
-0.22641250491142273,
-0.2700587809085846,
-0.5182275772094727,
0.6464087963104248,
-0.4379175007343292,
0.3431768417358398... |
css/reference/properties/index.md | CSS - Properties - Alphabetical index of properties - B - C:
- `bottom`
- `box-align`
- `box-decoration-break`
- `box-direction`
- `box-flex-group`
- `box-flex`
- `box-lines`
- `box-ordinal-group`
- `box-orient`
- `box-pack`
- `box-shadow`
- `box-sizing`
- `break-after`
- `break-before`
- `break-inside`
- `caption-sid... | [
-1.1721826791763306,
0.20074018836021423,
-0.6076604723930359,
-0.07081533968448639,
0.1295044720172882,
-0.8245521187782288,
-0.014556550420820713,
2.080796718597412,
-0.6157639622688293,
-0.0028810426592826843,
-0.12136814743280411,
-0.04607927054166794,
-0.2265724241733551,
0.5039335489... |
css/reference/properties/index.md | CSS - Properties - Alphabetical index of properties - D - F:
- `d`
- `direction`
- `display`
- `dominant-baseline`
- `dynamic-range-limit`
- `empty-cells`
- `field-sizing`
- `fill-opacity`
- `fill-rule`
- `fill`
- `filter`
- `flex-basis`
- `flex-direction`
- `flex-flow` (shorthand)
- `flex-grow`
- `flex-shrink`
- `fle... | [
-0.4721817374229431,
0.4949328899383545,
-1.1740537881851196,
-0.6289379000663757,
-0.4051816165447235,
-0.6854860186576843,
0.06449031829833984,
1.8254311084747314,
-0.2363109141588211,
0.40774163603782654,
-0.41568243503570557,
-0.2128661870956421,
-0.27560722827911377,
0.160202369093894... |
css/reference/properties/index.md | CSS - Properties - Alphabetical index of properties - G - I:
- `gap` (shorthand)
- `grid-area` (shorthand)
- `grid-auto-columns`
- `grid-auto-flow`
- `grid-auto-rows`
- `grid-column-end`
- `grid-column-start`
- `grid-column` (shorthand)
- `grid-row-end`
- `grid-row-start`
- `grid-row` (shorthand)
- `grid-template-area... | [
-1.4396291971206665,
0.4311457574367523,
-0.4510291814804077,
-0.628458559513092,
0.3569619655609131,
-0.9772587418556213,
0.1368596851825714,
1.7640583515167236,
-0.32189106941223145,
-0.4181126356124878,
-0.4349958896636963,
-0.21041949093341827,
-0.9950808882713318,
0.45023971796035767,... |
css/reference/properties/index.md | CSS - Properties - Alphabetical index of properties - J - M:
- `justify-content`
- `justify-items`
- `justify-self`
- `left`
- `letter-spacing`
- `lighting-color`
- `line-break`
- `line-clamp`
- `line-height-step`
- `line-height`
- `list-style-image`
- `list-style-position`
- `list-style-type`
- `list-style` (shorthan... | [
-1.0250005722045898,
0.4784652292728424,
-0.6306430697441101,
0.07812485098838806,
0.3775346279144287,
-0.5507662892341614,
-0.221379354596138,
1.5561490058898926,
-0.23742063343524933,
0.07199917733669281,
0.10492067039012909,
0.1999594271183014,
-0.9456349611282349,
0.08386491239070892,
... |
css/reference/properties/index.md | CSS - Properties - Alphabetical index of properties - O - P:
- `object-fit`
- `object-position`
- `object-view-box`
- `offset-anchor`
- `offset-distance`
- `offset-path`
- `offset-position`
- `offset-rotate`
- `offset` (shorthand)
- `opacity`
- `order`
- `orphans`
- `outline-color`
- `outline-offset`
- `outline-style`... | [
-1.1979838609695435,
0.21798652410507202,
-0.7470826506614685,
-0.1281556785106659,
-0.03648393973708153,
-0.2665558457374573,
0.06297936290502548,
1.7400645017623901,
0.43086910247802734,
0.18768955767154694,
-0.7358822226524353,
0.047034576535224915,
-0.17041482031345367,
0.3108950555324... |
css/reference/properties/index.md | CSS - Properties - Alphabetical index of properties - Q - S:
- `quotes`
- `r`
- `reading-flow`
- `reading-order`
- `resize`
- `right`
- `rotate`
- `row-gap`
- `ruby-align`
- `ruby-overhang`
- `ruby-position`
- `rx`
- `ry`
- `scale`
- `scroll-behavior`
- `scroll-initial-target`
- `scroll-margin-block-end`
- `scroll-mar... | [
-1.2616534233093262,
0.6226390600204468,
-0.30867987871170044,
-0.8167985081672668,
0.1496802270412445,
-0.1722669005393982,
-0.1424708366394043,
1.7904249429702759,
0.4537616968154907,
-0.03364049270749092,
0.13914631307125092,
-0.062180377542972565,
-0.402793824672699,
0.0850674360990524... |
css/reference/properties/index.md | CSS - Properties - Alphabetical index of properties - T - Z:
- `tab-size`
- `table-layout`
- `text-align-last`
- `text-align`
- `text-anchor`
- `text-autospace`
- `text-box-edge`
- `text-box-trim`
- `text-box` (shorthand)
- `text-combine-upright`
- `text-decoration-color`
- `text-decoration-inset`
- `text-decoration-l... | [
-1.4041483402252197,
0.28276097774505615,
-0.14971226453781128,
0.3596317768096924,
0.4547886252403259,
-0.07393593341112137,
0.046700648963451385,
2.091341733932495,
-0.10058905929327011,
-0.03169611096382141,
-0.065741166472435,
0.4260488450527191,
-0.5265493988990784,
0.1230136454105377... |
css/reference/properties/index.md | CSS - Properties - Alphabetical index of properties - Non-standard properties:
Non-standard vendor-prefixed properties include: | [
-0.8214855194091797,
0.009406128898262978,
-0.7183436155319214,
0.5386859178543091,
-0.7537422180175781,
-0.7003374099731445,
0.7231882810592651,
1.681633472442627,
-0.05138735473155975,
-0.08148504793643951,
-0.6219239234924316,
-0.15854719281196594,
-0.9266961216926575,
-0.57875955104827... |
css/reference/properties/index.md | CSS - Properties - Alphabetical index of properties - Non-standard properties - `-moz-` prefix:
- `-moz-float-edge`
- `-moz-force-broken-image-icon`
- `-moz-orient`
- `-moz-user-focus`
- `-moz-user-input` | [
-0.8937284350395203,
-0.4554376006126404,
-0.8820163607597351,
-0.46330705285072327,
-0.18836915493011475,
-0.583053469657898,
1.664222240447998,
1.0166678428649902,
-0.5690902471542358,
-0.08238006383180618,
-0.7890490889549255,
0.057900793850421906,
-0.18066829442977905,
-0.3304106891155... |
css/reference/properties/index.md | CSS - Properties - Alphabetical index of properties - Non-standard properties - `-webkit-` prefix:
- `-webkit-box-reflect`
- `-webkit-border-before` (shorthand)
- `-webkit-mask-box-image` (shorthand)
- `-webkit-mask-composite`
- `-webkit-mask-position-x`
- `-webkit-mask-position-y`
- `-webkit-mask-repeat-x`
- `-webkit... | [
-1.7790141105651855,
0.1136728972196579,
-0.4125232398509979,
0.21238383650779724,
0.20830169320106506,
-0.9856182336807251,
0.36166912317276,
1.3805546760559082,
-0.1793249547481537,
0.2533886730670929,
0.22692686319351196,
0.6631833910942078,
-0.6039487719535828,
-0.11103793978691101,
... |
css/reference/properties/box-pack/index.md | CSS - Properties - box-pack:
Non-standard: This feature is not standardized. Deprecated: This feature is no longer recommended.
Warning: This is a property of the original CSS flexible box layout Module draft, and has been replaced by a newer standard. See flexbox for information about the current standard.
The `-mo... | [
-1.13008451461792,
-0.21413575112819672,
-1.3895875215530396,
0.27278876304626465,
0.7550484538078308,
-1.2723180055618286,
0.06106463819742203,
0.7035642266273499,
0.2339436113834381,
-0.1723436415195465,
-0.08416151255369186,
0.2846537232398987,
-0.44202175736427307,
-0.1618230789899826,... |
css/reference/properties/box-pack/index.md | CSS - Properties - box-pack - Syntax:
Example:
/* Keyword values */
box-pack: start;
box-pack: center;
box-pack: end;
box-pack: justify;
/* Global values */
box-pack: inherit;
box-pack: initial;
box-pack: unset; | [
-0.3716158866882324,
0.08799540251493454,
-0.5080146193504333,
-0.2462427169084549,
-0.8243672847747803,
-1.444899559020996,
1.0443975925445557,
2.0314645767211914,
0.19421014189720154,
-0.2522487938404083,
-0.03775549679994583,
0.4073038697242737,
-0.8336905837059021,
-0.12494149804115295... |
css/reference/properties/box-pack/index.md | CSS - Properties - box-pack - Syntax - Values:
This property is specified as one of the following keyword values:
- `start`: The box packs contents at the start, leaving any extra space at the end.
- `center`: The box packs contents in the center, dividing any extra space equally between the start and the end.
- `end... | [
0.16314420104026794,
-0.4474579989910126,
-0.8135892748832703,
0.05002906173467636,
-0.4007698595523834,
-0.654482364654541,
1.5628689527511597,
1.9554288387298584,
0.707223117351532,
-0.45215409994125366,
0.15136627852916718,
1.0521717071533203,
-1.5195115804672241,
0.24294030666351318,
... |
css/reference/properties/box-pack/index.md | CSS - Properties - box-pack - Notes:
The edge of the box designated the start for packing purposes depends on the box's orientation and direction:
- For horizontal elements, the start is the top edge.
- For vertical elements, the start is the left edge.
The edge opposite to the start is designated the end.
If the p... | [
-1.3843382596969604,
-0.4482411742210388,
-0.8689109086990356,
0.07424936443567276,
-0.29845285415649414,
-1.1096051931381226,
0.6466317772865295,
2.1500582695007324,
0.3427262008190155,
0.4633657932281494,
-0.3786030113697052,
-0.02770574763417244,
-0.9775564074516296,
0.3853720724582672,... |
css/reference/properties/box-pack/index.md | CSS - Properties - box-pack - Examples - Examples of box-pack:
Example:
div.example {
border-style: solid;
display: -moz-box; /* Mozilla */
display: -webkit-box; /* WebKit */
/* Make this box taller than the children,
so there is room for the box-pack */
height: 300px;
/* Make this box wide enough ... | [
-1.1373170614242554,
0.04415585845708847,
-1.0980342626571655,
0.2880682349205017,
0.23075014352798462,
-0.4547139108181,
0.7594248652458191,
1.3281304836273193,
-0.2795214056968689,
0.302462637424469,
0.35922443866729736,
0.5336777567863464,
-0.9214514493942261,
0.612594723701477,
-0.18... |
css/reference/properties/background-origin/index.md | CSS - Properties - background-origin:
The `background-origin` CSS property sets the background's origin: from the border start, inside the border, or inside the padding.
Note that `background-origin` is ignored when `background-attachment` is `fixed`.
Example:
background-origin: border-box;
background-repeat: no-re... | [
-0.39285627007484436,
-0.2526800334453583,
-1.7152273654937744,
-1.0242819786071777,
-0.04328261315822601,
-1.6353923082351685,
0.3239714205265045,
1.4322584867477417,
0.08901858329772949,
0.1102389544248581,
-0.8709012269973755,
0.4514440894126892,
-0.6862990260124207,
0.18874222040176392... |
css/reference/properties/background-origin/index.md | CSS - Properties - background-origin - Syntax:
Example:
/* Keyword values */
background-origin: border-box;
background-origin: padding-box;
background-origin: content-box;
/* Global values */
background-origin: inherit;
background-origin: initial;
background-origin: revert;
background-origin: revert-layer;
backgroun... | [
-0.1169588565826416,
0.35299602150917053,
-0.6417799592018127,
-0.16330668330192566,
-0.15161234140396118,
-1.2895370721817017,
0.4062516987323761,
1.655635952949524,
0.25036513805389404,
-0.21698540449142456,
-0.9834527373313904,
0.32519322633743286,
-0.4376404583454132,
0.024650730192661... |
css/reference/properties/background-origin/index.md | CSS - Properties - background-origin - Syntax - Values:
This property is specified as one of the following keyword values:
- `border-box`: The background is positioned relative to the border box.
- `padding-box`: The background is positioned relative to the padding box. Default value.
- `content-box`: The background ... | [
-0.28667399287223816,
-0.26158714294433594,
-1.0785027742385864,
-0.36632242798805237,
-0.22508886456489563,
-0.9197627305984497,
1.3227139711380005,
2.3406012058258057,
0.5933994650840759,
-0.3142128884792328,
-1.1152989864349365,
0.28314292430877686,
-0.5455302596092224,
0.56224524974823... |
css/reference/properties/background-origin/index.md | CSS - Properties - background-origin - Examples - Setting background origins:
Example:
.example {
border: 10px double;
padding: 10px;
background: url("image.jpg");
background-position: center left;
background-origin: content-box;
}
Example:
#example2 {
border: 4px solid black;
padding: 10px;
backgro... | [
-0.44044768810272217,
-0.2873575985431671,
-1.1512926816940308,
-0.258720338344574,
-0.4318244755268097,
-0.49051228165626526,
0.7602458000183105,
1.3386119604110718,
0.3088780641555786,
-0.5646398663520813,
-1.196010708808899,
0.48916715383529663,
-0.46954545378685,
0.1338108479976654,
... |
css/reference/properties/background-origin/index.md | CSS - Properties - background-origin - Examples - Using two gradients:
In this example the box has a thick dotted border. The first gradient uses the `padding-box` as the `background-origin` and therefore the background sits inside the border. The second uses the `content-box` and so only displays behind the content.
... | [
-0.32822877168655396,
-0.23912681639194489,
-1.0893945693969727,
-1.0680471658706665,
0.05138528347015381,
-0.7593567967414856,
0.8107107877731323,
1.5551151037216187,
0.3639342188835144,
-0.1115405261516571,
-1.1040380001068115,
0.613568902015686,
-0.5042105913162231,
0.213908851146698,
... |
css/reference/properties/font-variant-numeric/index.md | CSS - Properties - font-variant-numeric:
The `font-variant-numeric` CSS property controls the usage of alternate glyphs for numbers, fractions, and ordinal markers.
Example:
font-variant-numeric: normal;
Example:
font-variant-numeric: ordinal;
Example:
font-variant-numeric: slashed-zero;
Example:
font-variant-... | [
-1.0845342874526978,
0.2583985924720764,
-0.8014741539955139,
0.0685499757528305,
0.7935888767242432,
-1.6462424993515015,
0.442374050617218,
1.436555027961731,
0.315469890832901,
0.37950146198272705,
0.7149860262870789,
-0.8496198654174805,
-1.1331239938735962,
0.1250118613243103,
-0.63... |
css/reference/properties/font-variant-numeric/index.md | CSS - Properties - font-variant-numeric - Syntax:
Example:
font-variant-numeric: normal;
font-variant-numeric: ordinal;
font-variant-numeric: slashed-zero;
font-variant-numeric: lining-nums; /* <numeric-figure-values> */
font-variant-numeric: oldstyle-nums; /* <numeric-figure-values> */
font-variant-numeric: proporti... | [
-0.8694802522659302,
0.3809871971607208,
-0.14892223477363586,
0.01860921084880829,
0.3939822018146515,
-0.8917606472969055,
0.33207911252975464,
1.8586515188217163,
0.10495451092720032,
0.5002130270004272,
0.018544383347034454,
-0.5800584554672241,
-1.239777684211731,
0.09680092334747314,... |
css/reference/properties/font-variant-numeric/index.md | CSS - Properties - font-variant-numeric - Syntax - Values:
This property is specified either as `normal` or a space-separated list of the following values:
- `normal`: This keyword leads to the deactivation of the use of such alternate glyphs.
- `ordinal`: This keyword forces the use of special glyphs for the ordinal... | [
-1.28927743434906,
0.4747776389122009,
-0.49313801527023315,
0.15090368688106537,
0.47152501344680786,
-0.26433101296424866,
0.3572653830051422,
1.805914044380188,
0.5159724950790405,
-0.0015264246612787247,
-0.6125136017799377,
0.28146418929100037,
-0.7087945342063904,
-0.0727422311902046... |
css/reference/properties/font-variant-numeric/index.md | CSS - Properties - font-variant-numeric - Examples - Setting ordinal numeric forms:
Click "Play" in the code blocks below to edit the example in the MDN Playground:
Example:
<p class="ordinal">1st, 2nd, 3rd, 4th, 5th</p>
Example:
@font-face {
font-family: "Source Sans Pro";
src: url("https://mdn.github.io/shar... | [
-1.7220503091812134,
0.15354186296463013,
-0.27670732140541077,
-1.1359729766845703,
0.16771605610847473,
-0.4740399122238159,
0.9164007902145386,
0.7452678680419922,
1.3302476406097412,
0.08578776568174362,
-0.2677696943283081,
-0.10645367205142975,
-0.5216977000236511,
-0.844255268573761... |
css/reference/properties/border-block-width/index.md | CSS - Properties - border-block-width:
The `border-block-width` CSS property defines the width of the logical block 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-wid... | [
-0.04232652485370636,
0.3081466555595398,
-0.7208157181739807,
-0.29244542121887207,
0.2943878769874573,
-1.548403263092041,
-0.14883969724178314,
0.8404581546783447,
0.5721185207366943,
-0.6080852746963501,
-0.011298207566142082,
0.24323639273643494,
-0.39723315834999084,
0.95513713359832... |
css/reference/properties/border-block-width/index.md | CSS - Properties - border-block-width - Syntax:
Example:
/* <'line-width'> values */
border-block-width: 5px;
border-block-width: thick;
/* Global values */
border-block-width: inherit;
border-block-width: initial;
border-block-width: revert;
border-block-width: revert-layer;
border-block-width: unset; | [
-0.28858211636543274,
1.096001386642456,
-0.5953903794288635,
-0.4156239628791809,
-0.4716108739376068,
-1.472096562385559,
0.008698191493749619,
1.6044965982437134,
0.7228744029998779,
-0.04108264669775963,
-1.1856547594070435,
0.9595952033996582,
-0.5489838719367981,
0.5511437058448792,
... |
css/reference/properties/border-block-width/index.md | CSS - Properties - border-block-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`. | [
-0.5388506650924683,
-0.32120272517204285,
-1.246992826461792,
-0.9492847919464111,
-0.20723344385623932,
-0.5752062797546387,
-0.29333963990211487,
1.508327841758728,
0.8122748136520386,
-0.1547856330871582,
-0.9400604367256165,
0.9689019918441772,
-0.8059708476066589,
0.05942384153604507... |
css/reference/properties/border-block-width/index.md | CSS - Properties - border-block-width - Examples - Border width with vertical text - HTML:
Example:
<div>
<p class="exampleText">Example text</p>
</div> | [
-0.8592925071716309,
0.5128064155578613,
-0.5798952579498291,
-0.20654086768627167,
-0.9832399487495422,
-0.547766923904419,
0.6932886838912964,
1.510911226272583,
0.40495774149894714,
-0.666663646697998,
-0.6605606079101562,
0.9334213733673096,
-0.4774734079837799,
-0.12896284461021423,
... |
css/reference/properties/border-block-width/index.md | CSS - Properties - border-block-width - Examples - Border width with vertical text - CSS:
Example:
div {
background-color: yellow;
width: 120px;
height: 120px;
}
.exampleText {
writing-mode: vertical-lr;
border: 1px solid blue;
border-block-width: 5px;
} | [
-1.28753662109375,
0.3285394012928009,
-0.5040895342826843,
-0.32480788230895996,
-0.3281996250152588,
0.030441109091043472,
0.18572208285331726,
1.1405565738677979,
-0.07494519650936127,
-0.3625548481941223,
-0.5581445693969727,
0.7038123607635498,
0.11335238814353943,
0.5472556948661804,... |
css/reference/properties/color-scheme/index.md | CSS - Properties - color-scheme:
The `color-scheme` CSS property allows an element to indicate which color schemes it can comfortably be rendered in. User agents change the following aspects of the UI chrome to match the used color scheme:
- The color of the canvas surface.
- The default colors of scrollbars and othe... | [
0.31344571709632874,
0.10339681059122086,
-1.669044852256775,
-0.4528697729110718,
0.24973756074905396,
-1.9853919744491577,
-0.6332561373710632,
2.0482208728790283,
-0.46436965465545654,
0.15740792453289032,
0.634344220161438,
0.1438443958759308,
0.5419373512268066,
0.2843761444091797,
... |
css/reference/properties/color-scheme/index.md | CSS - Properties - color-scheme - Syntax:
Example:
color-scheme: normal;
color-scheme: light;
color-scheme: dark;
color-scheme: light dark;
color-scheme: only light;
/* Global values */
color-scheme: inherit;
color-scheme: initial;
color-scheme: revert;
color-scheme: revert-layer;
color-scheme: unset; | [
-0.8390201926231384,
0.580936074256897,
-0.6523148417472839,
-0.6405636668205261,
-0.3684055209159851,
-1.6555092334747314,
-0.07400493323802948,
1.9171539545059204,
0.3709630072116852,
-0.028164632618427277,
-0.7421205639839172,
0.611126720905304,
-0.050348930060863495,
0.3152999877929687... |
css/reference/properties/color-scheme/index.md | CSS - Properties - color-scheme - Syntax - Values:
This property is specified as one of the following keyword values:
- `normal`: Indicates that the element can be rendered using the page's color scheme settings. If the page does not have a color scheme set, the element is rendered using the page's default color sett... | [
-0.4626889228820801,
-0.4468577802181244,
-0.19348695874214172,
-0.15195682644844055,
0.2685076892375946,
-0.7199406027793884,
0.8191249370574951,
1.1353882551193237,
-0.414379358291626,
0.2990853488445282,
-0.097052201628685,
0.37547725439071655,
0.15250654518604279,
0.5279757976531982,
... |
css/reference/properties/color-scheme/index.md | CSS - Properties - color-scheme - Examples - Declaring color scheme preferences:
To opt the entire page into the user's color scheme preferences, declare `color-scheme` on the `:root` element.
Example:
:root {
color-scheme: light dark;
}
To opt in specific elements to the user's color scheme preferences, declare ... | [
0.1671730875968933,
0.18205563724040985,
-1.5306410789489746,
-0.07562722265720367,
0.15705884993076324,
-1.566030502319336,
-0.3870030641555786,
1.3031977415084839,
-0.7891855239868164,
0.22103452682495117,
0.16760434210300446,
-0.13040149211883545,
0.2788350582122803,
0.43155694007873535... |
css/reference/properties/color-scheme/index.md | CSS - Properties - color-scheme - Examples - Styling based on color schemes:
To style elements based on color scheme preferences, use the `prefers-color-scheme` media query. The example below opts in the entire page to using both light and dark operating system color schemes via the `color-scheme` property, and then u... | [
-0.013070943765342236,
-0.3667334318161011,
-1.1733694076538086,
0.11896495521068573,
-0.16694608330726624,
-0.5928143262863159,
0.5899161696434021,
1.3966046571731567,
-0.4722599983215332,
0.1975833922624588,
-0.6225385665893555,
0.35729408264160156,
-0.3651578426361084,
-0.08771678805351... |
css/reference/properties/padding-top/index.md | CSS - Properties - padding-top:
The `padding-top` CSS property sets the height of the padding area on the top of an element.
Example:
padding-top: 1em;
Example:
padding-top: 10%;
Example:
padding-top: 20px;
Example:
padding-top: 1ch;
Example:
padding-top: 0;
Example:
<section id="default-example">
<div c... | [
-0.4973498582839966,
-0.19667068123817444,
-1.1344224214553833,
-0.09858360886573792,
0.02880961447954178,
-1.9459497928619385,
0.9176417589187622,
1.4293769598007202,
-0.5999929308891296,
0.5820289254188538,
-0.6244831681251526,
0.7279337048530579,
-1.0470811128616333,
0.04065985232591629... |
css/reference/properties/padding-top/index.md | CSS - Properties - padding-top - Syntax:
Example:
/* <length> values */
padding-top: 0.5em;
padding-top: 0;
padding-top: 2cm;
/* <percentage> value */
padding-top: 10%;
/* Global values */
padding-top: inherit;
padding-top: initial;
padding-top: revert;
padding-top: revert-layer;
padding-top: unset;
The `padding-t... | [
-0.6781282424926758,
0.10348940640687943,
-0.724924623966217,
0.18916963040828705,
-0.16489748656749725,
-1.4496064186096191,
1.1772040128707886,
2.361658811569214,
-0.5052977800369263,
0.5563020706176758,
-0.9249787926673889,
1.0738450288772583,
-0.8299235105514526,
-0.18103554844856262,
... |
css/reference/properties/padding-top/index.md | CSS - Properties - padding-top - 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. Must be... | [
-1.114179253578186,
-0.3629119396209717,
-0.7140142321586609,
0.040932781994342804,
-0.4226078391075134,
-1.361702799797058,
1.151432991027832,
1.7665400505065918,
0.140339657664299,
-0.003049127757549286,
-1.2615255117416382,
0.6483851075172424,
-0.5721338391304016,
0.02292078733444214,
... |
css/reference/properties/padding-top/index.md | CSS - Properties - padding-top - Examples - Setting top padding using pixels and percentages:
Example:
.content {
padding-top: 5%;
}
.side-box {
padding-top: 10px;
} | [
-0.8895375728607178,
-0.14277921617031097,
-0.33213409781455994,
0.36051103472709656,
-0.4489299952983856,
-0.7106759548187256,
1.4825679063796997,
1.8883540630340576,
-0.6722695231437683,
-0.07361450791358948,
-1.0839990377426147,
0.26012906432151794,
-0.8289806246757507,
0.10094991326332... |
css/reference/properties/page-break-before/index.md | CSS - Properties - page-break-before:
Deprecated: This feature is no longer recommended.
Warning: This property has been replaced by the `break-before` property.
The `page-break-before` CSS property adjusts page breaks before the current element.
This property applies to block elements that generate a box. It won't... | [
-0.062109947204589844,
0.3902228772640228,
-0.907170295715332,
0.45560887455940247,
0.998863935470581,
-1.3434730768203735,
0.2386089563369751,
2.0317280292510986,
-0.23458340764045715,
0.3704499304294586,
0.5027236342430115,
0.2770425081253052,
-0.6012038588523865,
0.14228686690330505,
... |
css/reference/properties/page-break-before/index.md | CSS - Properties - page-break-before - Syntax:
Example:
/* Keyword values */
page-break-before: auto;
page-break-before: always;
page-break-before: avoid;
page-break-before: left;
page-break-before: right;
page-break-before: recto;
page-break-before: verso;
/* Global values */
page-break-before: inherit;
page-break-... | [
-0.979092538356781,
0.04997224360704422,
-0.3182418644428253,
0.2545439898967743,
-0.4699515998363495,
-0.6019404530525208,
1.4864249229431152,
1.2216548919677734,
0.5769243836402893,
0.23397082090377808,
-0.5042685866355896,
0.27048441767692566,
0.372918963432312,
-0.1644669473171234,
0... |
css/reference/properties/page-break-before/index.md | CSS - Properties - page-break-before - Syntax - Values:
This property is specified as one of the following keyword values:
- `auto`: Initial value. Automatic page breaks (neither forced nor forbidden).
- `always`: Always force page breaks before the element.
- `avoid`: Avoid page breaks before the element.
- `left`: ... | [
-0.5955657362937927,
-0.0924355611205101,
-0.7507123947143555,
0.1191781610250473,
0.2836986780166626,
-0.14196883141994476,
0.34932824969291687,
1.2568514347076416,
-0.06265004724264145,
0.21284696459770203,
0.17719115316867828,
-0.048374004662036896,
0.04206112027168274,
0.49555480480194... |
css/reference/properties/page-break-before/index.md | CSS - Properties - page-break-before - Page break aliases:
The `page-break-before` property is now a legacy property, replaced by `break-before`.
For compatibility reasons, `page-break-before` should be treated by browsers as an alias of `break-before`. This ensures that sites using `page-break-before` continue to wo... | [
-1.1821421384811401,
0.8372388482093811,
-1.095133662223816,
0.419938862323761,
0.036072954535484314,
-0.5087255239486694,
1.684874176979065,
1.362140417098999,
0.10173667967319489,
0.29248303174972534,
-0.46657437086105347,
-0.1963873654603958,
0.03231190890073776,
-0.23176857829093933,
... |
css/reference/properties/page-break-before/index.md | CSS - Properties - page-break-before - Examples - Avoid a page break before an element:
Example:
/* Avoid page break before div elements of class note */
div.note {
page-break-before: avoid;
} | [
0.004407860338687897,
-0.2552829384803772,
-0.9089126586914062,
0.008688539266586304,
-0.5081725120544434,
-0.7739773392677307,
1.1044694185256958,
1.2977513074874878,
0.1606665998697281,
-0.28728073835372925,
-0.016006620600819588,
-0.33644968271255493,
-0.628413736820221,
-0.580575227737... |
css/reference/properties/border-collapse/index.md | CSS - Properties - border-collapse:
The `border-collapse` CSS property sets whether cells inside a `table` have shared or separate borders.
When cells are collapsed, the `border-style` value of `inset` behaves like `ridge`, and `outset` behaves like `groove`.
When cells are separated, the distance between cells is d... | [
-0.39694955945014954,
0.0315948911011219,
-1.5555022954940796,
-0.4245586395263672,
0.8140261769294739,
-1.154417872428894,
-0.15815559029579163,
1.5393410921096802,
-0.16592071950435638,
0.26733070611953735,
0.08546694368124008,
-0.21253502368927002,
-0.5059693455696106,
0.643458604812622... |
css/reference/properties/border-collapse/index.md | CSS - Properties - border-collapse - Syntax:
Example:
/* Keyword values */
border-collapse: collapse;
border-collapse: separate;
/* Global values */
border-collapse: inherit;
border-collapse: initial;
border-collapse: revert;
border-collapse: revert-layer;
border-collapse: unset; | [
-0.9065842628479004,
0.5266658067703247,
-0.21575529873371124,
0.00037086009979248047,
-0.1874927282333374,
-0.615026593208313,
0.051561206579208374,
2.1540606021881104,
0.11081025004386902,
0.24325135350227356,
-0.8934634923934937,
0.5485435128211975,
-0.2451954185962677,
0.42098903656005... |
css/reference/properties/border-collapse/index.md | CSS - Properties - border-collapse - Syntax - Values:
This property is specified as one of the following keyword values:
- `collapse`: Adjacent cells have shared borders (the collapsed-border table rendering model).
- `separate`: Adjacent cells have distinct borders (the separated-border table rendering model). | [
-0.4135969877243042,
0.03605780005455017,
-1.3273299932479858,
-0.3404555320739746,
-0.07739518582820892,
-0.1451384425163269,
0.540472149848938,
1.900762677192688,
0.5712602734565735,
0.48259082436561584,
-0.7110527157783508,
-0.18584337830543518,
-0.2499726265668869,
1.224007487297058,
... |
css/reference/properties/border-collapse/index.md | CSS - Properties - border-collapse - Examples - A colorful table of browser engines - HTML:
Example:
<table class="separate">
<caption>
<code>border-collapse: separate</code>
</caption>
<tbody>
<tr>
<th>Browser</th>
<th>Layout Engine</th>
</tr>
<tr>
<td class="fx">Firefox</td>
... | [
-1.348633050918579,
0.1498241424560547,
-0.892921507358551,
0.1726425439119339,
0.6225970983505249,
-0.5182455778121948,
0.0671110451221466,
0.7417541146278381,
-0.2897754907608032,
0.14215737581253052,
-0.05553239583969116,
-0.1773892343044281,
-0.5051103234291077,
0.4762420058250427,
-... |
css/reference/properties/border-collapse/index.md | CSS - Properties - border-collapse - Examples - A colorful table of browser engines - CSS:
Example:
.collapse {
border-collapse: collapse;
}
.separate {
border-collapse: separate;
}
table {
display: inline-table;
margin: 1em;
border: dashed 5px;
}
table th,
table td {
border: solid 3px;
}
.fx {
bord... | [
-0.1091863140463829,
0.32943156361579895,
-1.0004603862762451,
-0.3451029658317566,
0.45043402910232544,
-0.6148504018783569,
-0.1637791246175766,
1.4436235427856445,
-0.31634804606437683,
0.6090675592422485,
0.6225165128707886,
-0.22030113637447357,
-0.2467990666627884,
0.5215570330619812... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.