Search completed in 1.04 seconds.
letter-spacing - CSS: Cascading Style Sheets
the letter-
spacing css property sets the horizontal
spacing behavior between text characters.
... this value is added to the natural
spacing between characters while rendering the text.
... positive values of letter-
spacing causes characters to spread farther apart, while negative values of letter-
spacing bring characters closer together.
...And 9 more matches
border-spacing - CSS: Cascading Style Sheets
the border-
spacing css property sets the distance between the borders of adjacent <table> cells.
... the border-
spacing value is also used along the outside edge of the table, where the distance between the table's border and the cells in the first/last column or row is the sum of the relevant (horizontal or vertical) border-
spacing and the relevant (top, right, bottom, or left) padding on the table.
... note: the border-
spacing property is equivalent to the deprecated cell
spacing <table> attribute, except that it has an optional second value that can be used to set different horizontal and vertical
spacing.
...And 7 more matches
word-spacing - CSS: Cascading Style Sheets
the word-
spacing css property sets the length of space between words and between tags.
... syntax /* keyword value */ word-
spacing: normal; /* <length> values */ word-
spacing: 3px; word-
spacing: 0.3em; /* <percentage> values */ word-
spacing: 50%; word-
spacing: 200%; /* global values */ word-
spacing: inherit; word-
spacing: initial; word-
spacing: unset; values normal the normal inter-word
spacing, as defined by the current font and/or the browser.
... <length> specifies extra
spacing in addition to the intrinsic inter-word
spacing defined by the font.
...And 7 more matches
letter-spacing - SVG: Scalable Vector Graphics
the letter-
spacing attribute controls
spacing between text characters, in addition to any
spacing from the kerning attribute.
... note: as a presentation attribute, letter-
spacing can be used as a css property.
... see the css letter-
spacing property for more information.
...And 4 more matches
word-spacing - SVG: Scalable Vector Graphics
the word-
spacing attribute specifies
spacing behavior between words.
... note: as a presentation attribute, word-
spacing can be used as a css property.
... see the css word-
spacing property for more information.
...And 4 more matches
HTMLTableElement.cellSpacing - Web APIs
while you should instead use the css border-
spacing property, the obsolete htmltableelement interface's cell
spacing property represents the
spacing around the individual <th> and <td> elements representing a table's cells.
... any two cells are separated by the sum of the cell
spacing of each of the two cells.
... syntax htmltableelement.cell
spacing =
spacing; var
spacing = htmltableelement.cell
spacing; value a domstring which is either a number of pixels (such as "10") or a percentage value (like "10%").
...And 2 more matches
spacing - SVG: Scalable Vector Graphics
the
spacing attribute indicates how the user agent should determine the
spacing between typographic characters that are to be rendered along a path.
... only one element is using this attribute: <textpath> usage notes value auto | exact default value exact animatable yes auto this value indicates that the user agent should use text-on-a-path layout algorithms to adjust the
spacing between typographic characters in order to achieve visually appealing results.
... exact this value indicates that the typographic characters should be rendered exactly according to the
spacing rules as specified by the layout rules for text-on-a-path.
...And 2 more matches
CSS property compatibility table for form controls - Learn web development
font yes yes see the note about line-height letter-
spacing yes yes text-align yes yes text-decoration partial partial see the note about opera text-indent partial[1] partial[1] ie9 supports this property only on <textarea>s, whereas opera only supports it on single line text fields.
... letter-
spacing yes yes text-align no no text-decoration partial yes text-indent yes yes text-overflow no no text-shadow partial partial text-transform yes yes border and background background yes yes border-radius yes[1] yes[1] o...
... letter-
spacing yes yes text-align yes yes text-decoration partial partial text-indent yes yes text-overflow no no text-shadow partial partial text-transform n.a.
...And 10 more matches
filter - CSS: Cascading Style Sheets
00%; } body { font: 14px/1.286 "lucida grande", "lucida sans unicode", "dejavu sans", lucida, arial, helvetica, sans-serif; color: rgb(51, 51, 51); height:100%; overflow:hidden; } #img2 { width:100%; height:auto; -webkit-filter:blur(5px); -ms-filter:blur(5px); filter:blur(5px); } table.standard-table { border: 1px solid rgb(187, 187, 187); border-collapse: collapse; border-
spacing: 0; margin: 0 0 1.286em; height: 100%; width: 85%; } table.standard-table th { border: 1px solid rgb(187, 187, 187); padding: 0px 5px; background: none repeat scroll 0% 0% rgb(238, 238, 238); text-align: left; font-weight: bold; } table.standard-table td { padding: 5px; border: 1px solid rgb(204, 204, 204); text-align: left; vertical-align: top; width:25%; height:auto;...
...ucida grande","lucida sans unicode","dejavu sans",lucida,arial,helvetica,sans-serif; color: rgb(51, 51, 51); height:100%; overflow:hidden; } #img2 { width:100%; height:auto; -moz-filter:brightness(2); -webkit-filter:brightness(2); -ms-filter:brightness(2); filter:brightness(2); } table.standard-table { border: 1px solid rgb(187, 187, 187); border-collapse: collapse; border-
spacing: 0px; margin: 0px 0px 1.286em; height:100%; width: 85%; } table.standard-table th { border: 1px solid rgb(187, 187, 187); padding: 0px 5px; background: none repeat scroll 0% 0% rgb(238, 238, 238); text-align: left; font-weight: bold; } table.standard-table td { padding: 5px; border: 1px solid rgb(204, 204, 204); text-align: left; vertical-align: top; width:25%; height:...
...a grande","lucida sans unicode","dejavu sans",lucida,arial,helvetica,sans-serif; color: rgb(51, 51, 51); height:100%; overflow:hidden; } #img2 { width:100%; height:auto; -moz-filter:contrast(200%); -webkit-filter:contrast(200%); -ms-filter:contrast(200%); filter:contrast(200%); } table.standard-table { border: 1px solid rgb(187, 187, 187); border-collapse: collapse; border-
spacing: 0px; margin: 0px 0px 1.286em; width: 85%; height: 100%; } table.standard-table th { border: 1px solid rgb(187, 187, 187); padding: 0px 5px; background: none repeat scroll 0% 0% rgb(238, 238, 238); text-align: left; font-weight: bold; } table.standard-table td { padding: 5px; border: 1px solid rgb(204, 204, 204); text-align: left; vertical-align: top; width:25%; height...
...And 8 more matches
OpenType font features guide - CSS: Cascading Style Sheets
these include things like ligatures (special glyphs that combine characters like 'fi' or 'ffl'), kerning (adjustments to the
spacing between specific letterform pairings), fractions, numeral styles, and a number of others.
...the answer lies in the specific features that will make a site more useful, readable, and polished: ligatures like 'ff' or 'fi' make letter
spacing and reading more even and smooth.
... kerning (font-kerning) this refers to the
spacing between specific glyph pairings.
...And 5 more matches
Browser Feature Detection - Archive of obsolete content
ties/methods in document.body.style name firefox 1.5 ie 6 & 7 opera 8.54 - 9.01 background true true true backgroundattachment true true true backgroundcolor true true true backgroundimage true true true backgroundrepeat true true true border true true true border
spacing true false true borderstyle true true true bordertop true true true borderright true true true borderbottom true true true borderleft true true true bordertopwidth true true true borderrightwidth true true true borderbottomwidth true true true ...
...true display true true true cssfloat true false true font true true true fontfamily true true true fontsize true true true fontstyle true true true fontvariant true true true fontweight true true true height true true true letter
spacing true true true lineheight true true true liststyle true true true liststyleimage true true true liststyleposition true true true liststyletype true true true margin true true true margintop true true true marginright true true true margi...
...ottom true true true paddingleft true true true textalign true true true textdecoration true true true textindent true true true texttransform true true true verticalalign true true true whitespace true true true width true true true word
spacing true true true dom css 2 support for properties/methods in document.body.style</caption> name firefox 1.5 ie 6 & 7 opera 8.54 - 9.01 azimuth true false false backgroundposition true true true bordercollapse true true true border
spacing true false true bordertopcolor true true...
...And 4 more matches
Styling tables - Learn web development
link the css to the html by placing the following line of html inside your <head>: <link href="style.css" rel="stylesheet" type="text/css">
spacing and layout the first thing we need to do is sort out the
spacing/layout — default table styling is so cramped!
... to do this, add the following css to your style.css file: /*
spacing */ table { table-layout: fixed; width: 100%; border-collapse: collapse; border: 3px solid purple; } thead th:nth-child(1) { width: 30%; } thead th:nth-child(2) { width: 20%; } thead th:nth-child(3) { width: 15%; } thead th:nth-child(4) { width: 35%; } th, td { padding: 20px; } the most important parts to note are as follows: a table-layout value of fixed is generally a good idea to set on your table, as it makes the table behave a bit more predictably by default.
...by default, when you set borders on table elements, they will all have
spacing between them, as the below image illustrates: this doesn't look very nice (although it might be the look you want, who knows?) with border-collapse: collapse; set, the borders collapse down into one, which looks much better: we've put a border around the whole table, which is needed because we'll be putting some borders round the table header and footer later on — it looks really odd and dis...
...And 3 more matches
Styling lists - Learn web development
t> <dd>that green healthy stuff that many of us just use to garnish kebabs.</dd> </dl> if you go to the live example now and investigate the list elements using browser developer tools, you'll notice a couple of styling defaults: the <ul> and <ol> elements have a top and bottom margin of 16px (1em) and a padding-left of 40px (2.5em.) the list items (<li> elements) have no set defaults for
spacing.
... handling list
spacing when styling lists, you need to adjust their styles so they keep the same vertical
spacing as their surrounding elements (such as paragraphs and images; sometimes called vertical rhythm), and the same horizontal
spacing as each other (you can see the finished styled example on github, and find the source code too.) the css used for the text styling and
spacing is as follows: /* general styles */ html { font-family: helvetica, arial, sans-serif; font-size: 10px; } h2 { font-size: 2rem; } ul,ol,dl,p { ...
...this means that each paragraph and list will have the same font size and top and bottom
spacing, helping to keep the vertical rhythm consistent.
...And 3 more matches
SVG documentation index - SVG: Scalable Vector Graphics
111 k deprecated, svg, svg attribute the k attribute specifies the amount for decreasing the
spacing between the two glyphs in a kerning pair.
... 118 kerning deprecated, svg, svg attribute the kerning attribute indicates whether the
spacing between glyphs should be adjusted based on kerning tables that are included in the relevant font (i.e., enable auto-kerning) or instead disable auto-kerning and set the
spacing between them to a specific length (typically, zero).
... 124 letter-
spacing svg, svg attribute the letter-
spacing attribute controls
spacing between text characters, in addition to any
spacing from the kerning attribute.
...And 3 more matches
Fundamental text and font styling - Learn web development
here we'll go through all the basic fundamentals of text/font styling in detail, including setting font weight, family and style, font shorthand, text alignment and other effects, and line and letter
spacing.
... text layout styles: properties that affect the
spacing and other layout features of the text, allowing manipulation of, for example, the space between lines and letters, and how the text is aligned within the content box.
...but it was a rare occasion such as this that he did.</p> html { font-size: 10px; } h1 { font-size: 5rem; text-transform: capitalize; text-shadow: 1px 1px 1px red, 2px 2px 1px red; text-align: center; } h1 + p { font-weight: bold; } p { font-size: 1.5rem; color: red; font-family: helvetica, arial, sans-serif; line-height: 1.6; } letter and word
spacing the letter-
spacing and word-
spacing properties allow you to set the
spacing between letters and words in your text.
...And 2 more matches
SVGTextPathElement - Web APIs
spacing types name value description textpath_
spacingtype_unknown 0 the type is not one of predefined types.
... textpath_
spacingtype_auto 1 corresponds to the value auto.
... textpath_
spacingtype_exact 2 corresponds to the value exact.
...And 2 more matches
lengthAdjust - SVG: Scalable Vector Graphics
four elements are using this attribute: <text>, <textpath>, <tref>, and <tspan> html, body, svg { height: 100%; } <svg width="300" height="150" xmlns="http://www.w3.org/2000/svg"> <g font-face="sans-serif"> <text x="0" y="20" textlength="300" lengthadjust="
spacing"> stretched using
spacing only.
... </text> <text x="0" y="50" textlength="300" lengthadjust="
spacingandglyphs"> stretched using
spacing and glyphs.
... </text> <text x="0" y="80" textlength="100" lengthadjust="
spacing"> shrunk using
spacing only.
...And 2 more matches
Appendix D: Loading Scripts - Archive of obsolete content
advantages name
spacing: since scripts executed via evalinsandbox run in a defined namespace, global namespace contamination and the resultant extension compatibility issues are not usually a problem.
... advantages name
spacing: global namespace contamination and the resultant extension compatibility issues can often be avoided by loading sub-scripts into private namespaces.
... name
spacing: javascript modules, like javascript components, are loaded into their own private scope.
... disadvantages name
spacing: as modules always execute with their own namespace, they have no direct access to the dom or window properties of windows or documents, and therefore must often pass around references to these objects and any document-specific state data that they require.
Index - Archive of obsolete content
some special ids may also be used to create special
spacing items: 1256 insertitemat xul methods, xul reference no summary!
... 1806 using spacers tutorials, xul, xul_tutorial in this section, we will find out how to add some
spacing in between the elements we have created.
...it is usually used to place
spacing within a container.
... 2129 -ms-text-autospace css, css property, css:microsoft extensions, non-standard, reference, recipe:css-property the -ms-text-autospace css property is a microsoft extension that specifies the auto
spacing and narrow space width adjustment of text.
-ms-text-autospace - Archive of obsolete content
the -ms-text-autospace css property is a microsoft extension that specifies the auto
spacing and narrow space width adjustment of text.
... ideograph-alpha creates extra
spacing between runs of ideographic and non-ideographic text, such as latin-based, cyrillic, greek, arabic, or hebrew text.
... ideograph-numeric creates extra
spacing between runs of ideographic text and numeric characters.
... ideograph-parenthesis creates extra
spacing between a normal (non-wide) parenthesis and an ideograph.
Typesetting a community school homepage - Learn web development
give your headings a little bit of letter-
spacing to make them not too too squashed, and allow the letters to breathe a bit.
... give your body text some letter-
spacing and word-
spacing, as appropriate.
... lists: make sure the
spacing of your lists and list items works well with the styling of the overall page.
... each list item should have the same line-height as a paragraph line, and each list should have the same
spacing at its top and bottom as you have between paragraphs.
CSS basics - Learn web development
finally, let's expand the second ruleset (below) with settings for line height and letter
spacing to make body content more readable.
... h1 { font-size: 60px; text-align: center; } p, li { font-size: 16px; line-height: 2; letter-
spacing: 1px; } adjust the px values as you like.
...a block element can have margin and other
spacing values applied to it.
...it is not possible to apply margin or
spacing values to inline elements.
Index - Learn web development
for example, you can use css to alter the font, color, size, and
spacing of your content, split it into multiple columns, or add animations and other decorative features.
... 134 css first steps beginner, css, landing, learn, module, first steps css (cascading style sheets) is used to style and lay out web pages — for example, to alter the font, color, size, and
spacing of your content, split it into multiple columns, or add animations and other decorative features.
...here we look at text styling fundamentals including setting font, boldness, italics, line and letter
spacing, drop shadows, and other text features.
... 161 fundamental text and font styling article, beginner, css, guide, style, text, alignment, family, font, shorthand,
spacing, weight we hoped you enjoyed playing with text in this article!
SVGTextContentElement - Web APIs
lengthadjust_
spacing 1 the
spacing keyword.
... lengthadjust_
spacingandglyphs 2 the
spacingandglyphs keyword.
...note that this method only accounts for the widths of the glyphs in the substring and any extra
spacing inserted by the css 'letter-
spacing' and 'word-
spacing' properties.
... visual
spacing adjustments made by the 'x' attribute is ignored.
<table>: The Table element - HTML: Hypertext Markup Language
cell
spacing this attribute defines the size of the space between two cells in a percentage value or pixels.
... to achieve a similar effect, apply the border-
spacing property to the <table> element.
... border-
spacing does not have any effect if border-collapse is set to collapse.
... <col style="background-color: #0f0"> <col span="2"> </colgroup> <tr> <th>lime</th> <th>lemon</th> <th>orange</th> </tr> <tr> <td>green</td> <td>yellow</td> <td>orange</td> </tr> </table> <p>simple table with caption</p> <table> <caption>awesome caption</caption> <tr> <td>awesome data</td> </tr> </table> table { border-collapse: collapse; border-
spacing: 0px; } table, th, td { padding: 5px; border: 1px solid black; } accessibility concerns captions by supplying a <caption> element whose value clearly and concisely describes the table's purpose, it helps the people decide if they need to read the rest of the table content or skip over it.
MathML attribute reference - MathML
column
spacing <mtable> specifies the space between table columns.
... frame
spacing <mtable> specifies additional space added between the table and frame.
... unimplemented minlabel
spacing <mtable> a length value specifing the minimum space between a label and the adjacent cell in the row.
... row
spacing <mtable> specifies the space between table rows.
<mtable> - MathML
column
spacing specifies the space between table columns.
... frame
spacing specifies additional space added between the table and frame.
... unimplemented minlabel
spacing a length value specifing the minimum space between a label and the adjacent cell in the row.
... unimplemented row
spacing specifies the space between table rows.
SVG Presentation Attributes - SVG: Scalable Vector Graphics
olor-interpolation color-interpolation-filters color-profile color-rendering cursor direction display dominant-baseline enable-background fill fill-opacity fill-rule filter flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-orientation-horizontal glyph-orientation-vertical image-rendering kerning letter-
spacing lighting-color marker-end marker-mid marker-start mask opacity overflow pointer-events shape-rendering solid-color solid-opacity stop-color stop-opacity stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering transform unicode-bidi vector-effect visibility word-sp...
... value: auto|optimizequality|optimizespeed; animatable: yes kerning deprecated since svg 2 it indicates whether the browser should adjust inter-glyph
spacing.
... value: auto|<length>|inherit; animatable: yes letter-
spacing it controls
spacing between text characters.
... value: visible|hidden|collapse|inherit; animatable: yes word-
spacing specifies
spacing behavior between words.
kerning - SVG: Scalable Vector Graphics
the kerning attribute indicates whether the
spacing between glyphs should be adjusted based on kerning tables that are included in the relevant font (i.e., enable auto-kerning) or instead disable auto-kerning and set the
spacing between them to a specific length (typically, zero).
...ca, arial, sans-serif; } <svg viewbox="0 0 150 125" xmlns="http://www.w3.org/2000/svg"> <text x="10" y="30" kerning="auto">auto</text> <text x="10" y="70" kerning="0">number</text> <text x="10" y="110" kerning="20px">length</text> </svg> usage notes value auto | <length> default value auto animatable yes auto this value indicates that the
spacing between glyphs is adjusted based on kerning tables that are included in the font that will be used.
...instead, inter-character
spacing is set to the given length.
... the given length is added to the inter-character
spacing value specified by the letter-
spacing attribute.
SVG Attribute reference - SVG: Scalable Vector Graphics
fr fx fy g g1 g2 glyph-name glyph-orientation-horizontal glyph-orientation-vertical glyphref gradienttransform gradientunits h hanging height href hreflang horiz-adv-x horiz-origin-x i id ideographic image-rendering in in2 intercept k k k1 k2 k3 k4 kernelmatrix kernelunitlength kerning keypoints keysplines keytimes l lang lengthadjust letter-
spacing lighting-color limitingconeangle local m marker-end marker-mid marker-start markerheight markerunits markerwidth mask maskcontentunits maskunits mathematical max media method min mode n name numoctaves o offset opacity operator order orient orientation origin overflow overline-position overline-thickness p panose-1 paint-order path pathlength pat...
...terncontentunits patterntransform patternunits ping pointer-events points pointsatx pointsaty pointsatz preservealpha preserveaspectratio primitiveunits r r radius referrerpolicy refx refy rel rendering-intent repeatcount repeatdur requiredextensions requiredfeatures restart result rotate rx ry s scale seed shape-rendering slope
spacing specularconstant specularexponent speed spreadmethod startoffset stddeviation stemh stemv stitchtiles stop-color stop-opacity strikethrough-position strikethrough-thickness string stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width style surfacescale systemlanguage t tabindex tablevalues target targetx targety text-anchor t...
...ext-decoration text-rendering textlength to transform transform-origin type u u1 u2 underline-position underline-thickness unicode unicode-bidi unicode-range units-per-em v v-alphabetic v-hanging v-ideographic v-mathematical values vector-effect version vert-adv-y vert-origin-x vert-origin-y viewbox viewtarget visibility w width widths word-
spacing writing-mode x x x-height x1 x2 xchannelselector xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xml:lang xml:space y y y1 y2 ychannelselector z z zoomandpan svg attributes by category generic attributes core attributes id, lang, tabindex, xml:base, xml:lang, xml:space style attributes class, style conditional processing att...
...olor-interpolation, color-interpolation-filters, color-profile, color-rendering, cursor, direction, display, dominant-baseline, enable-background, fill, fill-opacity, fill-rule, filter, flood-color, flood-opacity, font-family, font-size, font-size-adjust, font-stretch, font-style, font-variant, font-weight, glyph-orientation-horizontal, glyph-orientation-vertical, image-rendering, kerning, letter-
spacing, lighting-color, marker-end, marker-mid, marker-start, mask, opacity, overflow, pointer-events, shape-rendering, stop-color, stop-opacity, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, text-anchor, text-decoration, text-rendering, transform, transform-origin, unicode-bidi, vector-effect, visibility, word-
spacing, wri...
Index - Archive of obsolete content
some special ids may also be used to create special
spacing items: 525 insertitemat xul methods, xul reference no summary!
... 1075 using spacers tutorials, xul, xul_tutorial in this section, we will find out how to add some
spacing in between the elements we have created.
...it is usually used to place
spacing within a container.
Learn to style HTML using CSS - Learn web development
for example, you can use css to alter the font, color, size, and
spacing of your content, split it into multiple columns, or add animations and other decorative features.
... css first steps css (cascading style sheets) is used to style and lay out web pages — for example, to alter the font, color, size, and
spacing of your content, split it into multiple columns, or add animations and other decorative features.
...here we look at text styling fundamentals, including setting font, boldness, italics, line and letter
spacing, drop shadows and other text features.
Aprender y obtener ayuda - Learn web development
remove unneeded defaults, like list
spacing and bullet points.
... give the menu items enough vertical
spacing.
... navigation menus, so they'll immediately start thinking of a solution like this: a nav menu is usually created from a list of links, something like: <ul> <li>first menu item</li> <li>second menu item</li> <li>third menu item</li> <li>etc.</li> </ul> to make all the items sit horizontally on a line, the easiest modern way is to use flexbox: ul { display: flex; } to remove unneeded
spacing and bullet points, we can do this: ul { list-style-type: none; padding: 0; } etc.
MathML Demo: <mo> - operator, fence, separator, or accent
in general, the lspace and rspace around arrows should be similar to the
spacing around relations.
...in general, the lspace and rspace around negated relations should be similar to the
spacing around relations.
...here's an example to illustrate
spacing around fences m [ m m m ] m ( m m ) m { m m } m ⟨ m m ⟩ m | m m | m m m [ m m m ] + ( m m ) + { m m } + ⟨ m m ⟩ + | m m | m m m [ m m m ] ( m m ) { m m } ⟨ m m ⟩ | m m | ...
Index - Web APIs
1722 htmlimageelement.hspace api, dom, html, html dom, htmlimageelement, horizontal, image, layout, obsolete, property, reference, hspace, img, left, margin, right,
spacing the obsolete hspace property of the htmlimageelement interface specifies the number of pixels of empty space to leave empty on the left and right sides of the <img> element when laying out the page.
... 1734 htmlimageelement.vspace api, html, html dom, htmlimageelement, image, obsolete, property, reference, vertical, bottom, img, margin, space,
spacing, top, vspace the obsolete vspace property of the htmlimageelement interface specifies the number of pixels of empty space to leave empty on the top and bottom of the <img> element when laying out the page.
... 1916 htmltableelement.cell
spacing api, html dom, htmltableelement, needsspectable, obsolete, property, reference, cell
spacing while you should instead use the css border-
spacing property, the obsolete htmltableelement interface's cell
spacing property represents the
spacing around the individual <th> and <td> elements representing a table's cells.
CSS Fonts - CSS: Cascading Style Sheets
p { width: 600px; margin: 0 auto; font-family: "helvetica neue", "arial", sans-serif; font-style: italic; font-weight: 100; font-variant-ligatures: normal; font-size: 2rem; letter-
spacing: 1px; } <p>three hundred years ago<br> i thought i might get some sleep<br> i stretched myself out onna antique bed<br> an' my spirit did a midnite creep</p> the result is as follows: variable fonts examples you can find a number of variable fonts examples at v-fonts.com and axis-praxis.org; see also our variable fonts guide for more information and usage information.
...-feature-settings font-style font-variant font-weight font-stretch src unicode-range @font-feature-values guides fundamental text and font styling in this beginner's learning article we go through all the basic fundamentals of text/font styling in detail, including setting font weight, family and style, font shorthand, text alignment and other effects, and line and letter
spacing.
...these include things like ligatures (special glyphs that combine characters like 'fi' or 'ffl'), kerning (adjustments to the
spacing between specific letterform pairings), fractions, numeral styles, and a number of others.
CSS reference - CSS: Cascading Style Sheets
thborder-inlineborder-inline-colorborder-inline-endborder-inline-end-colorborder-inline-end-styleborder-inline-end-widthborder-inline-startborder-inline-start-colorborder-inline-start-styleborder-inline-start-widthborder-inline-styleborder-inline-widthborder-leftborder-left-colorborder-left-styleborder-left-widthborder-radiusborder-rightborder-right-colorborder-right-styleborder-right-widthborder-
spacingborder-start-end-radiusborder-start-start-radiusborder-styleborder-topborder-top-colorborder-top-left-radiusborder-top-right-radiusborder-top-styleborder-top-widthborder-widthbottom@bottom-centerbox-decoration-breakbox-shadowbox-sizingbreak-afterbreak-beforebreak-insidebrightness()ccalc()caption-sidecaret-colorch@character-variantcharacter-variant()@charset:checkedcircle()clamp()clearclipclip-path...
...nt><image>image()image-orientationimage-renderingimage-set()@importin:in-range:indeterminateinheritinitialinline-sizeinsetinset()inset-blockinset-block-endinset-block-startinset-inlineinset-inline-endinset-inline-start<integer>:invalidinvert()isolationjjustify-contentjustify-itemsjustify-selfkkhz@keyframesl:lang:last-child:last-of-typeleader():leftleft@left-bottom<length><length-percentage>letter-
spacingline-breakline-heightlinear-gradient():linklist-stylelist-style-imagelist-style-positionlist-style-typelocal()mmarginmargin-blockmargin-block-endmargin-block-startmargin-bottommargin-inlinemargin-inline-endmargin-inline-startmargin-leftmargin-rightmargin-top::markermarks (@page)maskmask-bordermask-border-modemask-border-outsetmask-border-repeatmask-border-slicemask-border-sourcemask-border-widthma...
...m-styletransitiontransition-delaytransition-durationtransition-propertytransition-timing-functiontranslatetranslate()translate3d()translatex()translatey()translatez()turnuunicode-bidiunicode-range (@font-face)unset<url>url()user-zoom (@viewport)v:validvar()vertical-alignvh@viewportviewport-fit (@viewport)visibility:visitedvmaxvminvwwwhite-spacewidowswidthwidth (@viewport)will-changeword-breakword-
spacingword-wrapwriting-modexxzz-indexzoom (@viewport)others--* selectors the following are the various selectors, which allow styles to be conditional based on various features of elements within the dom.
align-content - CSS: Cascading Style Sheets
the
spacing between each pair of adjacent items is the same.
...the
spacing between each pair of adjacent items is the same.
...the
spacing between each pair of adjacent items, the start edge and the first item, and the end edge and the last item, are all exactly the same.
font-variant-numeric - CSS: Cascading Style Sheets
syntax 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: proportional-nums; /* <numeric-
spacing-values> */ font-variant-numeric: tabular-nums; /* <numeric-
spacing-values> */ font-variant-numeric: diagonal-fractions; /* <numeric-fraction-values> */ font-variant-numeric: stacked-fractions; /* <numeric-fraction-values> */ font-variant-numeric: oldstyle-nums stacked-fractions; /* global values */ font-variant-numeric: inherit; font-variant-numeric: initial; font-variant-numeric: unse...
... <numeric-
spacing-values> these values controls the sizing of figures used for numbers.
...it also applies to ::first-letter and ::first-line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax normal | [ <numeric-figure-values> | <numeric-
spacing-values> | <numeric-fraction-values> | ordinal | slashed-zero ]where <numeric-figure-values> = [ lining-nums | oldstyle-nums ]<numeric-
spacing-values> = [ proportional-nums | tabular-nums ]<numeric-fraction-values> = [ diagonal-fractions | stacked-fractions ] examples setting ordinal numeric forms html <p class="ordinal">1st, 2nd, 3rd, 4th, 5th</p> css /* this example uses the source sans pr...
font-variant - CSS: Cascading Style Sheets
<numeric-figure-values>, <numeric-
spacing-values>, <numeric-fraction-values>, ordinal, slashed-zero specifies the keywords related to the font-variant-numeric longhand property.
...ues> | <contextual-alt-values> | stylistic( <feature-value-name> ) | historical-forms | styleset( <feature-value-name># ) | character-variant( <feature-value-name># ) | swash( <feature-value-name> ) | ornaments( <feature-value-name> ) | annotation( <feature-value-name> ) | [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] | <numeric-figure-values> | <numeric-
spacing-values> | <numeric-fraction-values> | ordinal | slashed-zero | <east-asian-variant-values> | <east-asian-width-values> | ruby ]where <common-lig-values> = [ common-ligatures | no-common-ligatures ]<discretionary-lig-values> = [ discretionary-ligatures | no-discretionary-ligatures ]<historical-lig-values> = [ historical-ligatures | no-historical-ligatures ]<contextual-alt-values> = [ contextual | ...
...no-contextual ]<feature-value-name> = <custom-ident><numeric-figure-values> = [ lining-nums | oldstyle-nums ]<numeric-
spacing-values> = [ proportional-nums | tabular-nums ]<numeric-fraction-values> = [ diagonal-fractions | stacked-fractions ]<east-asian-variant-values> = [ jis78 | jis83 | jis90 | jis04 | simplified | traditional ]<east-asian-width-values> = [ full-width | proportional-width ] examples setting the small-caps font variant html <p class="normal">firefox rocks!</p> <p class="small">firefox rocks!</p> css p.normal { font-variant: normal; } p.small { font-variant: small-caps; } result specifications specification status comment css fonts module level 3the definition of 'font-variant' in that specification.
justify-content - CSS: Cascading Style Sheets
the
spacing between each pair of adjacent items is the same.
...the
spacing between each pair of adjacent items is the same.
...the
spacing between each pair of adjacent items, the main-start edge and the first item, and the main-end edge and the last item, are all exactly the same.
place-content - CSS: Cascading Style Sheets
the
spacing between each pair of adjacent items is the same.
...the
spacing between each pair of adjacent items is the same.
...the
spacing between each pair of adjacent items, the main-start edge and the first item, and the main-end edge and the last item, are all exactly the same.
The Box Model - Archive of obsolete content
margins, paddings and spacers margins and paddings are frequently used in both html and xul to define
spacing between elements and inside of elements.
...you'll also need to do some css work on the labels so that the inner
spacing in the text looks right.
CSS3 - Archive of obsolete content
the control of the contextual inter-glyph
spacing via the css font-kerning property.
... the css word-
spacing and letter-
spacing properties with range constraints to control flexibility in justification.
jspage - Archive of obsolete content
ll;};var e={html:"innerhtml","class":"classname","for":"htmlfor",defaultvalue:"defaultvalue",text:(browser.engine.trident||(browser.engine.webkit&&browser.engine.version<420))?"innertext":"textcontent"}; var b=["compact","nowrap","ismap","declare","noshade","checked","disabled","readonly","multiple","selected","noresize","defer"];var k=["value","type","defaultvalue","accesskey","cellpadding","cell
spacing","colspan","frameborder","maxlength","readonly","rowspan","tabindex","usemap"]; b=b.associate(b);hash.extend(e,b);hash.extend(e,k.associate(k.map(string.tolowercase)));var a={before:function(m,l){if(l.parentnode){l.parentnode.insertbefore(m,l); }},after:function(m,l){if(!l.parentnode){return;}var n=l.nextsibling;(n)?l.parentnode.insertbefore(m,n):l.parentnode.appendchild(m);},bottom:function(m,l)...
...(a,b[a]); }return this;},getstyles:function(){var a={};array.flatten(arguments).each(function(b){a[b]=this.getstyle(b);},this);return a;}});element.styles=new hash({left:"@px",top:"@px",bottom:"@px",right:"@px",width:"@px",height:"@px",maxwidth:"@px",maxheight:"@px",minwidth:"@px",minheight:"@px",backgroundcolor:"rgb(@, @, @)",backgroundposition:"@px @px",color:"rgb(@, @, @)",fontsize:"@px",letter
spacing:"@px",lineheight:"@px",clip:"rect(@px @px @px @px)",margin:"@px @px @px @px",padding:"@px @px @px @px",border:"@px @ rgb(@, @, @) @px @ rgb(@, @, @) @px @ rgb(@, @, @)",borderwidth:"@px @px @px @px",borderstyle:"@ @ @ @",bordercolor:"rgb(@, @, @) rgb(@, @, @) rgb(@, @, @) rgb(@, @, @)",zindex:"@",zoom:"@",fontweight:"@",textindent:"@px",opacity:"@"}); element.shortstyles={margin:{},padding:{},bor...
Creating a Skin - Archive of obsolete content
we'll make some simple color changes, modify the button styles, and modify the
spacing a bit.
...finally, some minor changes to the
spacing around the items, by setting margins: tabbox { margin: 4px; } toolbarbutton { margin-left: 3px; margin-right: 3px; } after those changes, the find files dialog now looks like the image.
Windows Media in Netscape - Archive of obsolete content
scripting the control name
spacing issues are the most important distinction between scripting the windows media control in ie and netscape 7.1.
...as a prefix to player scripting calls solves the name
spacing difference between netscape 7.1 and ie.
How CSS is structured - Learn web development
for example, these declarations are valid css: margin: 0 auto; padding-left: 10px; but these declarations are invalid: margin: 0auto; padding- left: 10px; do you see the
spacing errors?
... to find out how
spacing can break css, try playing with
spacing inside your test css.
Styling text - Learn web development
here we look at text styling fundamentals including setting font, boldness, italics, line and letter
spacing, drop shadows, and other text features.
... fundamental text and font styling in this article we go through all the basics of text/font styling in detail, including setting font weight, family and style, font shorthand, text alignment and other effects, and line and letter
spacing.
Mozilla MathML Status
mtable - column
spacing, row
spacing, frame
spacing implemented.
... mtable - side, minlabel
spacing not implemented.
HTMLTableElement - Web APIs
htmltableelement.cell
spacing is a domstring containing the width in pixels of the horizontal and vertical separation between cells.
... it reflects the obsolete cell
spacing attribute.
KeyframeEffect.getKeyframes() - Web APIs
this will be null if the keyframe is automatically spaced using keyframeeffect.
spacing.
... computedoffset the computed offset for this keyframe, calculated when the list of computed keyframes was produced according to keyframeeffect.
spacing.
Using IIR filters - Web APIs
ent.createelement('canvas'); canvascontainer.appendchild(canvasel); // set 2d context and set dimesions const canvasctx = canvasel.getcontext('2d'); const width = canvascontainer.offsetwidth; const height = canvascontainer.offsetheight; canvasel.width = width; canvasel.height = height; // set background fill canvasctx.fillstyle = 'white'; canvasctx.fillrect(0, 0, width, height); // set up some
spacing based on size const
spacing = width/16; const fontsize = math.floor(
spacing/1.5); // draw our axis canvasctx.linewidth = 2; canvasctx.strokestyle = 'grey'; canvasctx.beginpath(); canvasctx.moveto(
spacing,
spacing); canvasctx.lineto(
spacing, height-
spacing); canvasctx.lineto(width-
spacing, height-
spacing); canvasctx.stroke(); // axis is gain by frequency -> make labels canvasctx.font = fontsize...
...+'px sans-serif'; canvasctx.fillstyle = 'grey'; canvasctx.filltext('1',
spacing-fontsize,
spacing+fontsize); canvasctx.filltext('g',
spacing-fontsize, (height-
spacing+fontsize)/2); canvasctx.filltext('0',
spacing-fontsize, height-
spacing+fontsize); canvasctx.filltext('hz', width/2, height-
spacing+fontsize); canvasctx.filltext('20k', width-
spacing, height-
spacing+fontsize); // loop over our magnitude response data and plot our filter canvasctx.beginpath(); for(let i = 0; i < magresponseoutput.length; i++) { if (i === 0) { canvasctx.moveto(
spacing, height-(magresponseoutput[i]*100)-
spacing ); } else { canvasctx.lineto((width/totalarrayitems)*i, height-(magresponseoutput[i]*100)-
spacing ); } } canvasctx.stroke(); summary that's it for our iirfilter demo.
Perceivable - Accessibility
understanding non-text contrast 1.4.12 text
spacing (aa) added in 2.1 no loss of content or functionality occurs when the following styles are applied: line height (line
spacing) to at least 1.5 times the font size
spacing following paragraphs to at least 2 times the font size letter
spacing (tracking) to at least 0.12 times the font size word
spacing to at least 0.16 times the font size understanding...
... text
spacing 1.4.13 content on hover or focus (aa) added in 2.1 while additional content may appear and disappear in coordination with hover and keyboard focus, this success criterion specifies three conditions that must be met: dismissable (can be closed/removed) hoverable (the additional content does not disappear when the pointer is over it) persistent (the additional content does not disappear without user action) understanding content on hover or focus note: also see the wcag description for guideline 1.4: distinguishable: make it easier for users to see and hear content including separating foreground from background..
Typical use cases of Flexbox - CSS: Cascading Style Sheets
as you lay out your items you want to control the dimensions of the items in that one dimension, or control the
spacing between items.
...we either display the space outside of the items — therefore
spacing them out with white space between or around them — or we absorb the extra space inside the items and therefore need a method of allowing the items to grow and take up this space.
Animatable CSS properties - CSS: Cascading Style Sheets
font-size font-size-adjust font-stretch font-variation-settings font-weight gap grid-column-gap grid-gap grid-row-gap grid-template-columns grid-template-rows height inline-size inset inset-block inset-block-end inset-block-start inset-inline inset-inline-end inset-inline-start left letter-
spacing line-clamp line-height margin margin-block-end margin-block-start margin-bottom margin-inline-end margin-inline-start margin-left margin-right margin-top mask mask-border mask-position mask-size max-block-size max-height max-inline-size max-lines max-width min-block-size min-height m...
... scrollbar-color shape-image-threshold shape-margin shape-outside tab-size text-decoration text-decoration-color text-decoration-thickness text-emphasis text-emphasis-color text-indent text-shadow text-underline-offset top transform transform-origin translate vertical-align visibility width word-
spacing z-index zoom ...
text-justify - CSS: Cascading Style Sheets
inter-word the text is justified by adding space between words (effectively varying word-
spacing), which is most appropriate for languages that separate words using spaces, like english or korean.
... inter-character the text is justified by adding space between characters (effectively varying letter-
spacing), which is most appropriate for languages like japanese.
CSS: Cascading Style Sheets
css first steps css (cascading style sheets) is used to style and layout web pages — for example, to alter the font, color, size, and
spacing of your content, split it into multiple columns, or add animations and other decorative features.
...here we look at text styling fundamentals, including setting font, boldness, italics, line and letter
spacing, drop shadows, and other text features.
<br>: The Line Break element - HTML: Hypertext Markup Language
you can set a margin on <br> elements themselves to increase the
spacing between the lines of text in the block, but this is a bad practice — you should use the line-height property that was designed for that purpose.
... use <p> elements, and use css properties like margin to control their
spacing.
Responsive Navigation Patterns - Progressive web apps (PWAs)
pros: one button in header maximizes space for content on a small screen important items stay visiblein most screen sizes and you decide the item priorities legibility of navigation items is maintained with adequate
spacing, by automatically hiding items that don't fit cons: navigation items might be less discoverable because some items are hidden in the drop-down or toggle menu users may not notice the button contains a navigation menu in the smallest screen size one more step is needed to access the hidden navigation items pattern 2: expandable bottom menu similar to the first pattern, the t...
... pros: expandable menu is easy to discover important items are always visible and you decide the item priorities legibility of navigation items is maintained with adequate
spacing, by automatically hiding items that don't fit cons: one more step is needed to access the navigation items that are hidden navigation items might be less discoverable because some items are hidden less space for content in the smallest screen size pattern 3: left hidden menu the main navigation is always on the left except in the smallest screen size, where the navigation m...
k - SVG: Scalable Vector Graphics
the k attribute specifies the amount for decreasing the
spacing between the two glyphs in a kerning pair.
... two elements are using this attribute: <hkern> and <vkern> context notes value <number> default value none animatable no <number> this value indicates the amount for decreasing the
spacing between the two glyphs in the kerning pair.
<textPath> - SVG: Scalable Vector Graphics
value type:
spacing|
spacingandglyphs; default value:
spacing; animatable: yes method which method to render individual glyphs along the path.
... value type: left|right ; default value: left; animatable: yes
spacing how space between glyphs should be handled.
SVG 1.1 Support in Firefox - SVG: Scalable Vector Graphics
various presentation attributes don't work (alignment-baseline, baseline-shift, dominant-baseline, kerning, letter-
spacing, word-
spacing, writing-mode, glyph-orientation-horizontal, glyph-orientation-vertical) recently implemented presentation attributes: direction, unicode-bidi, font-variant, text-decoration svgtextelement recently imlemented bindings: selectsubstring recently implemented attributes: textlength, lengthadjust tspan impleme...
... various presentation attributes don't work (alignment-baseline, baseline-shift, dominant-baseline, kerning, letter-
spacing, word-
spacing, writing-mode, glyph-orientation-horizontal, glyph-orientation-vertical) recently implemented presentation attributes: direction, unicode-bidi, font-variant, text-decoration svgtspanelement recently implemented bindings: selectsubstring recently implemented attributes: textlength, lengthadjust tref this feature, present in early draft of the spec, has been removed from it and is therefor not implemented (bug 273171).
Tutorials
css first steps css (cascading style sheets) is used to style and lay out web pages — for example, to alter the font, color, size, and
spacing of your content, split it into multiple columns, or add animations and other decorative features.
... styling text here we look at text styling fundamentals, including setting font, boldness, and italics, line and letter
spacing, and drop shadows and other text features.
XML data - Archive of obsolete content
e document's stylesheet, you specify how info elements are to be displayed: info { display: block; margin: 1em 0; } the most common values for the display property are: block displayed like html's div (for headings, paragraphs) inline displayed like html's span (for emphasis within text) add your own style rules that specify the font,
spacing and other details in the same way as for html.
Images, Tables, and Mysterious Gaps - Archive of obsolete content
in the simplest case, we might add a style like this: td img {display: block;} consider this rule when applied to the following markup: <table cell
spacing="0" cellpadding="0" border="0" width="500"> <tr><td><img src="nav1.gif"><img src="nav2.gif"><img src="nav3.gif"><img src="nav4.gif"><img src="nav5.gif"></td></tr> <tr><td style="background: red;"> <img src="smallred.gif" height="1" width="1"></td></tr> <tr><td> <p style="margin: 0.5em;">this is text in another cell of the table.
Table Layout Regression Tests - Archive of obsolete content
a typical beginning of a dump (*.rgd file) looks like: <frame va="15022440" type="viewport(-1)" state="270340" parent="0"> <view va="47171904"> </view> <stylecontext va="15022232"> <font serif 240 240 0 /> <color data="-16777216"/> <background data="0 2 3 -1 0 0 "/> <
spacing data="left: null top: null right: null bottom: null left: null top: null right: null bottom: null left: 1[0x1]enum top: 1[0x1]enum right: 1[0x1]enum bottom: 1[0x1]enum left: null top: null right: null bottom: null left: null top: null right: null bottom: null 1[0x1]enum 0" /> <list data="100 100 " /> <position data="left: auto top: auto right: auto bottom: auto auto 0[0x0]tw null ...
CSS - Archive of obsolete content
ss property is a microsoft extension that specifies the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.-ms-scrollbar-track-colorthe -ms-scrollbar-track-color css property is a microsoft extension that specifies the color of the track element of a scrollbar.-ms-text-autospacethe -ms-text-autospace css property is a microsoft extension that specifies the auto
spacing and narrow space width adjustment of text.-ms-touch-selectthe -ms-touch-select css property is a microsoft extension that toggles the gripper visual elements that enable touch text selection.-ms-wrap-flowthe -ms-wrap-flow css property is a microsoft extension that specifies how exclusions impact inline content within block-level elements.-ms-wrap-marginthe -ms-wrap-margin css property is a micros...
CSS and JavaScript accessibility best practices - Learn web development
"standard" text content structure headings, paragraphs, lists — the core text content of your page: <h1>heading</h1> <p>paragraph</p> <ul> <li>my list</li> <li>has two items.</li> </ul> some typical css might look like this: h1 { font-size: 5rem; } p, li { line-height: 1.5; font-size: 1.6rem; } you should: select sensible font sizes, line heights, letter
spacing, etc.
Introduction to CSS layout - Learn web development
floats example body { width: 90%; max-width: 900px; margin: 0 auto; } p { line-height: 2; word-
spacing: 0.1rem; } .box { background-color: rgb(207,232,220); border: 2px solid rgb(79,185,227); padding: 10px; border-radius: 5px; } <h1>simple float example</h1> <div class="box">float</div> <p> lorem ipsum dolor sit amet, consectetur adipiscing elit.
CSS first steps - Learn web development
css (cascading style sheets) is used to style and lay out web pages — for example, to alter the font, color, size, and
spacing of your content, split it into multiple columns, or add animations and other decorative features.
Web fonts - Learn web development
because different fonts are created at different sizes, you may have to adjust the size,
spacing, etc., to sort out the look and feel.
HTML table advanced features and accessibility - Learn web development
your finished table should look something like the following: hidden example <!doctype html> <html> <head> <meta charset="utf-8"> <title>my spending record</title> <style> html { font-family: sans-serif; } table { border-collapse: collapse; border: 4px solid rgb(200,200,200); letter-
spacing: 1px; font-size: 0.8rem; } td, th { border: 2px solid rgb(190,190,190); padding: 10px 20px; } th { background-color: rgb(235,235,235); } td { text-align: center; } tr:nth-child(even) td { background-color: rgb(250,250,250); } tr:nth-child(odd) td { ...
What is JavaScript? - Learn web development
we can mark it up using html to give it structure and purpose: <p>player 1: chris</p> then we can add some css into the mix to get it looking nice: p { font-family: 'helvetica neue', helvetica, sans-serif; letter-
spacing: 1px; text-transform: uppercase; text-align: center; border: 2px solid rgba(0,0,200,0.6); background: rgba(0,0,200,0.3); color: rgba(0,0,200,0.6); box-shadow: 1px 1px 2px rgba(0,0,200,0.4); border-radius: 10px; padding: 3px 10px; display: inline-block; cursor: pointer; } and finally, we can add some javascript to implement dynamic behaviour: const para = document.querysele...
Accessibility information for UI designers and developers
text
spacing users should be able to make the following changes to their text
spacing: set line height (leading) to at least 1.5 times the font size set
spacing following paragraphs to at least 2 times the font size set letter
spacing (tracking) to at least 0.12 times the font size set word
spacing to at least 0.16 times the font size this does not mean that your page needs to offer controls to make ...
Mozilla’s UAAG evaluation report
css: text-indent: yes css: text-align: yes css: word-
spacing: yes css: letter-
spacing: yes css: font-stretch: ni css: margin: yes css: float: yes css: position: yes css: !important: yes css: system fonts: yes css: system colors: yes css: list types: yes css: outline: no css: :before, :after, content: p(oor) 8.2 conform to specifications.
The Firefox codebase: CSS Guidelines
formatting
spacing & indentation 2 spaces indentation is preferred add a space after each comma, except within color functions: linear-gradient(to bottom, black 1px, rgba(255,255,255,0.2) 1px) always add a space before !important.
Mozilla Quirks Mode Behavior
in quirks mode, percentage values are supported on the cell
spacing attribute, but treated as pixels (bug 106336).
console - Web APIs
border and its longhand equivalents border-radius box-decoration-break box-shadow clear and float color cursor display font and its longhand equivalents line-height margin outline and its longhand equivalents padding text-* properties such as text-transform white-space word-
spacing and word-break writing-mode note: the console message behaves like an inline element by default.
How whitespace is handled by HTML, CSS, and in the DOM - Web APIs
; width: 2em; height: 2em; background: #f06; border: 1px solid; } <ul class="people-list"> <li></li> <li></li> <li></li> <li></li> <li></li> </ul> you probably don't want the gaps in between the blocks — depending on the use case (is this a list of avatars, or horizontal nav buttons?), you probably want the element sides flush with each other, and to be able to control any
spacing yourself.
Element: auxclick event - Web APIs
html <button><h1>click me!</h1></button> css html { height: 100%; overflow: hidden; } body { height: inherit; display: flex; justify-content: center; align-items: center; margin: 0; } button { border: 0; background-color: white; font-size: 8vw; display: block; width: 100%; height: 100%; } h1 { letter-
spacing: 0.5rem; } result note: if you are using a three-button mouse, you'll notice that the onauxclick handler is run when any of the non-left mouse buttons are clicked (usually including any "special" buttons on gaming mice).
HTMLOListElement - Web APIs
ed: 1, 2, 3, 4, 5, … 'a' meaning that the lowercase latin alphabet is used: a, b, c, d, e, … 'a' meaning that the uppercase latin alphabet is used: a, b, c, d, e, … 'i' meaning that the lowercase latin numerals are used: i, ii, iii, iv, v, … 'i' meaning that the uppercase latin numerals are used: i, ii, iii, iv, v, … htmlolistelement.compact is a boolean indicating that
spacing between list items should be reduced.
::first-letter (:first-letter) - CSS: Cascading Style Sheets
all margin properties: margin, margin-top, margin-right, margin-bottom, margin-left all padding properties: padding, padding-top, padding-right, padding-bottom, padding-left all border properties: the shorthands border, border-style, border-color, border-width, border-radius, border-image, and the longhands properties the color property the text-decoration, text-shadow, text-transform, letter-
spacing, word-
spacing (when appropriate), line-height, text-decoration-color, text-decoration-line, text-decoration-style, box-shadow, float, vertical-align (only if float is none) css properties syntax /* css3 syntax */ ::first-letter /* css2 syntax */ :first-letter examples simple drop cap in this example we will use the ::first-letter pseudo-element to create a simple drop cap effect on the fir...
::first-line (:first-line) - CSS: Cascading Style Sheets
font-variant-ligatures, font-synthesis, font-feature-settings, font-language-override, font-weight, font-size, font-size-adjust, font-stretch, and font-family all background-related properties: background-color, background-clip, background-image, background-origin, background-position, background-repeat, background-size, background-attachment, and background-blend-mode the color property word-
spacing, letter-
spacing, text-decoration, text-transform, and line-height text-shadow, text-decoration, text-decoration-color, text-decoration-line, text-decoration-style, and vertical-align.
CSS Multi-column Layout - CSS: Cascading Style Sheets
column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width columns related css fragmentation properties break-after break-before break-inside orphans widows guides basic concepts of multicol an overview of the multiple-column layout specification styling columns how to use column rules and manage the
spacing between columns.
Subgrid - CSS: Cascading Style Sheets
the gap properties and subgrid if you have a gap, column-gap, or row-gap specified on the parent, this will be passed into the subgrid, so it will have the same
spacing between tracks as the parent.
CSS Properties Reference - CSS: Cascading Style Sheets
clear clear clip clip color color cursor cursor display display filter filter float cssfloat font font font-family fontfamily font-size fontsize font-variant fontvariant font-weight fontweight height height left left letter-
spacing letter
spacing line-height lineheight list-style liststyle list-style-image liststyleimage list-style-position liststyleposition list-style-type liststyletype margin margin margin-bottom marginbottom margin-left marginleft margin-right marginright margin-top margintop ...
CSS Table - CSS: Cascading Style Sheets
reference properties border-collapse border-
spacing caption-side empty-cells table-layout vertical-align specifications specification status comment css level 2 (revision 1) recommendation initial definition ...
CSS Text - CSS: Cascading Style Sheets
reference properties hanging-punctuation hyphens letter-
spacing line-break overflow-wrap tab-size text-align text-align-last text-indent text-justify text-size-adjust text-transform white-space word-break word-
spacing specifications specification status comment css logical properties and values level 1 editor's draft updates some properties to be independent of the directionality of the text.
CSS Text Decoration - CSS: Cascading Style Sheets
reference properties letter-
spacing text-align text-decoration text-decoration-color text-decoration-line text-decoration-offset text-decoration-skip-ink text-decoration-style text-decoration-thickness text-emphasis text-emphasis-color text-emphasis-position text-emphasis-style text-indent text-rendering text-shadow text-transform white-space word-
spacing guides none.
WebKit CSS extensions - CSS: Cascading Style Sheets
ound-composite -webkit-border-after** -webkit-border-after-color** -webkit-border-after-style** -webkit-border-after-width** -webkit-border-before** -webkit-border-before-color** -webkit-border-before-style** -webkit-border-before-width** -webkit-border-end** -webkit-border-end-color** -webkit-border-end-style** -webkit-border-end-width** -webkit-border-fit -webkit-border-horizontal-
spacing -webkit-border-start** -webkit-border-start-color** -webkit-border-start-style** -webkit-border-start-width** -webkit-border-vertical-
spacing -webkit-box-align** -webkit-box-direction** -webkit-box-flex-group** -webkit-box-flex** -webkit-box-lines** -webkit-box-ordinal-group** -webkit-box-orient** -webkit-box-pack** -webkit-box-reflect** c -webkit-column-axis -webkit-column-br...
break-after - CSS: Cascading Style Sheets
duis suscipit faucibus dui sed ultricies.</p> </article> css html { font-family: helvetica, arial, sans-serif; } h1 { font-size: 3rem; letter-
spacing: 2px; column-span: all; } h2 { font-size: 1.2rem; color: red; letter-
spacing: 1px; } p { line-height: 1.5; break-after: column; } article { column-width: 200px; gap: 20px; } result specifications specification status comment css fragmentation module level 3the definition of 'break-after' in that specification.
break-before - CSS: Cascading Style Sheets
duis suscipit faucibus dui sed ultricies.</p> </article> css html { font-family: helvetica, arial, sans-serif; } h1 { font-size: 3rem; letter-
spacing: 2px; column-span: all; } h2 { font-size: 1.2rem; color: red; letter-
spacing: 1px; break-before: column; } p { line-height: 1.5; } article { column-width: 200px; gap: 20px; } result specifications specification status comment css fragmentation module level 3the definition of 'break-before' in that specification.
break-inside - CSS: Cascading Style Sheets
duis suscipit faucibus dui sed ultricies.</p> </article> css html { font-family: helvetica, arial, sans-serif; } body { width: 80%; margin: 0 auto; } h1 { font-size: 3rem; letter-
spacing: 2px; column-span: all; } h1 + p { margin-top: 0; } p { line-height: 1.5; break-after: column; } figure { break-inside: avoid; } img { max-width: 70%; display: block; margin: 0 auto; } figcaption { font-style: italic; font-size: 0.8rem; width: 70%; } article { column-width: 200px; gap: 20px; } result specifications specification status comment ...
clamp() - CSS: Cascading Style Sheets
</p> css html { font-family: sans-serif; } body { margin: 0 auto; width: min(1000px, calc(70% + 100px)); } h1 { letter-
spacing: 2px; font-size: clamp(1.8rem, 2.5vw, 2.8rem); } p { line-height: 1.5; font-size: max(1.2rem, 1.2vw); } specifications specification status comment css values and units module level 4the definition of 'clamp()' in that specification.
display - CSS: Cascading Style Sheets
id="display"> <option selected>block</option> <option>inline</option> <option>inline-block</option> <option>none</option> <option>flex</option> <option>inline-flex</option> <option>grid</option> <option>inline-grid</option> <option>table</option> <option>list-item</option> </select> </div> css html { font-family: helvetica, arial, sans-serif; letter-
spacing: 1px; padding-top: 10px; } article { background-color: red; } article span { background-color: black; color: white; margin: 1px; } article, span { padding: 10px; border-radius: 7px; } article, div { margin: 20px; } javascript const articles = document.queryselectorall('.container'); const select = document.queryselector('select'); function updatedisplay() { articles.forea...
justify-items - CSS: Cascading Style Sheets
html <article class="container" tabindex="0"> <span>first child</span> <span>second child</span> <span>third child</span> <span>fourth child</span> </article> css html { font-family: helvetica, arial, sans-serif; letter-
spacing: 1px; } article { background-color: red; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 40px; grid-gap: 10px; width: 300px; justify-items: stretch; } article:hover, article:focus { justify-items: center; } article span { background-color: black; color: white; margin: 1px; text-align: center; } article, span { padding: 10px; border-radius: 7px; } ar...
justify-self - CSS: Cascading Style Sheets
html <article class="container"> <span>first child</span> <span>second child</span> <span>third child</span> <span>fourth child</span> </article> css html { font-family: helvetica, arial, sans-serif; letter-
spacing: 1px; } article { background-color: red; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 40px; grid-gap: 10px; width: 300px; justify-items: stretch; } span:nth-child(2) { justify-self: start; } span:nth-child(3) { justify-self: center; } span:nth-child(4) { justify-self: end; } article span { background-color: black; color: white; margin: 1px; text-alig...
<length-percentage> - CSS: Cascading Style Sheets
html <p>you can use percentages and lengths in so many places.</p> css p { /* length-percentage examples */ width: 75%; height: 200px; margin: 3rem; padding: 1%; border-radius: 10px 10%; font-size: 250%; line-height: 1.5em; /* length examples */ text-shadow: 1px 1px 1px red; border: 5px solid red; letter-
spacing: 3px; /* percentage example */ text-size-adjust: 20%; } result use in calc() where a <length-percentage> is specified as an allowable type, this means that the percentage resolves to a length and therefore can be used in a calc() expression.
margin-left - CSS: Cascading Style Sheets
block layout mode block, inline, inline-block, block, table, inline-table, list-item, table-caption left or right static or relative 0 block layout mode (floating element) any table-*, except table-caption any any 0 internal table-* elements don't have margins, use border-
spacing instead any, except flex, inline-flex, or table-* any fixed or absolute 0, except if both margin-left and margin-right are set to auto.
margin-right - CSS: Cascading Style Sheets
block layout mode block, inline, inline-block, block, table, inline-table, list-item, table-caption left or right static or relative 0 block layout mode (floating element) any table-*, except table-caption any any 0 internal table-* elements don't have margins, use border-
spacing instead any, except flex, inline-flex, or table-* any fixed or absolute 0, except if both margin-left and margin-right are set to auto.
margin-trim - CSS: Cascading Style Sheets
it also applies to ::first-letter and ::first-line.inheritednocomputed valueas specifiedanimation typediscrete formal syntax none | in-flow | all examples basic usage once support is implemented for this property, it will probably work like so: when you've got a container with some inline children and you want to put a margin between each child but not have it interfere with the
spacing at the end of the row, you might do something like this: article { background-color: red; margin: 20px; padding: 20px; display: inline-block; } article > span { background-color: black; color: white; text-align: center; padding: 10px; margin-right: 20px; } the problem here is that you'd end up with 20px too much
spacing at the right of the row, so you'd maybe do this to fix i...
place-self - CSS: Cascading Style Sheets
html <article class="container"> <span>first</span> <span>second</span> <span>third</span> <span>fourth</span> </article> css 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; width: 300px; } span:nth-child(2) { place-self: start center; } span:nth-child(3) { place-self: center start; } span:nth-child(4) { place-self: end; } article span { background-color: black; color: white; margin: 1px; text-align: center; } a...
text-align - CSS: Cascading Style Sheets
accessibility concerns the inconsistent
spacing between words created by justified text can be problematic for people with cognitive concerns such as dyslexia.
word-break - CSS: Cascading Style Sheets
ng and honorificabilitudinitatibus califragilisticexpialidocious taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu グレートブリテンおよび北アイルランド連合王国という言葉は本当に長い言葉</p> css .narrow { padding: 10px; border: 1px solid; width: 500px; margin: 0 auto; font-size: 20px; line-height: 1.5; letter-
spacing: 1px; } .normal { word-break: normal; } .breakall { word-break: break-all; } .keepall { word-break: keep-all; } .breakword { word-break: break-word; } specifications specification status comment css text module level 3the definition of 'word-break' in that specification.
Applying color to HTML elements using CSS - HTML: Hypertext Markup Language
here are some sample colors in hsl notation: table { border: 1px solid black; font: 16px "open sans", helvetica, arial, sans-serif; border-
spacing: 0; border-collapse: collapse; } th, td { border: 1px solid black; padding:4px 6px; text-align: left; } th { background-color: hsl(0, 0%, 75%); } <table> <thead> <tr> <th scope="col">color in hsl notation</th> <th scope="col">example</th> </tr> </thead> <tbody> <tr> <td><code>hsl(90deg, 100%, 50%)</code></td> <td style="background-color: hsl(90deg, 100%, 50%);">&...
<caption>: The Table Caption element - HTML: Hypertext Markup Language
<table> <caption>example caption</caption> <tr> <th>login</th> <th>email</th> </tr> <tr> <td>user1</td> <td>user1@sample.com</td> </tr> <tr> <td>user2</td> <td>user2@sample.com</td> </tr> </table> caption { caption-side: top; align: right; } table { border-collapse: collapse; border-
spacing: 0px; } table, th, td { border: 1px solid black; } table {background: red;} do not alter caption.
<summary>: The Disclosure Summary element - HTML: Hypertext Markup Language
on hand: $500.00</li> <li>current invoice: $75.30</li> <li>due date: 5/6/19</li> </ol> </details> summaries as headings you can use heading elements in <summary>, like this: <details open> <summary><h4>overview</h4></summary> <ol> <li>cash on hand: $500.00</li> <li>current invoice: $75.30</li> <li>due date: 5/6/19</li> </ol> </details> this currently has some
spacing issues that could be addressed using css.
<tr>: The Table Row element - HTML: Hypertext Markup Language
the table and base styles table { border: 1px solid black; font: 16px "open sans", helvetica, arial, sans-serif; border-
spacing: 0; border-collapse: collapse; } here we've added the border-
spacing and border-collapse properties to eliminate
spacing between cells and collapse borders that touch one another to be a single border instead of winding up with double borders.
JSON.stringify() - JavaScript
json.stringify(foo, ['week', 'month']); // '{"week":45,"month":7}', only keep "week" and "month" properties the space argument the space argument may be used to control
spacing in the final string.
Values - MathML
lengths several mathml presentation elements have attributes that accept length values used for size or
spacing.
<mo> - MathML
form specifies the role of the operator in an enclosed expression, which affects
spacing and other default properties.
<mrow> - MathML
proper grouping helps the rendering of the expression in several ways: it can improve the display by possibly affecting
spacing.
MathML documentation index - MathML
7 values guide, mathml, mathml reference several mathml presentation elements have attributes that accept length values used for size or
spacing.
font-variant - SVG: Scalable Vector Graphics
ntextual-alt-values> || stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-
spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero || <east-asian-variant-values> || <east-asian-width-values> || ruby ] default value normal animatable yes for a description of the values, please refer to the css font-variant property.
xml:space - SVG: Scalable Vector Graphics
html, body, svg { height: 100%; } <svg viewbox="0 0 140 50" xmlns="http://www.w3.org/2000/svg"> <text y="20" xml:space="default">default
spacing</text> <text y="40" xml:space="preserve">preserved
spacing</text> </svg> usage notes value default | preserve default value default animatable no default with this value set, whitespace characters will be processed in this order: all newline characters are removed.
Texts - SVG: Scalable Vector Graphics
each of the following properties can be set as an attribute or via a css declaration: font-family, font-style, font-weight, font-variant, font-stretch, font-size, font-size-adjust, kerning, letter-
spacing, word-
spacing and text-decoration.