Search results
Results From The WOW.Com Content Network
border-collapse:collapse This style will eliminate 3-d style borders created by the border attribute and collapse them in 1px wide borders. This property will override cellspacing ! To define similar whitespace, use the border-spacing property (although it is not possible to have both border-spacing and border-collapse for the same 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:
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:
Expected outcome: Adjacent cells should have no borders when their borders are specifically styled with border: none; or border-collapse: collapse;. Actual outcome : The borders persist when using the wikitable class unless the cells are aligned along the same row or column.
Adding the mw-collapsible class to a table automatically positions the toggle, and selects which parts to collapse. A common use is to make a collapsible layout table, which always displays an introduction or summary, but hides the rest of the content from immediate view.
Use in conjunction with {{Collapse bottom}}. Will collapse text in between the two templates. Template parameters [Edit template data] Parameter Description Type Status Title 1 title heading header reason result Main title of collapsed box Default Extended content Example This is the title text Line optional Custom warning line 2 Will override the standard warning line, and make the 'warning ...
And a float element will only move text out of the way; it doesn't deal with "graphic" elements like h-rules or borders of text boxes (you can see the problem with the dotted "source" box under the section header — the float doesn't reduce the width of that border or of the h2 bottom-border.)
In general, it is recommended that tables simply use Wikipedia's default formatting. In some circumstances, however, you may need to apply some more complicated formatting using CSS.