Honlapkészítés Egyeteme/4.rész – Elemek, osztályok, azonosítók, dobozolás/margin

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<title>this is the title of the web page</title>

<style type="text/css">

p.normal { border-style: solid; } p.margin { border-style: solid; margin: 1cm 2cm 3cm 4cm; }

</style>

</head>

<body>

<p class="normal"> This is a paragraph with no specified margins. </p>

<p class="margin"> This is a paragraph has a top margin of 1cm, a right margin of 2cm, a bottom margin of 3cm and a left margin of 4cm. </p>

<p class="normal"> This is a paragraph with no specified margins. </p>

</body>

</html> [1]