media-queries

Trying to fix my navigation bar for mobile devices

烂漫一生 提交于 2019-12-25 07:32:16
问题 I'm designing a responsive website and right now i have bit of a problem. Basically logo is set in the middle of the navigation but when i tried viewing it in mobile or set my browser for mobile it looks like this. http://i255.photobucket.com/albums/hh140/testament1234/responsive_zps3a22ab61.jpg This is what it looks like in full screen. http://s255.photobucket.com/user/testament1234/media/desktop_zps4c60a09c.jpg.html How do I set the logo on top of the navigation when viewed in a mobile

IE7 on XP render the media=“print” stylesheets

走远了吗. 提交于 2019-12-25 07:16:25
问题 In my web page, I'm using 2 stylesheets : <link rel="stylesheet" href="css/screen-layout.css" media="screen" type="text/css" /> <link rel="stylesheet" href="css/print-layout.css" media="print" type="text/css" /> inside print-layout.css there is : .ui-dialog * {display: none !important;} When I viewed my webpage on IE7, it's supposed to ignore the media="print" one, but it didn't, it applied the display: none , causing all the elements to be hidden. And in the debugbar plugin for IE7, I can

Media Queries left blank - could this cause problems?

泪湿孤枕 提交于 2019-12-25 05:53:18
问题 Im curious about leaving the @media definitions empty in my stylesheet and if this could cause some problems rendering the page? I only want to include those queries for presentation - to show them, that it's possible to go responsive with the queries enabled. here is my css: /*************************************************************************************************/ /* Media Queries - Responsive Layout Definitionen */ /******************************************************************

Media Queries left blank - could this cause problems?

我是研究僧i 提交于 2019-12-25 05:53:01
问题 Im curious about leaving the @media definitions empty in my stylesheet and if this could cause some problems rendering the page? I only want to include those queries for presentation - to show them, that it's possible to go responsive with the queries enabled. here is my css: /*************************************************************************************************/ /* Media Queries - Responsive Layout Definitionen */ /******************************************************************

whats wrong with the media query?

二次信任 提交于 2019-12-25 05:27:30
问题 W3C standards doc says: User agents are to represent a media query as "not all" when one of the specified media features is not known. Then it gives following example: <link rel="stylesheet" media="screen and (max-weight: 3kg) and (color), (color)" href="example.css" /> It then says that the first media query will be represented as "not all" and evaluate to false and the second media query is evaluated as if the first had not been specified, effectively. Why is it like that. I hope that's

Control which css media queries are applied via javascript

会有一股神秘感。 提交于 2019-12-25 04:34:26
问题 Is a there way to control which css media query a browser obeys using javascript? For example, if have the following css: p { color : red; } @media (max-width: 320px) { p { color: blue; } } @media (max-width: 480px) { p { color: green; } } Assuming I open the page in a desktop browser with width > 480px, I'll see red paragraphs. I would like to call a javascript function to have the browser obey the 320px media query. For example, call a function below that would turn paragraphs blue:

Div not letting 100% of width when resizing browser

风流意气都作罢 提交于 2019-12-25 01:48:56
问题 I remember it used to work when I set the width to 100% once resized at certain pixels from desktop to tablets to mobile. Just don't know why mine won't work this time around for some reason. Trying to get header, content, and footer to be 100% of its width when resizing its pixels. FYI, haven't got to the footer yet. *. { width: 100%; } body { font-family: Andale Mono, monospace; } p { font-size: 24px; } .header { padding: 200px; text-align: center; background-color: #001f4d; } .header h1 {

Background-image won't resize with an @media query?

僤鯓⒐⒋嵵緔 提交于 2019-12-25 01:44:13
问题 So I have a background-image behind various texts. In CSS it's set to background-size: 1000px; I'd like it to resize(enlarge) when I widen the viewport window to @media only screen /* Tablet */ and (min-width: 768px) whilst still remaining within the confines of its container (keeping the height and crop is important. I just want to grow the picture to fill the left and right dead space.) I've tried the obvious background-size: 2000px; however, the background-image is sticking to its original

Responsive CSS: em's wont resize lower than <0.5em

牧云@^-^@ 提交于 2019-12-25 01:33:02
问题 I am coding my first responsive layout using CSS @media queries. I've added the <meta name="viewport" content="width=device-width"> to my html so I have a strict series of device-width based font-size layouts. And, I'm using em 's to (hopefully) give the most consistant browser resizing with html, body {width/height:100%; font-size: 1em} . In my smallest case, I want to put the <h2> tag at a relatively small em in the range of < 0.5em. However, once I go below that amount it no longer resizes

initial-scale = 1.0 + width= device-width not fitting the whole screen on any mobile

心不动则不痛 提交于 2019-12-24 23:51:38
问题 So I'm pretty stumped right now. I'm building a responsive website using the theme Delicate. It comes in built with the meta tag Which I was under the impression would set the entirety of the content on the screen width. On my phone I have to zoom out to have the content displayed somewhat nicely. I've tried changing the initial-scale value to 0.65 which made the site look nice on my personal phone which I am using to develop but it doesn't work well on the iphone 6 or other devices. I've