By default, the page borders print this far from the top, bottom, left, and right of the page.

The border-left shorthand CSS property sets all the properties of an element's left border.

Try it

As with all shorthand properties, border-left always sets the values of all of the properties that it can set, even if they are not specified. It sets those that are not specified to their default values. Consider the following code:

border-left-style: dotted; border-left: thick green;

It is actually the same as this one:

border-left-style: dotted; border-left: none thick green;

The value of border-left-style given before border-left is ignored. Since the default value of border-left-style is none, not specifying the border-style part results in no border.

Constituent properties

This property is a shorthand for the following CSS properties:

  • border-left-color
  • border-left-style
  • border-left-width

Syntax

border-left: 1px; border-left: 2px dotted; border-left: medium dashed blue; /* Global values */ border-left: inherit; border-left: initial; border-left: revert; border-left: revert-layer; border-left: unset;

The three values of the shorthand property can be specified in any order, and one or two of them may be omitted.

Values

Formal definition

Initial valueApplies toInheritedComputed valueAnimation type
as each of the properties of the shorthand:
  • border-left-width: medium
  • border-left-style: none
  • border-left-color: currentcolor
all elements. It also applies to ::first-letter.
no
as each of the properties of the shorthand:
  • border-left-width: the absolute length or 0 if border-left-style is none or hidden
  • border-left-style: as specified
  • border-left-color: computed color
as each of the properties of the shorthand:
  • border-left-color: a color
  • border-left-style: discrete
  • border-left-width: a length

Formal syntax

border-left =
<line-width> ||
<line-style> ||
<color>

<line-width> =
<length [0,∞]> |
thin |
medium |
thick

<line-style> =
none |
hidden |
dotted |
dashed |
solid |
double |
groove |
ridge |
inset |
outset

Examples

Applying a left border

HTML

<div>This box has a border on the left side.</div>

CSS

div { border-left: 4px dashed blue; background-color: gold; height: 100px; width: 100px; font-weight: bold; text-align: center; }

Results

Specifications

Specification
CSS Backgrounds and Borders Module Level 3
# border-shorthands

Browser compatibility

BCD tables only load in the browser

See also

Required Headers

  • Headers for all required pages must be consistently formatted; they should be the same size, font, and style, and located in the same position on each page. They must start at the very top of the page, on the first line below the 1-inch margin.

Chapter Headers

  • Chapter headers are the only headers that can start lower on the page and be stylized in any manner, as long as they are consistent on each chapter title page.

Section Headers

  • It is common for a chapter to have multiple levels of section headers. These can be formatted differently than required or chapter headers, as long as there is a consistent style from chapter to chapter.

Running Headers

  • Your document should not have a running header that appears at the top of each page.

Page Margins

Page margins should be consistent throughout the text.

Required Margins:

  • The top, bottom, and right margins are required to be 1 inch, but the left margin can either be 1 inch or 1.25 inches.
  • All body text, tables, figures, appendices content, and any copies of published chapters must fit within the required 1-inch margins on all sides. Tables or images may have to be re-sized to fit within the margin. See the Tables and Figures page for more info.

Throughout your ETD, all text must start at the very top of the page. It is common for students to have trouble maintaining this consistency — often thanks to difficulty with Microsoft Word. The below instructions should help to specify the relevant settings in Microsoft Word and offer some helpful tips to maintaining consistency throughout your document.

  1. Check that your top margin is set to 1 inch.
  2. Check the page margin layout settings.  On the “Layout” tab, in the “Margins” menu (found on the far left of the navigation bar), click “Custom Margins.” A “Page Setup” menu will appear. Under the “Layout” tab of this pop-up menu, make sure “Vertical alignment” is set to “Top.”
  3. Make sure you don’t have extra space in the header. Double-click on the header and hit the down arrow. If there are extra lines in the header, below the page number, delete them.
  4. Make sure there isn’t extra space between your text and the top of the page. All text must start on the first line at the very top of the page, just after the 1 inch margin line.

To more easily identify spacing inconsistencies as you scan your document, enable the “Gridlines” view:

If you are having trouble moving your text to the top of the page, check the “Header from Top” and “Footer from Bottom” settings.

  1. Double-click within the header or footer to edit them.
  2. Click the “Design” tab.
  3. See the below screenshot:

Spacing

Spacing must be consistent throughout the document. This includes:

  • The amount of space between headers and body text.
  • Line spacing of your body text (starting on your abstract page).
  • Regardless of your text spacing, you should at least have a space between each entry on your table of contents, list of tables, list of figures, list of abbreviations, and reference pages.
  • There should be a minimum amount of space separating body text from tables and figures.

What are the default top bottom left and right margins in Word?

In Word, each page automatically has a one-inch margin. You can customize or choose predefined margin settings, set margins for facing pages, allow extra margin space to allow for document binding, and change how margins are measured.

What is the default settings for top and bottom margins?

Both the MLA and APA style guides require 1-inch margins on the top, bottom and both sides of the page. In most cases, when you open Microsoft Word, the margins will already be set to 1-inch. To be sure you have the margins set to 1-inch: Click on the Page Layout tab.

What is the default line spacing?

The default line spacing in Word is 1.15. By default, paragraphs are followed by a blank line and headings have a space above them.

Where are page borders in Word?

Go to Design > Page Borders. In the Borders and Shading box, design your border: Under Setting on the left, choose the border style you want.

Toplist

Neuester Beitrag

Stichworte