Quote:
Originally Posted by keyness
Hello,
I designed a header for 1280 and above screen width. But when screen width is below than 1280 pixels, it doesn't look well. So I want to change header depending to user's screen width.
I tried something like that in header template, but it didn't work:
<vb:if condition="screen.width <= '1280'">
Header code for above 1280px
</else>
Header code for below 1280px
</vb:if>
Where I am mistaken?
|
Without testing your code, the only that I can say is that you've a syntax error:
is: <vb:else /> and not </else>
Edited: But I've doubts for your condition. Where did you found that screen.width . If it's a global variable you must use the sign $ before. eg: $screen.width
Chris