WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > Browser Compatibility > Cross Browser Problem

Reply
  Thread Tools Display Modes
Old 7th January 12, 09:36 AM   #1
tqmd1
WLC Member
 
Join Date: Oct 2011
Posts: 18
Default Cross Browser Problem

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>
The label position is different in IE6 and IE8 as shown in attachment.
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
tqmd1 is offline   Reply With Quote
Old 7th January 12, 10:21 AM   #2
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
Default Re: Cross Browser Problem

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.
chrishirst is offline   Reply With Quote
Old 7th January 12, 10:30 AM   #3
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
Default Re: Cross Browser Problem

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.
chrishirst is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:21 AM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.