Hai
How to stretch background image for ie8,ie9,chrome and mozila ?
<head>
<title>TITLE HERE</title>
<link href="styles/all.css" rel="stylesheet" />
<!--[if lte IE 8]>
<link href="styles/ie8.css" rel="stylesheet" />
<![endif]-->
</head>
<body style="margin: 0px; overflow: auto">
<form id="form1" runat="server">
<table width="100%" id ="tbllogin">----id is calling css styles
<tr>
<td style="width: 100%">
</td>
</tr>
</table>
</form>
</body>
Actually i have two stylesheet all.css and ie8.css.
all.css for ie9,chrome and mozila.
ie8.css for ie8 only.
In my html code it will work ie8 but css not work for ie9,chrome and mozila.
in all.css having this code
#tbllogin
{
background-size: 100% 100%;
background-image: url("images/bckgrd.png");
background-repeat: repeat-y;
background-attachment: inherit;
}
in ie8.css having this code
#tbllogin
{
background-size: 100% 100%;
background-repeat: repeat;
background-image: url("images/bckgrd.png");
background: no-repeat center center fixed;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader( src="images/bckgrd.png", sizingMethod="scale");
}
My need is how to call different stylesheet based on browser
if ie 8 i need to call ie8.css and other browsers need to call all.css
How to check ie8 or other browsers and need to call particular css ?
The above inside head tag ie8 correctly work but other browser not call the all.css style sheet.
Pls reply asap.
Regards
Aravind