Honlapkészítés Egyeteme/4.rész – Elemek, osztályok, azonosítók, dobozolás/padding
Megjelenés
<!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.padding { border-style: solid; padding: 0.5cm 2cm 4cm 8cm; }
</style>
</head>
<body>
<p class="normal"> This is a paragraph with specified padding. </p>
<p class="padding1"> This paragraph has a top padding of 0.5cm, a right padding of 2cm, a bottom padding of 4cm and left padding of 8cm. </p>
<p class="normal"> This is a paragraph with specified padding. </p>
</body>
</html> [1]