Hello everyone,
I am trying to have the pictures in my blog resize according to the screen resolution of the visitors.
I would like to keep it as it is for a screen height of 1000 and more.
But for less then 1000 I would want the pictures to be 700 in width.
So I thought of using multiple css...
How can I script this in my header, I know there is a javascript for html to call different css:
<script type="text/javascript">
if(screen.width<=1000)
{
document.write("<link rel='stylesheet' type='text/css' href='style_1000.css' />");
}
if(screen.width>1000)
{
document.write("<link rel='stylesheet' type='text/css' href='style.css' />");
}
</script>
But I don't know how to do that in PHP in my header
Or maybe there is a plugin that allows the resizing of pictures according to screen resolution, that would be great.
Please help