Join Easy-Forex, THE site for forex trading. Best Website for hosting
Download Forex Joe's Free Book
You Know Free Practice Trading Account,Trading Forex A currency trade is the simultaneous buying of one currency and selling of another one. The currency combination used in the trade is called a cross (for example, the euro/US dollar, or the GB pound/Japanese yen.). The most commonly traded currencies are the so-called "majors" – EURUSD, USDJPY, USDCHF and GBPUSD.

CSS Positioning

The term "CSS positioning" refers to using CSS to position elements on your HTML page. CSS allows you to position any element precisely where you want it. You can specify whether you want the element positioned relative to its natural position in the page or absolute based on its parent element.



Absolute positioning can be very useful for creating advanced layouts and cool visual effects such as overlapping elements to present a layered effect.



Relative Positioning


To perform relative positioning in CSS you use position:relative; followed by the desired offset from either top, right, bottom or left





<div style="position:relative;left:80px;background-color:yellow;">
This div has relative positioning.
</div>



This results in:




This div has relative positioning.



This example offsets the element 80 pixels from the left of where it would have been. If we had specified top, it would appear 80 pixels below where it would have been. It's important to note that other elements are not affected by this element's offset. Therefore, overlapping may occur.



Absolute Positioning


To perform absolute positioning in CSS you use position:absolute; followed by the desired offset.




<div style="position:absolute;top:100px;left:60px;background-color:yellow;">

This div is absolutely positioned 100 pixels from the top and 60 pixels from the left of its containing block.
</div>



View the result



Fixed Positioning


Fixed positioning allows you to fix the position of an element to a particular spot on the page - regardless of scrolling.




<div style="position:fixed;top:100px;left:60px;width:180px;background-color:red;">

This div is using a fixed position of 100 pixels from the top and 60 pixels from the left of its containing block.
When this page scrolls, this box will remain in a fixed position - it won't scroll with the rest of the page.
Go on - SCROLL!
</div>






Related Posts by Categories



U want get it? click here | Yul Jet

Comments :

0 comments to “CSS Positioning”

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

 

Blogger Torturial

Visitor From...

Followers

Copyright © 2009 by Blogger Torturial , Help Blogger , Fixs Blogger, Techlogy today

Join Easy-Forex, THE site for forex trading. Best Website for hosting
Download Forex Joe's Free Book
Template by Blog Templste 4 U | Blogspot Tutorial