CSC 3750 Lecture Notes - Lecture 22: Html Element
Document Summary
Text & web page elements in the container. Area between the content and the border. Determines the empty space between the element and adjacent elements. Configures empty space between the element and adjacent elements. Syntax examples h1 { margin: 0; } h1 { margin: 20px 10px; } h1 { margin: 10px 30px 20px; } h1 { margin: 20px 30px 0 30px; } Configures empty space between the content of the html element (such as text) and the border. Syntax examples h1 { padding: 0; } h1 { padding : 20px 10px; } h1 { padding : 10px 30px 20px; } h1 { padding : 20px 30px 0 30px; } Browser display of elements in the order they are coded in the web page document. Changes the location of an element in relation to where it would otherwise appear. Precisely specifies the location of an element in the browser window.