Saturday, August 25, 2012

LIST PROPERTY

Lesson 1.

LIST-STYLE PROPERTY

The list properties are intended for formatting of the list marker
at the beginning of a list element. Thanks to list properties we
can establish the marker type, the marker position, also set any
image as the list item marker.

The list-style property is a shortcut property. It contains list-style-type,
list-style-position and list-style-image properties.

For an unordered list we should apply disc, circle and square.
For an ordered list we should apply decimal, lower-alpha,
upper-alpha, lower-roman, upper-roman and so on.

But you would notice that CSS1, CSS2 and CSS3 demand
possible different values.

The possible values are:
list-style-type: decimal;
list-style-type: lower-alpha;
list-style-type: lower-roman;
list-style-type: upper-roman;
list-style-type: none;

LIST-STYLE-TYPE

The possible values are:
list-style-type: decimal;
list-style-type: lower-alpha;
list-style-type: lower-roman;
list-style-type: upper-roman;
list-style-type: none;

list-style-type: disc;
list-style-type: circle;
list-style-type: square;
list-style-type: armenian;
list-style-type: cjk-ideographic;
list-style-type: decimal-leading-zero;
list-style-type: georgian;
list-style-type: hiragana;
list-style-type: hiragana-iroha;
list-style-type: hebrew;
list-style-type: katakana;
list-style-type: katakana-iroha ;
list-style-type: lower-greek;
list-style-type: arabic-indic;
list-style-type: bengali;
list-style-type: cjk-earthly-branch;
list-style-type: cjk-heavenly-stem;
list-style-type: devanagari;
list-style-type: ethiopic-abegede;
list-style-type: ethiopic-halehame;
list-style-type: ethiopic-numeric;
list-style-type: gujarait;
list-style-type: gurmukhi;
list-style-type: hangul;
list-style-type: japanese-formal;
list-style-type: japanese-informal;
list-style-type: malayalam;
list-style-type: persian;
list-style-type: simp-chinese-formal;
list-style-type: simp-chinese-informal;
list-style-type: telugu;
list-style-type: thai;
list-style-type: trad-chinese-formal;
list-style-type: trad-chinese-informal;
list-style-type: urdu;

LIST-STYLE-POSITION

list-style-position: inside;
list-style-position: outside;

LIST-STYLE-IMAGE

list-style-image: url( );

Friday, April 6, 2012

Lesson 1.


For study we're going to use a small text.

TEXT-ALIGN

Through text-align we can set the horizontal alignment for a text within an element.
Font's possible values are:


text-align: center;
text-align: justify;
text-align: left;
text-align: right;
text-align: inherit;

Exercise 1!

For example:
text-align: center;
text-align: justify;
text-align: left;
text-align: right;

Please, write on blackboard and then hit the Preview button.

Lesson 2.


TEXT-ALIGN-LAST

Through text-align-last property we can set the horizontal for the last of a text within an element of a box.
The possible values are:


text-align-last: auto;
text-align-last: left;
text-align-last: right;
text-align-last: center;
text-align-last: justify;
text-align-last: inherit;

Exercise 2!

Try one of this examples!
text-align-last: left;
text-align-last: right;
text-align-last: center;
text-align-last: justify;

Please, write on blackboard and then hit the Preview button.

Lesson 3.

TEXT-AUTOSPACE

Through text-autospace property we can set the spacing between ideografic and nonideographic.


The possible values are:


text-autospace:none;
text-autospace:ideograph-alpha;
text-autospace:ideograph-numeric;
text-autospace:ideograph-parenthesis;
text-autospace:ideograph-space;

Exercise 3!

Try one of this examples!

Sorry, we need any Asian language!

Please, write on blackboard and then hit the Preview button.


Lesson 4.

TEXT-DECORATION

Through text-decoration property we can set a decoration style for a text.
The possible values are:


text-decoration: blink;
text-decoration: line-through;
text-decoration: none;
text-decoration: overline;
text-decoration: underline;
text-decoration: inherit;

Exercise 4!

Try this examples!

text-decoration: blink;
text-decoration: line-through;
text-decoration: overline;
text-decoration: underline;

Please, write on blackboard and then hit the Preview button.

Lesson 5.

TEXT-INDENT

Through text-indent property we can set the size of the first line of a text.
The possible values are:

text-indent: ;
text-indent: % ;
text-indent: inherit;

 

Exercise 5!

Try this examples!

Sorry, we need include any block item!

text-indent: 20px;
text-indent: 150% ;
text-indent: 15px;
text-indent: 50% ;

Please, write on blackboard and then hit the Preview button.

Lesson 6.

TEXT-JUSTIFY

Through text-justify property we can set the type to justify of a text as a block-level element.
The possible values are:

text-justify: auto;
text-justify: distribute;
text-justify: distribute-all-lines;
text-justify: inter-cluster;
text-justify: inter-ideograph;
text-justify: inter-word;
text-justify: kashida;
text-justify: newspaper;

Exercise 6!

Try this examples!

Sorry, we need include any block item!

text-justify: distribute-all-lines;
text-justify: inter-cluster;
text-justify: inter-ideograph;
text-justify: inter-word;
text-justify: kashida;
text-justify: newspaper;

Please, write on blackboard and then hit the Preview button.

Lesson 7.

TEXT-KASHIDA-SPACE

Through text-kashida-space property we can use for Arabic text.
The possible values are:


text-kashida-space: ; /*number*/
text-kashida-space: % ;
text-kashida-space: inherit;

Exercise 7!

Try this examples!

Sorry, we need any Arabic text!

Please, write on blackboard and then hit the Preview button.

Lesson 8.

TEXT-OVERFLOW

Through text-overflow property we can set for block-level elements.
The possible values are:


text-overflow: clip;
text-overflow: ellipsis;

Exercise 8!

Try this examples!

Sorry, we need include any block item!

text-overflow: ellipsis;

Please, write on blackboard and then hit the Preview button.

Lesson 9.

TEXT-SHADOW

Through text-shadow property we can set shadow effects.
The possible values are:

text-shadow: none;
text-shadow: ; /*horiz length & vert length*/
text-shadow: #ffaaee;
text-shadow: inherit;

Exercise 9!

Try this examples!

text-shadow: red 8px 4px 2px; /*horizlength vertlength blurradiuslength*/

Please, write on blackboard and then hit the Preview button.

Lesson 10.

TEXT-TRANSFORM

Through text-transform property we can transform the text's font.
The possible values are:


text-transform: capitalize;
text-transform: lowercase;
text-transform: none;
text-transform: uppercase;
text-transform: inherit;

Exercise 10!

Try this examples!

text-transform: capitalize;
text-transform: lowercase;
text-transform: none;
text-transform: uppercase;

Please, write on blackboard and then hit the Preview button.

Lesson 11.

TEXT-UNDERLINE-POSITION

Through text-underline-position property we can set when at first we have set text-decoration property.
The possible values are:

text-underline-position: above;
text-underline-position: below;
text-underline-position: auto;
text-underline-position: auto-pos;


Exercise 11!

Try this examples!

text-decoration:underline;
text-underline-position: below;

Please, write above given two statements on blackboard and then hit the Preview button.


Lesson 1.



FONT

For study we're going to use a small text.

Font is a shortcut property. Through it we can set several attributes.

Font's possible values are:

font: cursive;

font: fantasy;

font: monospace;

font: sans-serif;

font: serif;

font: font_family;

font: large;

font: medium;

font: small;

font: larger;

font: smaller;

font: ;/*number*/

font: %;

font: italic;

font: normal;

font: oblique;

font: ; /*100, 200, 300 ...900*/

font: bold;

font: bolder;

font: lighter;

font: caption;

font: icon;

font: menu;

font: message-box;

font: small-caption;

font: status-bar;

font: inherit;

It's possible to apply several combinations of properties:

font: 20px italic sans-serif;

 

FONT-FAMILY

Through font-family property we can define the font family for an element.

font-family: cursive;

font-family: fantasy;

font-family: monospace;

font-family: sans-serif;

font-family: serif;

font-family: inherit;

Exercise 1!

For example:

font-family: serif;

Please, write an example on blackboard and then hit the Preview button.





Lesson 2.



FONT-SIZE

Through font-size property we can set the size of the font of a text or an element.
The possible values are:



font-size: large;

font-size: medium;

font-size: small;

font-size: x-large;

font-size: x-small;

font-size: xx-large;

font-size: xx-small;

font-size: larger;

font-size: smaller;

font-size: ;/*number*/

font-size: %;

font-size: inherit;

font-size-adjust

font-size-adjust: ; /*number*/

font-size-adjust: none;

font-size-adjust: inherit;


Exercise 2!

Try one of this examples!

font-size: small;

font-size: x-large;

font-size: x-small;

font-size: xx-large;

font-size: xx-small;

font-size: larger;

font-size: 205%;

Please, write an example on blackboard and then hit the Preview button.







Lesson 3.

FONT-STYLE

Through font-style property we can set the style of the font of a text or an element.

The possible values are:

font-style: italic;

font-style: normal;

font-style: oblique;

font-style: inherit;

Exercise 3!

Try one of this examples!

font-style: italic;

font-style: normal;

font-style: oblique;

Please, write an example on blackboard and then hit the Preview button.










Lesson 4.

FONT-VARIANT

Through font-variant property we can set the variant for font of a text or an element.
The possible values are:



font-variant: normal;

font-variant: small-caps;

font-variant: inherit;

Exercise 4!

Try this examples!

font-variant: normal;

font-variant: small-caps;

Please, write an example on blackboard and then hit the Preview button.







Lesson 5.

FONT-WEIGHT

Through font-weight property we can set the weight of the font of an element.
The possible values are:

font-weight: ; /*100,200,300---900*/

font-weight: bold;

font-weight: normal;

font-weight: bolder;

font-weight: lighter;

font-weight: inherit;


Exercise 5!

Try this examples!

font-weight: 300;

font-weight: bold;

Please, write an example on blackboard and then hit the Preview button.







Monday, April 2, 2012

background


Lesson 1.


BACKGROUND

For study we're going to use an one cell table:<table width="1200" height="800" border="1"><tr><th >Text.</th></tr></table> .
Background is a shortcut property. Through it we can set five background-style attributes.

Background's possible values are:
 background: #FC6;
 background: url();
 background: scroll;
 background: fixed;
 background: transparent;
 background: x%;
 background: y%;
 background: left;
 background: center;
 background: right;
 background: top;
 background: bottom;
 background: repeat;
 background: repeat-x;
 background: repeat-y;
 background: no-repeat;
 background: inherit;
It's possible to apply several combination of properties:

background: red url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkHAc6oJeb23_d_aKDUemMc5y3bGmZdacZkleSZuU3ziEJb03mGWbx0kVvnAScbgzE6KusVr2xkSf-sVhizoCleAGFgXYEONiQE3Zu94ahaIy3mVGk8gwLY-lJJxAhrOhWNcCYyBE4r4Xj/s1600/css.JPG) repeat-x bottom right;

BACKGROUND-ATTACHMENT

Through background-attachment property we can define how the image should or should not scroll with the document i.e. remain fixed.

The possible values are:

 background-attachment: scroll; /*the image scrolls together with the document maintenance*/
 background-attachment: fixed; /*the image does not scroll together with the document. It is fixed in one  place. */
 background-attachment: inherit;

Exercise 1!

At first we must set an image source.
For example:

background-image: url (https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkHAc6oJeb23_d_aKDUemMc5y3bGmZdacZkleSZuU3ziEJb03mGWbx0kVvnAScbgzE6KusVr2xkSf-sVhizoCleAGFgXYEONiQE3Zu94ahaIy3mVGk8gwLY-lJJxAhrOhWNcCYyBE4r4Xj/s1600/css.JPG);

background-attachment: fixed;
Please, write on blackboard and then hit the Preview button.



Lesson 2.


BACKGROUND-COLOR

Through background-color property we can set the background color for an element.
The possible values are:


 background-color: #ddffee; /* or color: RGB(78, 51, 133);*/
 background-color: transparent;
 background-color: inherit;

We can set color in several ways:

background-color: RGB(5, 50, 55);
background-color: red;
background-color: #3333CC;





Exercise 2!

Try one of this examples!
background-color: green;
background-color: RGB(125, 55, 100);

background-color: #FFDDCC;
Please, write on blackboard and then hit the Preview button.






Lesson 3.

BACKGROUND-IMAGE

Through background-image property we can set an image for background of an element.

The possible values are:

 background-image: url();
 background-image: inherit;

Exercise 3!
Please, copy any image file into your desktop then write the correct name of it into ( ), and finaly hit the Preview button.









Lesson 4.

BACKGROUND-POSITION

Through background-position property we can set the position for an element.
The possible values are:

 background-position: 25px;
 background-position: 25%;
 background-position: top;
 background-position: center;
 background-position: bottom;
 background-position: left;
 background-position: right;
 background-position-x: 50%;
 background-position-x: 25px;
 background-position-x: left;
 background-position-x: center;
 background-position-x: right;
 background-position-y: 50%;
 background-position-y: 25px;
 background-position-y: top;
 background-position-y: center;
 background-position-y: bottom;



At first we must set an image source.
Try this examples!

background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkHAc6oJeb23_d_aKDUemMc5y3bGmZdacZkleSZuU3ziEJb03mGWbx0kVvnAScbgzE6KusVr2xkSf-sVhizoCleAGFgXYEONiQE3Zu94ahaIy3mVGk8gwLY-lJJxAhrOhWNcCYyBE4r4Xj/s1600/css.JPG);

background-position-y: top;

Exercise 4!
Please, write an image name or use that one which is on blackboard,

then try one possible variant from this list:

background-position: left top; /* or 0% 0% */

background-position: left center; /* or 0% 50% */

background-position: left bottom; /* or 0% 100% */

background-position: right top; /* or 100% 0% */

background-position: right center; /* or 100% 50% */

background-position: right bottom; /* or 100% 100% */

background-position: center top; /* or 50% 0% */

background-position: center center; /* or 50% 50% */

background-position: center bottom; /* or 50% 100% */

background-position: 50%0%;





Lesson 5.

BACKGROUND-REPEAT


Through background-repeat property we can set the repeating variant of the background image.
The possible values are:

 background-repeat: repeat; /*multiple copies the background image in all directions*/
 background-repeat: repeat-x; /*multiple copies the background image horizontally*/
 background-repeat: repeat-y; /*multiple copies the background image vertically*/
 background-repeat: no-repeat; /*not repeating the image*/
 background-repeat: inherit;

At first we must set an image source.

Exercise 5!
Please, input source code for image, then try one of the possible values.
for example:

background-image: url()
background-repeat: repeat-x;




OPACITY (CSS3)

This property defines level of the transparency of an element.

The
possible values are:
 opacity: 0.1; /* or .1*/
 opacity: 0.2; /* or .2*/
..................
opacity: 1.0;
For IE we can apply filter: alpha(opacity=10) /* 0-100*/

BACKGROUND-SIZE (CSS3)

This property defines the size of the image of the background.

The possible values are:

 background-size: 100px 200px; /*width and height*/
 background-size: 75%;
 background-size: auto;
 background-size: contain;
 background-size: cover;




BACKGROUND-SPACING (CSS3)

This property defines the spacing between the background images.

The possible values are:
background-spacing: 25px 28px;
background-spacing: 15px;
background-spacing: inherit;

BACKGROUND-QUANTITY (CSS3)

This property defines how many times the background image will repeat.

The possible values are:

 background-quantity: infinite;
 background-quantity: inherit;
 background-quantity: 4; /* four times*/


Saturday, March 17, 2012

Table code generator





HTML with TABLE CODE GENERATOR!



COLUMN:
ROW:
BACKGROUND
Color:
Image: url
Repeat:
Attachment:
Horizonal position:
Vertical position:
Background position
PLACEMENT
Top:
Right:
Left:
Bottom:
Vertical align:
Z-index:
Visibility:
Overflow:
BORDERS style
Top:
Right:
Left:
Bottom:
Border color
Top:
Right:
Left:
Bottom:
Border width
Top:
Right:
Left:
Botton:
Outline
Style:
Color:
Width:
Border collapse
Dimension
Top margin:
Right margin:
Left margin:
Bottom margin:
Padding
Top:
Right:
Left:
Bottom:
Dimension
Width:
Min width:
Max width:
Height:
Min height:
Max height:
FONT
Font family
Generic
Font color
Font size
Line height
Font style
Font weight
Font variant
Font stretch
Text decoration
Underline
Overline
Linethrough
Blink
Text align
Text transform
White space
Direction
Unicode-bidi
Text indent
Letter spacing
Word spacing




Input your text here, please.