Template:Border/doc

Usage
This specialized template creates a box to display text or combined text/images in; it creates a border around whatever you would like. Each property has a default so you do not need to define the setting if what you want is already the default.

You can embed other templates within this one (e.g. rule or sc or even another border). However, embedded templates that contain parameters, and things like tables, may cause this template to not work properly. In that case, use border/s and border/e instead.

Note: If you place images inside this box, be sure to define it so that the box is larger than the image.

Basic template
This template is without the optional parameters.

Full template
This template includes all optional parameters. Note that you may need to delete unused parameters for the template to work correctly.





Parameters

 * whatever goes in the box

(2): maximum width of the content area in pixels or percentage (default: null/full width)
 * Note: You probably don't want 100% as it doesn't mean 100% of that "section" of the page. It means 100% of the screen size. So, if you choose 100%, it will end up going off the screen as the screen size will be added to the size of the navigation bar on the left. If you want it to just fill the content area of the screen, leave the option empty.
 * Note 2: Maximum width is used so that the box is responsive to screen sizes smaller that won't allow the box to fit without scrolling right. ie. mobile browsers
 * Note 3: If your box contains text, do not use px as a unit, as this will scale badly if text is a different size (mobile, export, and visually-impaired users with large system fonts). Use a text-relative size like em instead. See H:PXWIDTH for details.

(3): border style (default: solid)
 * Options: solid, dotted, dashed, double, groove, ridge, inset, outset
 * Note: If you choose a border such as double but a thickness of 1px, it will still appear to be a single border because it is only 1px thick. Therefore, for the non-solid borders it is recommended to choose a value greater than 1px.

(4): border thickness in pixels (default: 1px)

(5): border color (default: #000000, black)

(6): background color (default: #FFFFFF, white)
 * Note: You can define the color in plain English (e.g. white) or hexadecimal (e.g. #FFFFFF). See Web Colors for more information.

(7): alignment within the box (default: left)
 * Options: left, center, right, justify

(8): alignment of the box (default: center)
 * Options: left, center, right

(9): padding, the space between the border and the content inside it, in pixels (default: 5px)


 * CSS, which will override any styles defined before it

Default
Displays as:

Example 1
Displays as:

Example 2
Displays as:

Example 3
Displays as:

Example 4
Displays as:

Example 5


CARTY & DAVIS, No. 171, MARKET STREET.

1834.

Displays as:



CARTY & DAVIS, No. 171, MARKET STREET.

1834.

Standard
There are two ways to make a double border. One is to use the standard "double border" feature of CSS. It is simple and only requires that parameter 3 be equal to double. Here is what this will look like:

Displays as:

Displays as:

Creative / Controllable
However, for more control, you may wish to use a border within another border:

Displays as: