Hi all,
I'm developing a system at present, and one of the requirements is that the site can be resized using a selector. I can see that there have been discussions about this in the past and that telerik recommend that 3 different custom skins be developed and have a switching mechanism to achieve this. My graphic designer isn't very happy about having to make 3 skins, so I'm trying this approach with jquery:
When I do this, the buttons (and tabs) look slightly wrong as demonstrated in the attachments (using the demo site)
I can adjust the padding to the background position of the button and apply a different css class to the body for each zoom level, but this just seems messy.
Is there a fix for this issue, or would you recommend that I force my designer to make 3 skins?
Thanks for your time.
I'm developing a system at present, and one of the requirements is that the site can be resized using a selector. I can see that there have been discussions about this in the past and that telerik recommend that 3 different custom skins be developed and have a switching mechanism to achieve this. My graphic designer isn't very happy about having to make 3 skins, so I'm trying this approach with jquery:
<
script
type
=
"text/javascript"
>
$(document).ready(function () {
$("#textZoom1").click(function () {
$("body").css("zoom", "1");
$.cookie("HRI-ZoomLevel", "1");
});
$("#textZoom2").click(function () {
$("body").css("zoom", "1.1");
$.cookie("HRI-ZoomLevel", "1.1");
});
$("#textZoom3").click(function () {
$("body").css("zoom", "1.2");
$.cookie("HRI-ZoomLevel", "1.2");
});
var zoomLevel = $.cookie("HRI-ZoomLevel");
if (zoomLevel != null) {
$("body").css("zoom", zoomLevel);
}
});
</
script
>
When I do this, the buttons (and tabs) look slightly wrong as demonstrated in the attachments (using the demo site)
I can adjust the padding to the background position of the button and apply a different css class to the body for each zoom level, but this just seems messy.
Is there a fix for this issue, or would you recommend that I force my designer to make 3 skins?
Thanks for your time.