responsive-design

How to properly use css-values viewport-relative-lengths?

和自甴很熟 提交于 2019-12-17 17:11:58
问题 As per Is there a way to up-size the font with CSS to fit the screen?, it's possible to use css3-values/#viewport-relative-lengths (dev3, dev), vw , vh , vmin , vmax , to make the document more fluid. However, coming from the conservative side, I'd like to ensure that my desire to fit the screen on larger displays doesn't do harm on smaller ones. I know that with <meta name = 'viewport' content = 'width = device-width' /> and the implicit font-size: 1em; , I'm supposed to be guaranteed that

Items grid with inner padding only

时光怂恿深爱的人放手 提交于 2019-12-17 16:37:55
问题 What techniques are there for creating a products grid that has padding between each item, but only within the grid? For example, what I am trying to achieve is the below: Sample markup: <div id="container"> <div class="item"> <!-- content --> </div> </div> CSS: #container { width: 100%; min-width: 960px; } .item { float: left; width: 300px; height: 100px; } (in the above, .item is going to be output 9 times). The solution would need to be IE8+ compatible and preferably using a technique that

Reordering divs responsively with Twitter Bootstrap?

 ̄綄美尐妖づ 提交于 2019-12-17 10:35:09
问题 I am working with Twitter Bootstrap v3 and want to reorder elements responsively, using column ordering and offsetting. This is how I would like to use my elements. At -xs or -sm breakpoints, with the containing div stacked 4 to a row: At -md or -lg breakpoints, with the containing div stacked 2 to a row: This is the current code - I know how to set the classes on the containing div, but not on A, B and C: <div class="row"> <div class="containing col-xs-6 col-sm-6 col-md-3 col-lg-3"> <div

Fastest Way to Make Website Responsive? [closed]

感情迁移 提交于 2019-12-17 10:34:34
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . I've used Zurb Foundation and Skeleton before so I'm familiar with both but I never had to convert an existing website to a responsive website before. Whats the quickest method to convert my website? Using a framework like above, or adding Media Queries for the code already

Responsive website on iPhone - unwanted white space on rotate from landscape to portrait

依然范特西╮ 提交于 2019-12-17 07:12:45
问题 I am creating a responsive website, and have just noticed a strange behaviour in my content pages when viewed on the iPhone. It scales correctly when loaded in portrait mode, and also when rotated to landscape. However, when rotating back to portrait the page seems to shift left, or not zoom correctly, and there is a strip of white space down the right-hand side. This white space also seems to be present on first loading in portrait as the user can swipe the page left Rather than complicating

Responsive website on iPhone - unwanted white space on rotate from landscape to portrait

两盒软妹~` 提交于 2019-12-17 07:12:45
问题 I am creating a responsive website, and have just noticed a strange behaviour in my content pages when viewed on the iPhone. It scales correctly when loaded in portrait mode, and also when rotated to landscape. However, when rotating back to portrait the page seems to shift left, or not zoom correctly, and there is a strip of white space down the right-hand side. This white space also seems to be present on first loading in portrait as the user can swipe the page left Rather than complicating

Mosaic of images HTML/CSS

戏子无情 提交于 2019-12-17 06:35:56
问题 I want to make an image layout with portrait images inside a div with a fixed aspect ratio of 3:2 . The size of images is 327x491px . The main issue is unwanted spaces between images. How do I align images as a mosaic using only HTML/CSS ? HTML : <div id="pictures1" class="_pictures1 grid"> <div class="_pictures1-01"><div style="width:125px;height: 188px; background: red;"><img src="" width="125" height="188" alt="" /></div></div> <div class="_pictures1-02"><div style="width:192px;height:

How to use Twitter Bootstrap 3 for non-responsive site? [duplicate]

假如想象 提交于 2019-12-17 06:27:09
问题 This question already has answers here : How to remove responsive features in Twitter Bootstrap 3? (8 answers) Closed 5 years ago . As you can read on their page, the new Bootstrap 3 is "mobile first": With Bootstrap 2, we added optional mobile friendly styles for key aspects of the framework. With Bootstrap 3, we've rewritten the project to be mobile friendly from the start . Instead of adding on optional mobile styles, they're baked right into the core . In fact, Bootstrap is mobile first.

How do I make a website responsive? [closed]

岁酱吖の 提交于 2019-12-17 06:19:43
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I want to know how to make a website, and all of its elements responsive to adapt to different screen sizes: fonts, images etc... Do I have to do somethings like this: @media only screen and (max-width : 320px) { //here put the width and height of all the elements in the site }

Maintain div aspect ratio according to height

拜拜、爱过 提交于 2019-12-17 04:32:26
问题 I need to maintain the width of an element as a percentage of its height . So as the height changes, the width is updated. The opposite is achievable by using a % value for padding-top, but padding-left as a percentage will be a percentage of the width of an object, not its height. So with markup like this: <div class="box"> <div class="inner"></div> </div> I'd like to use something like this: .box { position: absolute; margin-top: 50%; bottom: 0; } .inner { padding-left: 200%; } To ensure