media-queries

jQuery accordion hiding tabs in CSS

≯℡__Kan透↙ 提交于 2019-12-11 14:49:16
问题 I have a jQuery UI accordion with Markup structure <div id="accordion2"> <h3>title</h3> <div>stuff texty</div> <h3>title2</h3> <div>stuff texty</div> </div> However, the second tab of the accordion is in a plainer format than the first (i.e. it has less pictures and is hence more mobile friendly). I am want to use a media query to hide the first tab and its contents when screen width is less than 640px. I tried giving the first h3 and the first div tags a class of first and then used @media

How to remove a html table particular column to make other datas visible(responsive) using media queries?

喜你入骨 提交于 2019-12-11 14:27:10
问题 I have a table I want to make it look good in mobile view. What I thought is I can remove the unwanted data so that remaining data will be visible in mobile devices. So I decided to give display:none; to unwanted column which is first in this case. I have a problem in doing this. When I give display:none to particular column data I get the empty space for the upper column because it doesn't have class to give display:none; I cannot edit the source of markup, so is there a way to remove the

Safari 100% height and width exception

[亡魂溺海] 提交于 2019-12-11 13:36:44
问题 I've got a logo that I want to resize to full width and relative height using media queries which works fine in (almost) every browser except Safari. Safari renders the image over the whole screen instead of keeping the aspect ratio. My HTML <div id="logo"><a href="http://www.stilundso.de/"><img src="http://lorempixel.com/output/technics-h-c-200-206-2.jpg" width="200" height="206"></a></div> My CSS div#logo {background:#fff; width:200px; border-right:1px solid #FFF; height:206px; position

Why doesn't my @media screen save

*爱你&永不变心* 提交于 2019-12-11 12:29:19
问题 I have been stuck with this problem or the past hour and its really annoying me. I am making my website responsive to different screen sizes every time I write the code for it, I test it and it works. Then if I close the browser and reopen or reopen the code editor (brackets) the page loads like nothing happened. So I have re write everything again. This problem keeps recurring and I don't know why it wont just save. I can place my code since its over 2000 lines and I have just moved on to

Rails 4 Bootstrap 3.3, media queries causing error

早过忘川 提交于 2019-12-11 11:42:32
问题 I am a newb, but I'm trying something that I think should be easy, but I'm getting a rails server error. I want my text to break into columns for larger devices. I have in my html: <div class="col"> <p> Ricter Web Printing... </p> </div> my css.scss has: .col { @media (min-width: @screen-hs-min) { /* rules for mobile horizontal (480 > 768) */ -webkit-column-count: 1; /* Chrome, Safari, Opera */ -moz-column-count: 1; /* Firefox */ column-count: 1; } @media (min-width: @screen-sm-min) { /*

Question on CSS Media Query

自古美人都是妖i 提交于 2019-12-11 11:02:50
问题 I have a question on CSS media query.. I am implementing a HTML page using desktop.css and ipad.css and want them in 2 separate file.. In desktop.css, I use @import url("ipad.css"); and also add @media not only screen and (device-width:768px) block which has the actual desktop styles.. So desktop.css looks like @import url("ipad.css"); @media not only screen and (device-width:768px) { //Desktop styles } Now while the iPad CSS gets applied correctly on the iPad, for some reason the CSS for

using css media queries with an iframe

为君一笑 提交于 2019-12-11 09:49:45
问题 I have a page that loads an iFrame (fancybox). My CSS media queries work fine on the parent pages but when the content is called within the iFrame, the media queries don't work. (the content within the iFrame has it's own stylesheet). How do i get the media queries to work within the iFrame? FYI - My width and height is being set by the javascript that calls 'fancybox' which creates the iFrame and is set using percentages. 回答1: Unless I'm very much mistaken, you have very little 'outside'

how to get orientation:portrait mode with meta viewport with a fixed height

孤街醉人 提交于 2019-12-11 09:27:16
问题 time for my first own stackoverflowquestion, since this thing is driving me crazy the whole day now. i borrowed an ipad today to test a website wich comes with additional phone and an tablet-versions. (there's only safari on it) the layout is a comlete static thing with some graphics and they want it 1:1. so i learnd about mobile devices, added a <meta name="viewport" content="width=x" /> and got a perfect version for the phone. but when it comes to the tablet i ran into trouble. the tablet

How to use Media Queries in JavaScript

风格不统一 提交于 2019-12-11 09:09:05
问题 I know little to nothing about JavaScript so I'm not even sure if my question makes sense. My point however is how to apply the same principle of media queries to change particular values on a script depending on the width of the screen. In the following example, I'm using a scroll spy active menu with a negative scrolling of -100px for Header compensation. This offset is necessary because the header has a fixed position. I need the offset value to change to 0px if window is smaller then

Images not changing on mobile devices

别等时光非礼了梦想. 提交于 2019-12-11 09:08:59
问题 I want the images im using as the background to change to smaller versions through css media queries. I'm not quite sure why it is not working on mobile devices. @media only screen and (min-width: 375px) and (max-width: 667px) and (orientation : landscape){ #slide1 { background: url(../images/slides/mobiletest.jpg) center center no-repeat; -webkit-background-size: 100% 100%; -moz-background-size: cover; background-size: 100% 100%; background-attachment: fixed; width: 100%;}} 回答1: This could