p {border-style:solid; border-color:#000000; border-width:2px; padding:5px; width:200px; background-color:#FFFFFF;} : p border « Tags « HTML / CSS






p {border-style:solid; border-color:#000000; border-width:2px; padding:5px; width:200px; background-color:#FFFFFF;}

    

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
  <title>Normal Flow</title>
<style type='text/css'>
p {border-style:solid; border-color:#000000; border-width:2px; padding:5px; width:200px; background-color:#FFFFFF;}
</style>

</head>

<body>
<p>Here is paragraph <b>one</b>. This will be at the top of the page.</p>
<p>Here is paragraph <b>two</b>. This will be in the middle of the page.</p>
<p>Here is paragraph <b>three</b>. This will be at the bottom of the page.</p>
</body>
</html>

   
    
    
    
  








Related examples in the same category

1.This is a paragraph with an inset border
2.This is a paragraph with a solid border
3.This is a paragraph with a dotted border
4.This is a paragraph with a dashed border
5.This is a paragraph with a double border
6.This is a paragraph with a groove border
7.This is a paragraph with a ridge border
8.p border: 1px solid steelblue;
9.p border:solid black 1px;
10.p border: 1px solid rgb(200, 200, 200);
11.p border: 1px solid rgb(29, 179, 82);
12.p border: none;
13.p border: 1px solid lightblue;
14.p border-top: solid;
15.Paragraph with various border styles
16.Use border the wrap around a paragraph
17.paragraph with various border style
18.p border: 1px solid black;