![]() |
|
||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||
|
|
#1 |
|
WLC Member
Join Date: Oct 2011
Posts: 18
|
Dear Experts
I have following codes Code:
<!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>
<title>Asia Ghee Mills</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<style type="text/css">
html {
overflow: auto;
background: #e3eeff;
height:100%;
}
body {margin:0 auto;}
#header {
float:left;
width: 675px;
height: 100px;
color: white;
border-bottom: 1px solid black;
background: url("http://i41.tinypic.com/5yhtdx.jpg") no-repeat;
}
#header p {
font-size: 36pt;
font-weight: bolder;
color: green;
font-family: verdana;
text-align: center;
line-height: 50px;
height: 100px;
}
</style>
</head>
<body>
<div id="header">
<p>Asia Ghee Mills</p></div>
</div>
</body>
</html>
I want label (Asia Ghee Mills) must appear horizontly and vertically center. http://www.codingforums.com/attachme...6&d=1325931735 http://www.codingforums.com/attachme...7&d=1325931751 Please help |
|
|
|
|
|
#2 |
|
Banned
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
|
It's not going to happen!
IE6 now being well over TEN YEARS OLD and officially dead does NOT support the CSS properties necessary to make it work. |
|
|
|
|
|
#3 |
|
Banned
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
|
Unless, of course.
You want to turn the calendar back to 1997, use a HTML3.2 DTD and code the page in tables. Which brings me to. Why are you using a XHTML1.0 DTD when you seemingly have no XML being used by the document, AND a DTD that IE6 did NOT support correctly. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
Linear Mode |
|
|