responsive-design

Responsive sidebar and input

纵然是瞬间 提交于 2019-12-11 14:16:47
问题 I have an issue with a responsive menu containing an input. The original thread is here: Fixed Responsive Top Nav / Off Canvas Nav with Single DOM Element If I add an extra li, with an input (for a search field), I get a jump if I click the input. This happens only if I have scrolled before opening the sidebar. ul class="left"> <li class="divider divider-first"></li> <li class="active"><a href="#_" class="toggle-nav">Main Item 1</a></li> <li class="divider"></li> <li><a href="#_" class=

Bootstrap Responsive layout hide nav on iPad

陌路散爱 提交于 2019-12-11 13:50:09
问题 Bootstrap has an amazing responsive layout system, however, sometimes its sizing with retina screens isn't quite 'right'. For example, my retina iPad has a huge screen size but the actual display isn't the same. On the iPad I'd like to hide the left navigation component and use the expand button in the header control to show/hide, however, my iPad retina hits the large screen size and therefore is not hidden. I've got my left nav using the bootstrap 3 classes: nav-left nav-collapse and I

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

Remove list items from select menu with jQuery

社会主义新天地 提交于 2019-12-11 13:32:38
问题 I have a tiny bit of script that allows the user to resize the window to convert an unordered list into a select menu. However, I'd like to remove any nested unordered lists from the select menu. DEMO: http://jsfiddle.net/k7272/ So basically using the example above, the part 'test' wouldn't appear in the select menu, but would still appear in unordered list. How do I achieve this? Here is my Javascript: // DOM ready $(function() { // Create the dropdown base $("<select />").appendTo("nav"); /

Android responsive Website is shown in Browser, but not in Webview

坚强是说给别人听的谎言 提交于 2019-12-11 12:37:51
问题 in my app I have a webview, which should display a responsive website. The device width for showing the mobile version is limited by 767 px, so the smartphones with a 1280x720 resolution displays the mobile website correct. When I now open the app on my s4 (resolution: 1920 x 1080) I expect the webview, to show the normal desktop website and it does. But when I open it in normal web browser like Chrome, the responsive layout is shown. Can anyone explain that behaviour? Is it possible to also

Responsive layout: middle content of centered div with fixed width must become the right column without overflowing

我是研究僧i 提交于 2019-12-11 12:20:04
问题 I have a centered div with a width of 700px, with a middle part that must become a right column when viewport is > to some width. I used absolute positioning for that purpose but like this column must be responsive, I don't know its width. First, I would like to know what is the rule for how behave the width of absolute positioned elements which are out of their relative parent. Absolute positioning should use the width of their relative parent but when the element is out of that parent, the

Converting responsive bootstrap design to static

半腔热情 提交于 2019-12-11 12:19:00
问题 I have designed a website in responsive design using bootstrap Twitter. It is a very complex page responsive wise, with really a lot of data, tables, divs, js … It works great on a computer; however as soon as I try to access it on a mobile phone, it doesn't work. It loads all the data but it seems like the phone is lagging because of the responsive design. The main issue is that I cannot scroll through the web page, it just get stuck on a section of the page. I do not mind having a static

Responsive Picture Gallery

非 Y 不嫁゛ 提交于 2019-12-11 12:17:17
问题 I'm working on a responsive picture gallery and I'm looking to modify some code I found. I've made a jsFiddle to show you what I'm working with. jsFiddle I want to be able to have a couple buttons below each image in the gallery. As you notice, if there is an image underneath an image the image above has its text cut off. I've thought about adding a margin bottom to .box as such: .box { float: left; position: relative; width: 14.28%; padding-bottom: 14.28%; margin-bottom: 30px; } jsFiddle

What´s best practice to responsive design? Use % or em and rem?

送分小仙女□ 提交于 2019-12-11 11:28:44
问题 What´s best practice for layout responsive?, I read some articles that´s recommend use em and rem´s for layout, foundation 5 for example use this practice. What do you think? 来源: https://stackoverflow.com/questions/27265868/what%c2%b4s-best-practice-to-responsive-design-use-or-em-and-rem

Hiding overflow of absolutely positioned div disrupts Javascript

旧巷老猫 提交于 2019-12-11 11:26:41
问题 I got some help with a solution to make this "arrow" align with the middle of the objects above it on click...it was working. Since then, I have done some more work on the design and needed to set the overflow of the "wrap" div to position:relative in order to hide x-axis overflow of the arrow...that works, but: Now the alignment has gone off. I can't figure out why as I am no good with jQuery :( One important note: this site is responsive, and adjusting the browser width is now doing crazy