Search results
Results from the WOW.Com Content Network
Note: Wikipedia:HTML 5#Table attributes. CSS to replace obsolete attributes for borders, padding, spacing, etc. Add a border around a table using the CSS property border: thickness style color;, for example border:3px dashed red. This example uses a solid (non-dashed) gray border that is one pixel wide:
You can add a table using HTML rather than wiki markup, as described at HTML element#Tables. However, HTML tables are discouraged because wikitables are easier to customize and maintain, as described at manual of style on tables. Also, note that the <thead>, <tbody>, <tfoot>, <colgroup>, and <col> elements are not supported in wikitext.
For years in HTML, a table has always forced an implicit line-wrap (or line-break). So, to keep a table within a line, the workaround is to put the whole line into a table, then embed a table within a table, using the outer table to force the whole line to stay together. Consider the following examples: Wikicode (showing table forces line-break)
An HTML attribute name can be made variable. ... /* change border background of selected tabs ... Tillwe/monobook.css (in the first part). Also displays table ...
Also, if the table has cell spacing (and thus border-collapse=separate), meaning that cells have separate borders with a gap in between, that gap will still be visible. A cruder way to align columns of numbers is to use a figure space   or   , which is intended to be the width of a numeral, though is font-dependent in practice:
To use a colour in a template or table you can use the hex triplet (e.g. bronze is #CD7F32) or HTML color names (e.g. red). Editors are encouraged to make use of Brewer palettes for charts, maps, and other entities, using this tool .
a semicolon-separated list of additional CSS rules to be applied to the table cell. Default (template dependent) String: optional: background color: color: a valid CSS color value or name to override the standard cell background, only available with some templates. Default (template dependent) Line: optional
Page layouts (using multiple columns, positioning elements, adding borders, etc.) should be done via CSS, not tables, whenever possible. Images and other embedded media should be positioned using standard image syntax. There are several templates available that will create preformatted multi-column layouts: see Help:Columns.