responsive-design

makes nav-pills collapsable just like nav-bar in bootstrap

左心房为你撑大大i 提交于 2019-12-17 17:45:11
问题 we are developing an application and we are using twiiter bootstrap 3 we have created a navigation bar with nav-pills <ul class="nav nav-pills head-menu"> <input type="hidden" id="selected_menu_item" value="=$selectedMenuId; ?>" /> <li> <a href="#" id="welcome"> Welcome text ... </a> </li> <li><a href="#" id="kitchen">Kitchen</a></li> <li><a href="#" id="programma" > Programma</a></li> <li><a href="#" id="foodart" >foodart text</a></li> </ul> can anyone with bootstrap experience help us, if

Creating a diagonal line/section/border with CSS

泪湿孤枕 提交于 2019-12-17 17:38:28
问题 I am trying to create a diagonal line on a webpage, to act as a section/section break. This is essentially a split colour section. I cant use an image as if the page gets enlarged, the image is going to pixelate. So i need to be able to draw a diagonal line directly at the bottom of the div, like the image below. I have tried using a border, however i cannot get the actual break to be in the middle, rather than the right or left hand side. Is there a way to draw diagonal lines in CSS? As you

Using a different font with twitter bootstrap

寵の児 提交于 2019-12-17 17:38:15
问题 I want to use a different font for my website, which is not a regular webfont. I have created EOT files already. Now how can I integrate those fonts with twitter bootstrap ? Can anyone help ? Thanks 回答1: The easiest way I've seen is to use Google Fonts. Go to Google Fonts and choose a font, then Google will give you a link to put in your HTML. Then add this to your custom.css: h1, h2, h3, h4, h5, h6 { font-family: 'Your Font' !important; } p, div { font-family: 'Your Font' !important; } or

Responsive site is zoomed in when flipping between Portrait and Landscape on iPad/iPhone

回眸只為那壹抹淺笑 提交于 2019-12-17 17:35:39
问题 I've built a responsive site using Twitter Bootstrap here: http://zarin.me/cce/ The responsive design works great on iPad and iPhone, however when I flip the device from portrait to landscape, the site is zoomed in instead of adapting to the screen (pinching the screen works). What am I missing? Is this a viewport issue? Here's the only viewport code I have in my : <meta content="width=device-width, initial-scale=1.0" name="viewport"> Thanks in advance! 回答1: You also want to add the maximum

Bootstrap - Removing padding or margin when screen size is smaller

自古美人都是妖i 提交于 2019-12-17 17:33:59
问题 EDITED: Maybe I should ask which selector sets up the side padding when the screen is reduced to below 480px width? I have been browsing bootstrap-responsiveness.css for a while to locate this but nothing seems to affect this. Original I basically want to remove any default padding or margin set for responsiveness on smaller device screens. I have a background color overridden on container-fluid selector and for larger screen they render perfectly 100% across the width but they the screen is

iPhone 6 and 6 Plus Responsive Breakpoints [duplicate]

有些话、适合烂在心里 提交于 2019-12-17 17:31:07
问题 This question already has answers here : iPhone 6 and 6 Plus Media Queries (7 answers) Closed 5 years ago . According to Apple's site: The iPhone 6 has 1334-by-750-pixel resolution at 326 ppi with 1400:1 contrast ratio (typical) The iPhone 6+ has 1920-by-1080-pixel resolution at 401 ppi with 1300:1 contrast ratio (typical) However, what would the CSS media query responsive breakpoints be for each? (portrait and landscape) I don't fully understand how to test the retina screen sizes using the

Mobile and desktop screen size statistics

强颜欢笑 提交于 2019-12-17 17:29:21
问题 Where can I find statistics on mobile and desktop screen sizes? Im making a responsive site and specifically what im trying to find out is weather their is a size gap between the majority of phones and desktop and tablet users where I can put a breakpoint. I think that there should be but know I should test my assumptions. So just to be clear, I want phones to have one set of styles, and tablets and desktops to have another set. Thanks 回答1: I just finished doing a responsive business website

Responsive design with media query : screen size?

安稳与你 提交于 2019-12-17 17:28:39
问题 I'm working on responsive designed web site using media queries. But i do not know how to take a good width set. As you can see on this table, there is a lot of different resolution even for a single type of device. And as resolution is coming bigger and bigger on mobile device, it is hard to know what design to apply for a specific resolution. For now, I'm using this : Mobile First @media screen and (min-width:720px) => Phablet @media screen and (min-width:768px) => Tablet @media screen and

Retina displays, high-res background images

好久不见. 提交于 2019-12-17 17:28:33
问题 This might sound like a silly question. If I use this CSS snippet for regular displays (Where box-bg.png is 200px by 200px); .box{ background:url('images/box-bg.png') no-repeat top left; width:200px; height:200px } and if I use a media query like this to target retina displays (With the @2x image being the high-res version); @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { .box{background:url('images/box-bg@2x.png') no-repeat top left;} } Do I need to double the size of

Bootstrap 3 - Responsive mp4-video

丶灬走出姿态 提交于 2019-12-17 17:25:55
问题 I tried to find a good solution on the bootstrap site but I didn't get an answer to this yet. I think I can't be the only one struggling with this, but I couldn't find anything that helped me. I'm trying to embed an mp4-video on my website. The problem is, that if I use an iframe-tag I can't use autoplay and loop. Because of that I would like to solve it with a video tag (or something else that supports autoplay and loop). After that I tried to make my video responsive with an object-tag but