answersLogoWhite

0


Best Answer

Block level elements can be centered by: The margin-left and margin-right properties can be set to some explicit value: body{ width: 40em; background: fluorescent; } p{ width:30 em; margin-right:auto; margin-left:auto } In this case, the left and right margins will be each, five ems wide since they split up the ten ems left over from (40em-30em). It was unnecessary for setting up an explicit width for the BODY element; it was done here for simplicity.

User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How block elements can be centered with CSS1?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the formula for cesium sulphide?

CsS1


How many elements fit into each of the four blocks of the periodic table?

4: the s-block, the p-block, the d-block, and the f-block. there is an theoratical g-block but its not counted because its theoratical lol.


What are the d block elements known as?

d-block elements are also called transition elements.


Radio active S block elements?

Radio active s block elements are Fr and Ra. They are the last s block elements.


What groups comprise each block of elements in the periodic table?

s block elements: groups 1-2 d block elements: groups 3-12 p block elements: groups 13-18


What are the d-block elements known as?

The d-block elements are called transition metals.


What is s block element?

S block elements are elements that contain their outermost electron in the s shell. S block elements are further divided into 2 groups.


What groups of elements does the s-block contian?

Group 1 and group 2 elements are called s-block elements


Why s block elements are colourless?

They are not colourless! They are grey. Elements in the s-block are all metals.


What are the majority of the elements in the p-block classified as?

The majority of the elements in the p-block are non-metals.


Is atomic radii of d block elements is smaller than p block reason out?

Comparing d-block elements with s & p-block elements, it does have smaller atomic radii because of the richness in electrons & protons.


What is an element in the s block or p block of the periodic table?

The elements in Groups 1 and 2 are in the s block. The elements in Groups 13-18 are in the p block.