responsive-design

How to make two images responsive with fixed height and plain CSS?

流过昼夜 提交于 2019-12-11 05:59:27
问题 I want to make the two images responsive with a fixed height similar to here. I created the jsfiddle Somehow the line break is added too soon. I tried to add width=auto however this did not work. Moreover it would be good if after a certain width it would become a single column. 回答1: It's not super clear what you're asking but there are a few ways to make images responsive with a fixed height and fluid width. The easiest of which is to use the object-fit: cover rule. Try adding object-fit:

iOS zooming issue on responsive site from portrait to landscape break points

妖精的绣舞 提交于 2019-12-11 05:53:32
问题 So I'm having a strange issue with my responsive websites when switching from portrait to landscape mode on my iOS device. You can take a look at the live site here: http://www.aptify.com If you view the site in portrait mode, then rotate the iOS device it's zoomed in. I currently have the following meta: <meta name="viewport" content="width=device-width; initial-scale=1.0" /> I found one question similar to this: Media Queries - Landscape Mode on iPhone way too oversized, however the

Responsive Table Display

五迷三道 提交于 2019-12-11 05:38:56
问题 I'm trying to make a table display more responsively. I've tried following CSS-tricks ( https://css-tricks.com/responsive-data-tables/) method for the two column layout, and have gotten it to work for the most part, but my problem lies with the columns that span multiple rows not repeating in the mobile view and causing the alignment of the pseudo headers to mess up. Here is a replication of the HTML I'm using: <table> <thead> <tr> <th>A</th> <th>B</th> <th>C</th> <th>D</th> <th>E</th> </tr>

CSS Responsive issue with iPad Mini in NON-landscape mode (Vertical)

眉间皱痕 提交于 2019-12-11 05:31:17
问题 I'm having an issue with media query. I set the first on at 770px, so that it would re-size without putting the sidebar underneath the main content. I then set the second media query at 740 (it was at 450, but I changed to 740 for the iPad Mini), thinking this would send the side-bar underneath the main content. (meaning that if held the iPad Mini vertically, it would look the same as it does on iPhone). This works on my iPhone, but on iPad mini it keeps the 770px settings when viewed

How to grow the width of a div as the width screen decreases using Css?

只愿长相守 提交于 2019-12-11 05:28:34
问题 It does possible to adjust the width of a div as the width property of the browser is decreasing or increasing using pure Css? I mean, if I have an element like this in a resolution: div { width: 20%; } Then, I want to increase 1% the width of the div for every 10px that I decrease the width browser, it's possible using just Css3? 回答1: Decreasing width as window is descreased is easy with CSS. Increasing width as window is decreasing is not. Its possible to use a css only solution, but it

Safari 10.0.1 not choosing correct image from srcset

亡梦爱人 提交于 2019-12-11 05:13:32
问题 Safari is not handling srcset correctly for some of the images on my site and is completely ignoring the rules I set in the sizes attribute. If you click on the link below and view it in Safari, you will see the images at the top are being displayed at their original sizes rather than the size I generated them as. However, at the bottom of the page it's worked? And has been downloaded as westfield-house-large-bottom-955x637.jpg. I've read that Safari is terrible at handling srcset and size

Responsive Design in Email - Issue with attribute selectors in Yahoo

廉价感情. 提交于 2019-12-11 05:04:40
问题 I'm trying to create a responsive email template to send to my company's users. Our list contains users from all sorts of ISPs like Gmail/Yahoo, etc. We have the responsive design working in most instances but we are having issues with Yahoo. The issue is that in Yahoo, it ignores the media query css wrapper and uses the responsive css on the desktop version. In the below example @media only screen and (max-width: 580px) gets ignored and our email displays with a width of 320px on desktop.

Responsive submenu doesn't show on small screen

不打扰是莪最后的温柔 提交于 2019-12-11 04:46:37
问题 My first question here although I found a lot of good answers already. I have a simple flex-box based menu that stacks when it goes responsive but the submenus for some reason don't show listed below the main link (e.g. Graphical Design). Instead, only the first submenu item covers the main link. Also, after being toggled, the 3 lines disappear and "About" and "Contact" show white background when hovered over instead of blue-green as the rest. I've been struggling with this for 5 days already

Page doesn't scale 100% on Chrome Dev Tools devices

点点圈 提交于 2019-12-11 04:28:15
问题 The page done on bootstrap seems to be not scaling 100% on google chrome dev tools devices mode, regarding the responsive design. It seems to leave couple pixels on each side. The meta tag is <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> , same without "shrink-to-fit=no". I include the image below: Is there anything that could be done to make page scale 100%, not leaving sides out of the browser width? 回答1: Most likely your html code is not per

Strategies for switching between desktop and mobile version of the website

时光总嘲笑我的痴心妄想 提交于 2019-12-11 04:03:16
问题 researching a couple of hours now, i want to find a clever solution for giving a user the opportunity to switch to the desktop version of the current mobile version of a website. Technically that menas that i either have a dedicated mobile site or a single site with media queries making the design responsible. For me the last option of a single website with responsive design is of great interest. 1.) What ways can you think of to manipulate design by the user? 2.) Should it be on the server