Set the top and bottom paddings for <p> to "25px", and left and right paddings to "50px". - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Set the top and bottom paddings for <p> to "25px", and left and right paddings to "50px".

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
p {<!--from   w  w w . j av a 2  s .  co  m-->
    background-color: pink;
    padding: 25px 50px;
}
</style>
</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

Related Tutorials