im having trouble incorporating an if statement into the ASP page.
this is what i have:
<div id="text" runat="server" style="display: none; position: absolute; width: 350; text-align: right">
</div>
so what i need to do is check if the resolution is less than 1024 pixels wide and if it is i need to make that statement:
<div id="text" runat="server" style="display: none; position: absolute; width: 350; text-align: right; left:400">
</div>
i saw on some sites to try:
<% IF screen.width < 1024 THEN %>
code....
<%ELSE %>
code...
<%End IF %>
but for it doesnt seem to be working..
any help would be appreciated.
this is what i have:
<div id="text" runat="server" style="display: none; position: absolute; width: 350; text-align: right">
</div>
so what i need to do is check if the resolution is less than 1024 pixels wide and if it is i need to make that statement:
<div id="text" runat="server" style="display: none; position: absolute; width: 350; text-align: right; left:400">
</div>
i saw on some sites to try:
<% IF screen.width < 1024 THEN %>
code....
<%ELSE %>
code...
<%End IF %>
but for it doesnt seem to be working..
any help would be appreciated.
Comment