| Type: |
Code 
|
| Level: |
Intermediate
|
| Date: |
2007-Sep-27
|
| Visited: |
1716 times
|
| Rating: |

|
| Author: |
Alex Plumpton |
|
|
This tutorial will explain elements and according in CSS.
We have all seen the effect when one picture is inside a text blog and it doesn't brake the text but it is included in the text. The text in this case includes the image from one side - where we have a free margin between the borders of the pafe and the picture. In ather case the image just breaks the text in pieces and the text is placed around the picture.The same effect we can achieve with CSS for any blog element.
p{
clear:right;
text-align:justify;
}
Including a text blog with other text in CSS. is controled with "float" and "clear". "Float" makes a floating text blog. It can have the following values: left-shaped from the left side;
The text is around the element. The blog is attached to the left border of the surrounding blog, right-shaped from the right side; The text is around the element.
right-The given element is positioned in the right end in CSS. .
left - The given element is positioned in the left end in CSS..
none - The other elements are admissible from all sides in CSS. .
bothe - the element is placed next to every other elelement in CSS..