Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Ta f*** aqui galera, alguém pode me ajudar?
Estou montando um site http://www.mestresergiosantos.com.br e como esta difícil alinhar o site, gostaria que me ajudassem.
Ja tentei detectar a resolução da tela
<script type="text/javascript">
alert(screen.width + screen.height);
switch (screen.width + screen.height) {
case 1792:document.write('<link rel="stylesheet" type="text/css" href="estilos/1792.css" />');break;//1024x768
case 2080:document.write('<link rel="stylesheet" type="text/css" href="estilos/2080.css" />');break;//1280x800
case 2134:document.write('<link rel="stylesheet" type="text/css" href="estilos/2134.css" />');break;//1366x768
case 2340:document.write('<link rel="stylesheet" type="text/css" href="estilos/2340.css" />');break;//1440x900
case 2304:document.write('<link rel="stylesheet" type="text/css" href="estilos/2304.css" />');break;//1280x1024
case 2128:document.write('<link rel="stylesheet" type="text/css" href="estilos/2128.css" />');break;//1360x768
case 1624:document.write('<link rel="stylesheet" type="text/css" href="estilos/1624.css" />');break;//1024x600
case 2500:document.write('<link rel="stylesheet" type="text/css" href="estilos/2500.css" />');break;//1600x900
case 2000:document.write('<link rel="stylesheet" type="text/css" href="estilos/2000.css" />');break;//1280x720
case 2016:document.write('<link rel="stylesheet" type="text/css" href="estilos/2016.css" />');break;//1152x864
}
</script>
e isso não funcionou e alinhar colocando no lugar de pixel a porcentagem não posso porque a imagem fica deslizando sobre a tela.
Carregando comentários...