1. Css Image Encoder 1.2.2 Pro
  2. Css Image Encoder 1.2.2 Software
  3. Text To Image Encoder
  4. Css Image Encoder 1.2.2 Download
  5. Css Image Encoder 1.2.2 Tutorial
  6. Css Image Encoder 1.2.2 Pdf

Example

Set a background-image for the <body> element:

body {
background-image: url('paper.gif');
background-color: #cccccc;
}
Try it Yourself »

Css Image Encoder 1.2.2 Pro

Optimize your images and convert them to base64 online. Drag & Drop your files, copy to clipboard with a click and use the result in HTML and CSS. Base64 encoded images can be embedded using img tags or CSS, speeding up load times for smaller images by preventing additional HTTP requests.This can be done to build single-file mockups / demo pages for your clients, HTML email signatures that will not trigger the nasty 'show images' warning in email clients, etc. Preview Your Fonts Your headline is in Verdana This is a sub heading in Verdana. This paragraph is in Verdana.Keep reading for how to use the buttons to the left. Change your settings, and choose what section you want the font to apply to. Download Encoder stock photos at the best stock photography agency with millions of premium high quality, royalty-free stock photos, images and pictures at reasonable prices. The background-image property sets one or more background images for an element. By default, a background-image is placed at the top-left corner of an element, and repeated both vertically and horizontally. Tip: The background of an element is the total size of the element, including padding and border (but not the margin). Convert CSS images to a Base64 Current browsers supports Data URI scheme, a protocol, which can store data on any url directly to the source text file - for example, you can store images directly into html code or css style sheet, using Base64 encoding.

Example

Set two background images for the <body> element:

body {
background-image: url('img_tree.gif'), url('paper.gif');
background-color: #cccccc;
}
Try it Yourself »

More 'Try it Yourself' examples below.

Definition and Usage

The background-image property sets one or more background images for an element.

By default, a background-image is placed at the top-left corner of an element, and repeated both vertically and horizontally.

When a level ends, the hero reverts back to level 1. With each new level they gain a boost in their HP and attacking strength. Unblocked

Tip: The background of an element is the total size of the element, including padding and border (but not the margin).

Tip: Always set a background-color to be used if the image is unavailable.

Default value:none
Inherited:no
Animatable:no. Read about animatable
Version:CSS1 + new values in CSS3
JavaScript syntax:object.style.backgroundImage='url(img_tree.gif)' Try it

Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Note: IE8 and earlier do not support multiple background images.

CSS Syntax

Property Values

ValueDescription
url('URL')The URL to the image. To specify more than one image, separate the URLs with a comma
noneNo background image will be displayed. This is default
linear-gradient()Sets a linear gradient as the background image. Define at least two colors (top to bottom)
radial-gradient()Sets a radial gradient as the background image. Define at least two colors (center to edges)
repeating-linear-gradient()Repeats a linear gradient
repeating-radial-gradient()Repeats a radial gradient
initialSets this property to its default value. Read about initial
inheritInherits this property from its parent element. Read about inherit

More Examples

Example

Sets two background images for the <body> element. Let the first image appear only once (with no-repeat), and let the second image be repeated:

body {
background-image: url('img_tree.gif'), url('paper.gif');
background-repeat: no-repeat, repeat;
background-color: #cccccc;
}
Try it Yourself »

Example

Use different background properties to create a 'hero' image:

.hero-image {
background-image: url('photographer.jpg'); /* The image used */
background-color: #cccccc; /* Used if the image is unavailable */
height: 500px; /* You must set a specified height */
background-position: center; /* Center the image */
background-repeat: no-repeat; /* Do not repeat the image */
background-size: cover; /* Resize the background image to cover the entire container */
}
Try it Yourself »

Example

Sets a linear-gradient (two colors) as a background image for a <div> element:

#grad1 {
height: 200px;
background-color: #cccccc;
background-image: linear-gradient(red, yellow);
}
Try it Yourself »

Example

Sets a linear-gradient (three colors) as a background image for a <div> element:

#grad1 {
height: 200px;
background-color: #cccccc;
background-image: linear-gradient(red, yellow, green);
}
Try it Yourself »

Example

The repeating-linear-gradient() function is used to repeat linear gradients:

#grad1 {
height: 200px;
background-color: #cccccc;
background-image: repeating-linear-gradient(red, yellow 10%, green 20%);
}
Try it Yourself »

Example

Sets a radial-gradient (two colors) as a background image for a <div> element:

Css Image Encoder 1.2.2 Software

#grad1 {
height: 200px;
background-color: #cccccc;
background-image: radial-gradient(red, yellow);
}
Try it Yourself »

Example

Sets a radial-gradient (three colors) as a background image for a <div> element:

#grad1 {
height: 200px;
background-color: #cccccc;
background-image: radial-gradient(red, yellow, green);
}
Try it Yourself »

Example

The repeating-radial-gradient() function is used to repeat radial gradients:

#grad1 {
height: 200px;
background-color: #cccccc;
background-image: repeating-linear-gradient(red, yellow 10%, green 20%);
}
Try it Yourself »

Related Pages

CSS tutorial: CSS Background, CSS Backgrounds (advanced), CSS Gradients

HTML DOM reference: backgroundImage property


Child Elements (Items)

A grid container contains grid items.

By default, a container has one grid item for each column, in each row, but you can style the grid items so that they will span multiple columns and/or rows.

The grid-column Property:

The grid-column property defines on which column(s) to place an item.

You define where the item will start, and where the item will end.

Note: The grid-column property is a shorthand property for the grid-column-start and the grid-column-end properties.

To place an item, you can refer to line numbers, or use the keyword 'span' to define how many columns the item will span.

Example

Make 'item1' start on column 1 and end before column 5:

Example

Make 'item1' start on column 1 and span 3 columns:

Example

Make 'item2' start on column 2 and span 3 columns:

The grid-row Property:

The grid-row property defines on which row to place an item.

You define where the item will start, and where the item will end.

Note: The grid-row property is a shorthand property for the grid-row-start and the grid-row-end properties.

To place an item, you can refer to line numbers, or use the keyword 'span' to define how many rows the item will span:

Example

Make 'item1' start on row-line 1 and end on row-line 4:

Example

Make 'item1' start on row 1 and span 2 rows:

The grid-area Property

The grid-area property can be used as a shorthand property for the grid-row-start, grid-column-start, grid-row-end and the grid-column-end properties.

Example

Make 'item8' start on row-line 1 and column-line 2, and end on row-line 5 and column line 6:

Example

Make 'item8' start on row-line 2 and column-line 1, and span 2 rows and 3 columns:

Naming Grid Items

The grid-area property can also be used to assign names to grid items.

Menu

Right

Named grid items can be referred to by the grid-template-areas property of the grid container.

Example

Item1 gets the name 'myArea' and spans all five columns in a five columns grid layout:

.item1 {
grid-area: myArea;
}
.grid-container {
grid-template-areas: 'myArea myArea myArea myArea myArea';
}

Each row is defined by apostrophes (' ')

The columns in each row is defined inside the apostrophes, separated by a space.

Note: A period sign represents a grid item with no name.

Example

Let 'myArea' span two columns in a five columns grid layout (period signs represent items with no name):

.item1 {
grid-area: myArea;
}
.grid-container {
grid-template-areas: 'myArea myArea . . .';
}

To define two rows, define the column of the second row inside another set of apostrophes:

Example

Make 'item1' span two columns and two rows:

.grid-container {
grid-template-areas: 'myArea myArea . . .' 'myArea myArea . . .';
}

Example

Text To Image Encoder

Name all items, and make a ready-to-use webpage template:

.item1 { grid-area: header; }
.item2 { grid-area: menu; }
.item3 { grid-area: main; }
.item4 { grid-area: right; }
.item5 { grid-area: footer; }
.grid-container {
grid-template-areas:
'header header header header header header'
'menu main main main right right'
'menu footer footer footer footer footer';
}

The Order of the Items

The Grid Layout allows us to position the items anywhere we like.

Css Image Encoder 1.2.2 Download

The first item in the HTML code does not have to appear as the first item in the grid.

Example

.item1 { grid-area: 1 / 3 / 2 / 4; }
.item2 { grid-area: 2 / 3 / 3 / 4; }
.item3 { grid-area: 1 / 1 / 2 / 2; }
.item4 { grid-area: 1 / 2 / 2 / 3; }
.item5 { grid-area: 2 / 1 / 3 / 2; }
.item6 { grid-area: 2 / 2 / 3 / 3; }

You can re-arrange the order for certain screen sizes, by using media queries:

Example

Css Image Encoder 1.2.2 Tutorial

@media only screen and (max-width: 500px) {
.item1 { grid-area: 1 / span 3 / 2 / 4; }
.item2 { grid-area: 3 / 3 / 4 / 4; }
.item3 { grid-area: 2 / 1 / 3 / 2; }
.item4 { grid-area: 2 / 2 / span 2 / 3; }
.item5 { grid-area: 3 / 1 / 4 / 2; }
.item6 { grid-area: 2 / 3 / 3 / 4; }
}

Css Image Encoder 1.2.2 Pdf