responsive-design

Bootstrap XS version not working on phone and tablet

微笑、不失礼 提交于 2019-12-22 04:34:06
问题 I am designing my site (danielrojas.net) with Bootstrap and have created a separate layout for the XS viewports. It works beautifully when I resize my desktop browser (Chrome) and when I try it on Responsinator.com or similar. However, on my actual Android phone and tablet (both using Chrome, tested using the built-in browser as well), the standard version is shown, no matter what. I have included the magic viewport META tag: <meta name="viewport" content="width=device-width, initial-scale=1"

Overflow-x:hidden; on mobile device not working

匆匆过客 提交于 2019-12-22 04:08:37
问题 I hope you guys can help me cause I cant seem to wrap my head arroud this. I build a one-page site which works fine, except for one thing, which is the overflow-x:hidden on the tablet viewport (and probably smartphone too, havent tested that yet) Despite the body having body {overflow-x:hidden;} which works fine within normal browsers on the pc, i am able to move to the side for about 25 pixels or so, cause thats the overflow of my rotated div, that sticks out of the screen, which i wanted to

CSS: Keeping a div's height relative to its width [duplicate]

别等时光非礼了梦想. 提交于 2019-12-22 01:57:34
问题 This question already has answers here : Maintain the aspect ratio of a div with CSS (23 answers) Closed 4 years ago . My question is very similar to this question: CSS: 100% width or height while keeping aspect ratio? I have a div whose position is fixed. The width of the div must be 100% and its height exactly 1/6th of its width . Is there a -webkit-calc() way of doing this? Note: JS solutions are not preferred as a zoom/orientation change can affect the width/height. 回答1: Is this what you

How to convert Click event of mega menu to hover

吃可爱长大的小学妹 提交于 2019-12-22 01:09:40
问题 I found a nice Mega menu which need some modification so that it can be used with ASP.Net webform application. Besides that this mega menu works on the Click event which may confuse user at time as usually most of the user are used to hover effect over the menus. How can i change click even to hover so that that when user hover over the menu it show up till user moves mouse out of the menu are of dropdown. This is a responsive menu design & may have been designed intentionally for click event

Footer will not extend to 100% width on iphone, why?

旧城冷巷雨未停 提交于 2019-12-21 23:46:24
问题 Im nearly finished with this website but for one problem. On iphones (and possibly other mobile devices) the footer is cut off short at the bottom to the right, leaving a white space, even though i've set the footer to min-width:100%. I'm unsure what is causing this and would appreciate any help on this. You can visit the website here I've broke down the HTML below to the essentials. <body> <div class="content"> <header> <img /> </header> <img /> <h3>Title</h3><br> <p> Paragraph </p> <div

Ipad Mini Specfic CSS Media Queries?

给你一囗甜甜゛ 提交于 2019-12-21 23:07:18
问题 I have search a lot about CSS Specfic Media Queries for Ipad mini adn found this page. Which says this the Ipad Mini have 7.9 in 162 ppi. How to apply this properties in CSS Media Queries. Please help 回答1: The iPad mini will just inherit the same viewport size as the original iPad. But for more precise, you can target pixel density of the iPad mini, so: /* ipad Mini Portrait */ @media only screen and (width:768px) and (resolution: 163dpi) { } /* ipad Mini Landscape */ @media only screen and

How to make CSS background-image responsive? [duplicate]

醉酒当歌 提交于 2019-12-21 22:11:40
问题 This question already has answers here : Responsive css background images (18 answers) Closed 5 years ago . Ok, so I came across this solution to making background-image responsive: Responsive css background images My apologies for re-posting the question, but literally none of their solutions worked for me. HTML: <div id="fourohfour_home"></div> CSS: #fourohfour_home { background-image:url('image.png'); height:120px; width:120px; } How exactly would I make this responsive? e.g. When the

Can you set medium columns on Zurb Foundation 4?

帅比萌擦擦* 提交于 2019-12-21 20:24:29
问题 NB: This has been asked but not really answered here: How do I make use of breakpoints in Zurb foundation 4? The small and large columns on Foundation 4 are really handy, but small activates perhaps a little earlier than I'd like - is there any way of setting a medium-columns setting for smallish but not tiny resolutions, e.g. 800 * 600? In my specific case, I'd like the following setup: <div class="small-12 medium-6 large-4 columns">First column</div> <div class="small-12 medium-6 large-8

Remove adsense on mobile

白昼怎懂夜的黑 提交于 2019-12-21 17:44:41
问题 I'm working on my responsive design but having trouble with adsense. I have an ad which should show up on the desktop design, but not on the mobile design. So the code of the ad should be placed in the html only if the website is viewed on a desktop. It's possible with css using display: none, but this is against adsense TOS, so not a solution. I think it's possible with a PHP class like http://mobiledetect.net but I prefer to check the browser width and then decide what to do. Adsense has an

Enable and disable Slick Slider on certain break points

你。 提交于 2019-12-21 16:55:35
问题 I'm trying to enable Slick Slider (slick.js) to initiate only over 520px wide. Anything below that and the slides just stack (i.e. no slick). Is it possible so that it can work without refreshing the page? I've done this, which works when dragging the browser (narrow) below 500px, but when I move it over 500px it doesn't re-initiate without refreshing the page... $('.slick').slick({ autoplay: true, autoplaySpeed: 4000, delay: 5000, speed: 700, responsive: [ { breakpoint: 500, settings: