Example:
img.large {
width: 500px;
height: 500px;}
Example:
img.align-left {
float: left;
margin-right: 10px;}
inline elements and to center an image, it should be turned into a blocklevel element using the display property with a value of block. Then using the the margin property and set the values of the left and right margins to auto.Example:
img.align-center {
display: block;
margin: 0px auto;}
background-image property and it’s allows you to place an image behind any HTML element.Example:
body {
background-image: url("images/pattern.gif");}
background-repeat property,and it’s take these values:
repeat:the background image is repeated both horizontally and vertically.repeat-x:the image is repeated horizontally only.repeat-y:the image is repeated vertically only.no-repeat:the image is only shown once.Example:
body {
background-image: url("images/tulip.gif");
background-repeat: no-repeat;}
background-attachment property which specifies whether a background image should stay in one position or move as the user scrolls up and down the page. It can have one of two values:
fixed:the background image stays in the same position on the page.scroll:the background image moves up and down as the user scrolls up and down the page.Example:
body {
background-image: url("images/tulip.gif");
background-attachment: fixed;}
background-position property to specify where in the browser window the background image should be placed.
It’s takes a pair of values,the first represents the horizontal position and the second represents the vertical.
Example:
body {
background-image: url("images/tulip.gif");
background-repeat: no-repeat;
background-position: 50% 50%;}
background property that acts like a shorthand for all of the other previous background properties.Example:
body {
background: #ffffff url("images/tulip.gif")
no-repeat top right;}
Example:
a.button {
height: 36px;
background-image: url("images/button-sprite.jpg");
text-indent: -9999px;
display: inline-block;}
a#add-to-basket {
width: 174px;
background-position: 0px 0px;}
a#framing-options {
width: 210px;
background-position: -175px 0px;}
a#add-to-basket:hover {
background-position: 0px -40px;}
a#framing-options:hover {
background-position: -175px -40px;}
a#add-to-basket:active {
background-position: 0px -80px;}
a#framing-options:active {
background-position: -175px -80px;}
opacity property.<An over all about the images in CSS>
on-page techniques:they are a methods you can use on your web pages to improve their rating in search engines.off-page techniques:It is getting other sites to link to your website.Page Title:the page title appears at the top of the browser window or on the tab of a browser.URL / Web Address:the name of the file is part of the URL.Headings:if the keywords are in a heading <hn> then a search engine will know that this page is all about that subject and give it greater weight than other text.Text:where possible, it helps to repeat the keywords in the main body of the text at least 2-3 times.: Image Alt Text:providing accurate descriptions of images in the alt text.Page Descriptions:the description also lives inside the <head> element and is specified using a <meta> tag.To analyzing how people found it, what they were looking at and at what point they are leaving,by using Google Analytics.
a web server.File Transfer Protocol.<An over all about Search Engine Optimization (SEO)>
@Jon Duckett/HTML & CSS