Forum : How do I...
Brief description  about Online courses   join in Online courses
View Avraham  Venismach 's Profile

How do I...

Get the text to display at the top of the box instead of the middle?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">


<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Here it is</title>

<style type="text/css">
<!--

div {

border: 1px black solid;

}

-->
</style>


</head>
<body>
<div><p>Hello</p></div>
</body>
</html>
Asked by Avraham Venismach | Jan 19, 2010 |  Reply now
Replies (1)
View sanjay s nair 's Profile
you need to remove the paragraph tag from <div><p>Hello</p></div>

because <p> keeps some margin or padding by default, so remove <p>
Jan 20, 2010