46.5k views
1 vote
Which of the following configures a margin for an element with the following values: top margin 30 pixels, left margin 150 pixels, right margin 0 pixels, and bottom margin 0 pixels?

User Rjen
by
5.7k points

1 Answer

2 votes

Answer:

margin: 30px 0 0 150px;

Example:

<html>

<body>

<div>

Welcome In Bangalore

</div>

</body>

</html>

Explanation:

The Above example is written in HTML and inline CSS in which I have created a division and given margin to it through internal CSS.

First value in the margin is 30px then 0px for bottom margin then 0px for right margin and at last we have given 150px margin to the left side.

User Rijosh
by
5.6k points