reading-notes


Project maintained by Razan-am Hosted on GitHub Pages — Theme by mattgraham

HTML & CSS

Chapter 16: “Images”

Example:

img.large {

width: 500px;

height: 500px;}

Aligning images

Example:

img.align-left {

float: left;

margin-right: 10px;}

Centering images

Example:

img.align-center {

display: block;

margin: 0px auto;}

Background Images

Example:

body {

background-image: url("images/pattern.gif");}

Repeating Images

Example:

body { background-image: url("images/tulip.gif"); background-repeat: no-repeat;}

Fixed or not fixed images

Example:

body {

background-image: url("images/tulip.gif");

background-attachment: fixed;}

Background Position

Example:

body {

background-image: url("images/tulip.gif");

background-repeat: no-repeat;

background-position: 50% 50%;}

shorthand

Example:

body {

background: #ffffff url("images/tulip.gif")

no-repeat top right;}

Image Rollovers & Sprites

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;}

Contrast of background images

<An over all about the images in CSS>


Chapter 19: “Practical Information”

Search Engine Optimization (SEO)

On-Page SEO

To Identify The Right Keywords and Phrases

Analytics: Learning about your Visitors

Domain Names & Hosting

FTP & Third Party Tools

<An over all about Search Engine Optimization (SEO)>

@Jon Duckett/HTML & CSS