Thursday, August 31, 2017

navbar

Nav item within box Box within nav item Box within nav item but with an offset Navbar Brand Navbar

Wednesday, August 30, 2017

negative margin

Negative margin example
Negative margin example

Monday, August 28, 2017

abbr

ABC

Sunday, August 27, 2017

Highlight

Using mark element
ImportantUsing style
Important
Using style on mark element
Important

h1-h6 and small text within columns

H1 small

H2 small

H3 small

H4 small

H5 small
H6 small

h1-h6 content within columns

H1

H2

H3

H4

H5
H6

columns with content

Column 1

This is a paragraph in col1...

This is another paragraph in col1...

Column 2

This is a paragraph in col2...

This is another paragraph in col2...

Column 3

This is a paragraph in col3...

This is another paragraph in col3...


Saturday, August 26, 2017

row within a container

Row example

@media min-width

Without @media min-width
With @media min-width

Grey box within a container

Grey box starts
Grey box with margin around

Paragraph within grey box

Paragraph outside box

Grey box starts

Paragraph with box

After grey box

margin-bottom

Box starts
Box ends Box containing inner box starts
Inner box
Box ends Box containing inner box starts
Inner box
Box ends

Rounded grey box with text

Some text
Some header
Grey box starts
Some header
After grey box

Grey box

Grey box starts
After grey box

Friday, August 25, 2017

Default html and body css attributes


<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
html {
font-size: 10px;
font-family: sans-serif;
}

body {
margin: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.42857143;
color: #333;
background-color: #fff;
}

* {
border: 1px solid red;
}
</style>
</head>
<body>
<div>
Text in div
</div>
<p>
Text in paragraph
</p>
</body>
</html>



Wednesday, August 23, 2017

display flex

Left float items
item 1
item 2
item 3
Flex items
item 1
item 2
item 3

display

Before inline starts

This is a headline

One more headline

This is span as block

line-height

Some text
Line height less than 100...
Some text
Line height greater than 100

float

Some text
Float is set to left
Some text in div
Float is set to left
Some text in div after clear
Float is set to none
Some text
Float is set to right
Some text

Tuesday, August 22, 2017

border-box

Without padding
Border-box
With padding
Border-box
Border box without padding
Border-box
Border box with padding
Border-box

max-width

max-width is set to 500px
width is set to 100%
no width is set

width/height

Width is set to auto
Width is set to 100%
Width is set to 50%
Width is set to 30px

Padding

Border example

margin

Margin example
Margin example, except right set all to auto
margin is used to generate space around an element. auto - the browser calculates the margin margin property to auto to horizontally center the element within its container.
Without margin example
Second element without margin
Margin with two attributes

outline

Outline example