hi there,
I've just started using CSS in the development of my projects.
I've done a check to call the respective file when the detected browser is IE or NS.
<%
Dim browser
browser = Request.ServerVariables("HTTP_USER_AGENT"
If InStr(browser, "IE" > 0 Then
%>
<LINK REL=StyleSheet HREF="styleIE.css" Title="styleIE">
<% Else %>
<LINK REL=StyleSheet HREF="styleNS.css" Title="styleNS">
<% End If %>
I've checked the source code and it's calling the correct files.
However, the CSS doesn't seem to work under NS.
Why is this so, and how can I do it in a way such that it'll work in both IE and NS??
.Mary
I've just started using CSS in the development of my projects.
I've done a check to call the respective file when the detected browser is IE or NS.
<%
Dim browser
browser = Request.ServerVariables("HTTP_USER_AGENT"
If InStr(browser, "IE" > 0 Then
%>
<LINK REL=StyleSheet HREF="styleIE.css" Title="styleIE">
<% Else %>
<LINK REL=StyleSheet HREF="styleNS.css" Title="styleNS">
<% End If %>
I've checked the source code and it's calling the correct files.
However, the CSS doesn't seem to work under NS.
Why is this so, and how can I do it in a way such that it'll work in both IE and NS??
.Mary