- This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
Viewing 9 posts - 1 through 9 (of 9 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi,
I just built a responsive site using basic media query.
@media screen and (max-width: 960px) {
}
And also write codes for the screens (850, 480) using media query.
It’s looks fine in browsers. When i reduce the size of browser, it’s works fine. But in devices. It’s not showing the responsiveness. I use a i frame – HTML for a pop up html5 animation.
you’ll need something like this to tell the browser not to try and pretend its bigger than it actually is
<meta name="viewport" content="width=device-width, minimum-scale=1.0">
I think it’s because you have forgotten to use this “meta” code in the header of your webpage.
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Nop…. I used it…
Here is the code used in top
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="js/css3-mediaqueries.js"></script>
<title>Pinnacle Cases</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
Hmm, can you maybe sent a link to your webpage, i think it would be easier to help you then? ;-)
Oh…I forgot it… here is the link
When i look in your code on the web page, i discover that you haven’t used
<meta name="viewport" content="width=device-width, initial-scale=1.0">
in the index file? ;)
Thanks man… Now it’s works.. Thanks a lot.
No problem, we are here to help each other ;-)