Foren / Cotonti / Support / Image Resizing

Franco
#31339 7. November 2011, 18:41

but isn't that to make the entire website smaller? the only thing that looks bad are the images on the news...

 

i'll see if i can adapt it to work only there

Added 51 minutes later:

ok.. did it another way....

 

in the index i placed this

<SCRIPT LANGUAGE="JavaScript">


<!-- Begin
function redirectCSS() {

if (screen.width =< 1024)
      {document.write("<link href='/skins/senator/css/red.css' rel='stylesheet' type='text/css'>")}

else
      {document.write("<link href='/skins/senator/css/blue.css' rel='stylesheet' type='text/css'>")}
}
redirectCSS()
// End -->
</script>

Added 36 seconds later:

and then in the other css i set the image widht with this

 

img {  
max-width:400px;
}  

Dieser Beitrag wurde von Franco (am 7. November 2011, 19:34, vor 13 Jahre) bearbeitet