0

Dear Sir,

please see what is wrong with my codes

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Bismillah Cotton</title>

<style type="text/css">

.foramt
{
border-color:green;
border-width:2px;
border-style:solid;
width:200px;
height:50px;
color:red;
font-family:verdana;
font-size:14px;
font-style:italic;
text-align:center;
}
</style>
</head>

<body>

<div class="format"><p>How are you?</p></div>

</body>
</html>
3
Contributors
2
Replies
15
Views
3 Years
Discussion Span
Last Post by AARTI SHRIVAS
2

Your format problem is because you misspelled the selector in your style block...

 .foramt { ... }

Should be "format"

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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Bismillah Cotton</title>

<style type="text/css">

.format
{
border-color:green;
border-width:2px;
border-style:solid;
width:200px;
height:50px;
color:red;
font-family:verdana;
font-size:14px;
font-style:italic;
text-align:center;
}
</style>
</head>

<body>

<div class="format"><p>How are you?</p></div>

</body>
</html>

try this

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.