Melvin
Melvin

Reputation: 377

DIV stylesheet attributes?

I am new to div stylesheet and i only discovered how to use :

margin-top/left/right/bottom.

What is the position used for ?

What is left/right/top/bottom attrib used for?

What is display used for?

Is there any other attrib which i need to take note of/usage for positioning my div ?

Regards

Upvotes: 0

Views: 90

Answers (2)

Magic Lasso
Magic Lasso

Reputation: 1542

margin is in relation to the closest container while left/right... is in relation to the entire page.

Display determines if the object is visible/hidden or how the element behaves. Like display: inline means the elements will display on the same horizontal plane if possible.

Upvotes: 0

Related Questions