positioning in css

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Can anyone  show me an example of simple positioning using a css? Something
along the lines of positioning something at 0,0 (top,left) ?

Thanks, Ike

Re: positioning in css

Quoted text here. Click to load it

If you mean absolute positioning:

    #foo {

Then in the HTML:

    <div id="foo">This is absolute positioning</div>

Relative positioning works differently. It doesn't remove the element
from the flow of the page, it just offsets the element from its original
position after it's been drawn:

    p em {

Then in the HTML:

    <p>This is <em>relative</em> positioning</p>

Site Timeline