Web StuffWeb-design and Templateswebsite size in browser

12 Apr 2010, 05:38

how can i change my website view in browser? thanks its very small

Rating 0 Comments 3
Deleted comment
kopite
0
kopite 06 Jun 2011, 10:00 #

use jquery to check the width of the page...

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
function checkwidth(){
var screenWidth =$(window).width();

if( screenWidth > 1000)
{
$('#container').css('width', '1000px');
}
$('#container').css('width', '800px');
}
checkwidth();
$(window).resize(checkwidth());
)};

</script>

junkieG
0
junkieG 07 Jul 2011, 01:50 #
what is the benefit of using this? care to elaborate more?

from malaysia
Reply

You have to login or register to post comments.

DiegoLuisito
DiegoLuisito
0 ♠ 2 ♣
Tweet:


Bookmark and Share