How to use CSS to define a space (margin) outside the border around HTML elements

1 Answer

0 votes
<!DOCTYPE html>
<html>
    <head>
        <style>
            p {
                border: 1px solid lightgreen;
                margin: 30px;
            }
        </style>
    </head>
    <body>

        <p>Text text text</p>
        <p>Text text text</p>
        <p>Text text text</p>

    </body>
</html>

 



answered Dec 7, 2018 by avibootz
...