Forum Moderators: open
(max-width:960px)
@media screen and (max-width:480px)
{
background: url('images/small.png');
}
@media screen and (max-width:480px)
{
body {background: url('images/small.png');}
}
@media screen
{
body {background-color: #CCC;}
}
@media screen and (max-width:1200px)
{
body {background-color: gray;}
}
@media screen and (max-width:960px)
{
body {background-color: #F66;} /* red */
}
@media screen and (max-width:700px)
{
body {background-color: #99F;} /* blue */
}
@media screen and (max-width:480px)
{
body {background-color: #696;} /* green */
}
<link rel = "stylesheet" type = "text/css" media = "screen" href = "null.css">
<link rel = "stylesheet" type = "text/css" media = "screen and (max-width:2000px)" href = "one.css"> <link media="only screen and (max-device-width: 480px)" href="small-device.css" type= "text/css" rel="stylesheet">
[edited by: swa66 at 8:54 am (utc) on Oct 8, 2012]
[edited by: incrediBILL at 5:27 pm (utc) on Oct 8, 2012]
[edit reason] disabled smilies [/edit]
I was hoping to avoid css as it makes it much more complicated. Is there some sort of java that I can put into the html body?
<link rel = "stylesheet" type = "text/css" media = "screen and (max-width:2000px)" href = "one.css"> I was hoping to avoid css as it makes it much more complicated. Is there some sort of java that I can put into the html body? I don't know the correct coding, but something like this:
My sites need a serious update.