responsive-design

Angular 2 Responsive Header - Expand/toggle button not working in mobile view

左心房为你撑大大i 提交于 2019-12-13 00:15:49
问题 The toggle button appears in mobile view but it's not clickable. In angular appDropdown is used to define a drop down button. Is there a similar approach to fix the toggle button? Unfortunately I cannot show images here but there's another problem with "Administration" drop down button. It changes colour to grey when I hover over the internal <li> (such as "Registration"...). Adding href= "#" removes the unwanted color change but this refreshes the whole page when its clicked. Here's the HTML

Responsive navigation - keep links the same height when some wrap?

本小妞迷上赌 提交于 2019-12-13 00:14:45
问题 Im making a menu for a responsive site. Im making the menu the full site width and each link 33%. For wide screens everything is fine. The links have varying link text, so for smaller displays some links will wrap before others. How can I make the links stay the same height (the 3rd example in my image below)? Ideally the entire area thats grey in my example would be a clickable link. http://codepen.io/anon/pen/HokAh/ <ul> <li> <span> <a href="#">Link 1</a> </span> </li> <li> <a href="#">Link

responsive images inside a full width div

醉酒当歌 提交于 2019-12-12 22:49:35
问题 I have this markup: <div class="girls" style="text-align:center; margin-top:100px"> <img src="images/1.png" /> <img src="images/2.png" /> <img src="images/3.png" /> <img src="images/4.png" /> and this css (I'm using Twitter Bootstrap) : img { height: auto; max-width: 100%; vertical-align: middle; border: 0; -ms-interpolation-mode: bicubic; } The images have equal width and height and are displayed inline. On my resolution are ok, fit the entire width (1366px), but on lower resolutions the

Is it still necessary to implement a Font Size Switcher for responsive design?

梦想与她 提交于 2019-12-12 19:36:16
问题 In the old times before responsive design, people used to put a font size switcher (like the image attached) to allow changing the font size of a web site. Questions: Is there any good website explain why we should or should not do it any more? Would it be considered as not implementing accessibility (e.g. failed by the Australia Accessibility Standards) on a web site if not providing a font size switcher? According to Responsive typography, the font size should depend on the reading distance

How can I gracefully degrade CSS viewport units?

落爺英雄遲暮 提交于 2019-12-12 18:17:06
问题 CSS viewport units ( vw , vh , vmin , vmax ) are great, and I want to start using them for fonts -- but I noticed here that they aren't that widely supported. I tried to google any best practices for graceful degradation in unsupported browsers, but couldn't find anything useful. Are there any better ways beyond doing something like: h1 { font-size: 120%; /* for unsupported browsers */ font-size: 5.3vmin; /* for supported browsers */ } Thanks in advance! 回答1: Native usage You'll at least want

Most efficient way to cater for different web devices?

霸气de小男生 提交于 2019-12-12 17:05:05
问题 Folks voting to close as not constructive , read the whole thing please. Specific questions at the end. Looking for real world examples and approaches. Context With numerous devices like smart-phones, tablets being used increasingly to access the web its important to plan, design (responsively) and develop (esp. your front end) to give the devices a fast and tailored user experience. There's some amazing sites being built. Have a look at mediaqueri.es (resize your browser) We see approaches

How to use percentage for font in different screen size

给你一囗甜甜゛ 提交于 2019-12-12 14:23:37
问题 I have the following DIVs: <div class="tckLeftHolder"> <div class="tckLeftContents"> <span>URGENT CARE WAIT</span> </div> </div> CSS: .tckLeftContents { text-align: center; width: 90%; padding: 0 0 0 10%; height: 35px; overflow: hidden; } .tckLeftHolder { float: left; width: 25%; height: 35px; line-height: 17px; vertical-align: middle; background: #EA7C30; border-top-left-radius: 10px; border-bottom-left-radius: 10px; color: #FFFFFF; font-family: Verdana; font-size: 10px; overflow: hidden;

Centering multiline floated elements

家住魔仙堡 提交于 2019-12-12 13:38:05
问题 I've been trying/searching for a while, but I can't make it work. <div class="wrapper"> <div class="project-container"> <ul> <li><div class="project-box"></div></li> <li><div class="project-box"></div></li> <li><div class="project-box"></div></li> </ul> </div> </div> I managed to center floated elements (like in here http://jsfiddle.net/z7pqP/2/) following this explanation (http://solstice.co.il/blog/2008-02-26/horizontally-centering-content-dynamic-width-css). However, if the floated

twitter bootstrap resize the text size on phone screen

萝らか妹 提交于 2019-12-12 13:24:23
问题 I am new to twitter bootstrap. I am hiding some <tr> on phone screen with the help of class="hidden-phone" But I want to resize the shown text to fit to the screen How can I resize the text in spans like below on phone screen? <span>test test test test test</span> 回答1: This is how you work with mobile viewport in twitter bootstrap (or any other solution for that matter) @media (max-width: 480px) { body { font-size: 11px; } .hidden-phone { display: block; } } 来源: https://stackoverflow.com

How to make Chart JS responsive?

 ̄綄美尐妖づ 提交于 2019-12-12 12:26:52
问题 I am using Chart.js with Twitter Bootstrap template. The Charts are not sized correctly if I don't mention a height and width for Canvas. But if I specify width and height then the charts are not responsive. How can I solve this issue? 回答1: Chart.js has a property (responsive) that you can configure at the global or chart level via options that will make the chart responsive. See http://www.chartjs.org/docs/#getting-started-global-chart-configuration > responsive // Boolean - whether or not