responsive-design

Responsive CSS background image - how to make content follow

孤人 提交于 2019-12-13 04:16:34
问题 I have CSS background image in header div. Image responsiveness works fine but I cant get it work so that content under header image "follows" image when it resizes. Problem is that when I give height value to header image div then div height is fixed. And when I do not give height image is not shown at all. See working example JSFIDDLE Any help how to fix? 回答1: Here is your solution: Issue:- Height value in percentage doesn't work, until unless it has been used in any position layer.

Why using display table for vertical align is bad practice

匆匆过客 提交于 2019-12-13 03:37:54
问题 I have read a lot of different articles about available methods for vertical centering using CSS. I understand how everything works, but I have found a lot of phrases like layout using tables is considered bad practice ? I found that using display : table is supported by most of the old browsers, even mobile browsers like Opera Mini for antique phones. Please explain why is it considered bad practice to use divs with display : table and what is the most well-supported way to align vertically

How to fix the responsive design from github page and broken images?

狂风中的少年 提交于 2019-12-13 03:37:50
问题 I have a portfolio site deployed at github pages and I used jekyll to create it. The issues that I have : 1)The responsive design at mobile it's not right and I also can't see footer, 2) I have broken images that doesn't load i have changed the path several times but still doesn't work i guess I'm out of options?Any suggestions to fix these issues? My site : https://lazospap.github.io/LazPap/ and my repo : https://github.com/LazosPap/LazPap . 回答1: To make sure that the image urls are found,

Nav Bar Incorrect Title when responsive and underneath menu bar

女生的网名这么多〃 提交于 2019-12-13 02:58:00
问题 So I created my Responsive Nav Bar and when it is in mobile, it is not exactly how I picture it. I got the active page "title" and what I want it to do is if I click on to the next page, the top left title will change. Here is where I got the idea from. https://www.w3schools.com/howto/howto_js_topnav_responsive.asp. Now here is what my pages look like now. When I go to another page, it is not green anymore the "active" title page. And the title is still named home. That's another issue that

highcharts responsive datalabels display

半世苍凉 提交于 2019-12-13 02:38:27
问题 Is there any way to set the dataLabels of the highcharts to not overlap for smaller sizes? I have a chart which is similar to this one but what I'd like to achieve is: alternate the Y values (data Labels: 15, 40, and so on.) avoid text overlapping, instead of number I have: "Long text" which overlaps at iPhone size Is there any other option without specifying the x and y position of the dataLabels ? { "x": 1400457600000, "y": 15, "dataLabels": { "x": 25, "y": -5, "style": { "color": "#000000"

Responsive bootstrap span floating off row-fluid

巧了我就是萌 提交于 2019-12-13 02:23:50
问题 I have several layouts made with responsive bootstrap rows, but when my window is resized to a certain width, all the blocks (either span6 or span4 ) fall out of the row, as if they were overflowing. I would understand an overflow happening with span6 's, since their widths are complementary, but span4 's? Why are they all forming into a single column? If i shrink my window further, the blocks return to their rightful place, which is telling me it is not a question of non-fitting div widths.

What happens when grid classes apply to devices with smaller breakpoint size

大憨熊 提交于 2019-12-13 02:18:14
问题 Grid classes apply to devices with screen widths greater than or equal to the breakpoint sizes, and override grid classes targeted at smaller devices. Therefore, applying any .col-md- class to an element will not only affect its styling on medium devices but also on large devices if a .col-lg- class is not present. Now if we use <div class="col-lg-4">div 1</div> <div class="col-lg-4">div 1</div> <div class="col-lg-4">div 1</div> It will layout as three columns on a row, when we narrow down

Make a scaling/responsive image stick to bottom of div on/during resize

半腔热情 提交于 2019-12-13 02:03:50
问题 I have a banner. In that banner is an image. When you resize the viewport/browsers width the image is scaled to a smaller size to fit the window. Notice how when you resize the browser, as the image gets smaller, it moves in an upward motion away from the bottom of the div. I want the bottom of the image to stick to the bottom of the div always. Regardless of size. Heres my JS FIDDLE HTML <div class="wrapper"> <center> <div class="imgWrapper"> <img src="http://lorempixel.com/500/300/"> </div>

IE9 Fails to load responsive layout

本小妞迷上赌 提交于 2019-12-13 01:19:56
问题 Update 1: This looks to be a problem only when I build and publish to IIS. Running in visual studio, there are no issues. IE9 renders correctly. IE9 is broken, and I don't know how to do any real testing. My site loads correctly for IE8, 10, and 11, Chrome, Firefox, and Opera, but not IE9. This is what it is supposed to look like (and how it looks in most browsers): This is what happens in IE 9 (the white bar at the top is for the mobile menu which should be hidden): So far my only tool has

Positioning a div relative to a fixed div with responsive content

狂风中的少年 提交于 2019-12-13 00:56:33
问题 I have a tricky issue that I cannot seem to beat. I am relatively new to coding so please bear with me as I try my best to thoroughly explain my issue. Also, I'm sure my code is very unconventional and probably incorrect! Feel free to yell at me for anything that can be more efficient and I will make the proper changes. Thank you heaps in advance! On my website I have a fixed footer and a fixed header with responsive content inside. I want the content in the middle of my website (div id=