media-queries

media query for phone works but not tablet

╄→гoц情女王★ 提交于 2020-01-26 04:20:28
问题 I am using media query in my css and I was able to adjust it to look good on mobile on the page I'm working on, but the tablet keeps the font the same size and doesn't adjust like I want. How can I have one single media query that adjusts both for tablet AND phone? <style> .kppr { margin-top: -8%; margin-left: 8%; } .kppr p { color: #89d4e8; font-size: 400%; font-weight: bold; } @media only screen and (max-width: 700px){ .kppr { margin-top: -15%; } .kppr p { font-size: 125%; } .kppr img {

Responsive layout for mobile tablet

跟風遠走 提交于 2020-01-25 22:04:19
问题 I created an ecommerce page and added @media to make the page responsive. but its not working fine can you please take a look where I am doing mistake more over if my coding style is wrong then please correct . More over my images are not also responsive too.. Here is the code @media(min-width:1200px){ *{margin:0; padding:0;} #header{ width:100%; height:54px; background-color:#090; position:fixed; z-index:2; } #wrapper{ width:80%; background-color:#F7F4F4; margin:auto; } #category1{ width:100

Responsive layout for mobile tablet

故事扮演 提交于 2020-01-25 22:03:34
问题 I created an ecommerce page and added @media to make the page responsive. but its not working fine can you please take a look where I am doing mistake more over if my coding style is wrong then please correct . More over my images are not also responsive too.. Here is the code @media(min-width:1200px){ *{margin:0; padding:0;} #header{ width:100%; height:54px; background-color:#090; position:fixed; z-index:2; } #wrapper{ width:80%; background-color:#F7F4F4; margin:auto; } #category1{ width:100

media query is not working on ie10

你说的曾经没有我的故事 提交于 2020-01-25 11:52:17
问题 i made a responsive site and i'm using media queries in my css. everything is looking good on chrome and FF but ie10 is ignoring all my queries. i have <meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1"> on the header because the site is set for tablets. i tried to delete the meta tag and it didn't solve the problem. i tried almost everything: @media only screen and (max-width: 800px), only screen and (max-device-width: 800px) @media only screen and (max

media query is not working on ie10

妖精的绣舞 提交于 2020-01-25 11:52:05
问题 i made a responsive site and i'm using media queries in my css. everything is looking good on chrome and FF but ie10 is ignoring all my queries. i have <meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1"> on the header because the site is set for tablets. i tried to delete the meta tag and it didn't solve the problem. i tried almost everything: @media only screen and (max-width: 800px), only screen and (max-device-width: 800px) @media only screen and (max

What happens when media queries aren't supported?

 ̄綄美尐妖づ 提交于 2020-01-24 12:41:13
问题 Say for example I had this: @media screen and (min-width: 480px) { .example { background-color: red; } } What if I view this page in Internet Explorer 8? Will it still color .example red even though the width is over 480px , or will it just ignore the stuff in the media query? (I can't test it because I don't have IE8 :P) 回答1: I've just tried it out in IE7/IE8 browser/document modes (IE10), and it completely ignores all CSS inside Media queries for me as I assumed it would do. .example turns

Alter page style because of screen inches

给你一囗甜甜゛ 提交于 2020-01-17 15:40:32
问题 I'm doing a program where every time a user enters the page, a message of 'Hello' appears for 2 seconds. I have set the message to appear in a position of ‘left: 75%’ and ‘top:0’ The problem is that I fixed that position when I was testing the style on a 25 '' screen but when I went to my laptop that is 14 '' the message has 'hidden' and I can only see part of it. Is there any way that the position of the posted message works for all the inches of the screens? How could I solve this? Can

Change bootstrap's menu break point

纵饮孤独 提交于 2020-01-17 12:24:11
问题 So, I'm working with the latest version and I don't know how change the break point of menu cause I tried change that queries on bootstrap.css (wherein I want a break in width:1010px} : @media (min-width: 768px) { .navbar-collapse { width: auto; border-top: 0; -webkit-box-shadow: none; box-shadow: none; } and @media (min-width: 768px) { .navbar > .container .navbar-brand, .navbar > .container-fluid .navbar-brand { margin-left: -15px; } } .navbar-toggle { position: relative; float: right;

CSS Media queries and div elements

孤者浪人 提交于 2020-01-17 04:36:04
问题 Is there any functionality similar to @media queries in CSS to dynamically change the styling AND works in a element? I wrote the media queries to hide certain elements if the available width is too low, but when I place these elements in a div, the elements that are supposed to hide show up. When I searched in similar posts, it looks like @media queries only work with screen size, but I have not found a solution to this question. I cannot show the exact code I am using (due to proprietary

Overwrite !important rule set within media-query? !unimportant?

久未见 提交于 2020-01-15 11:54:51
问题 Imagine this … @media screen and (min-width: 55.5em) { aside[role="attend"] { margin:0 !important; } } @media screen and (min-width: 61.5em) { aside[role="attend"] { margin:0; /* still !important but shouldn't be */ } } Is there any way to overwrite or "remove" the !important declaration so it's not still applied within the higher min-width value? 回答1: No; the way the cascade works, there is no way to undo an !important declaration or make it "unimportant". This is regardless of whether the