responsive

MaterializeCSS how can i make row column height the same?

女生的网名这么多〃 提交于 2021-01-22 05:59:59
问题 I have a basic grid on materializeCSS my problem is my column is not the same height so my layout became a mess. I know this has been ask on bootstrap but none of the solution works for me in materializeCSS This is my jsfiddle https://jsfiddle.net/zrb46zr2/1/ <div class="row"> <div class="col m4 s6"> <img src="http://lorempixel.com/580/250/nature/1" class = "responsive-img"> <p> Looooong Looooong Looooong Looooong Looooong text </p> </div> <div class="col m4 s6"> <img src="http://lorempixel

Text images adapt with CSS transform responsive design within grid (remove zoom)

匆匆过客 提交于 2021-01-07 06:33:23
问题 I have dates that are calculated with PHP and spat out as images that read things like 26th of February, 3rd of March etc. As the dates obviously different in character length I want the images to match a specific font size. The problem I have is making this all fit within a grid that is responsive as the images don't scale with the grid with transform. If I set a max width for the grid at some point the large image catches up with the smaller image, they both become the same width which

Text images adapt with CSS transform responsive design within grid (remove zoom)

梦想与她 提交于 2021-01-07 06:32:37
问题 I have dates that are calculated with PHP and spat out as images that read things like 26th of February, 3rd of March etc. As the dates obviously different in character length I want the images to match a specific font size. The problem I have is making this all fit within a grid that is responsive as the images don't scale with the grid with transform. If I set a max width for the grid at some point the large image catches up with the smaller image, they both become the same width which

Why is my responsive html/css not working with mobile phone?

社会主义新天地 提交于 2020-12-27 07:25:22
问题 I've created a test site. I've used media queries in css but when I load the page on mobile, I don't see the mobile version and when I re-size the browser the site is responsive. I've read at multiple places to not to use *-device-width . So, what am I missing? What could be the resolution? 回答1: Add this to the head of your website: <meta name="viewport" content="width=device-width, initial-scale=1"> This will set the width of your page to follow the screen width of your device. 回答2: It was

Why is my responsive html/css not working with mobile phone?

最后都变了- 提交于 2020-12-27 07:23:15
问题 I've created a test site. I've used media queries in css but when I load the page on mobile, I don't see the mobile version and when I re-size the browser the site is responsive. I've read at multiple places to not to use *-device-width . So, what am I missing? What could be the resolution? 回答1: Add this to the head of your website: <meta name="viewport" content="width=device-width, initial-scale=1"> This will set the width of your page to follow the screen width of your device. 回答2: It was

p5js: How do I make my randomly generated circle packing sketch/canvas responsive when the window is resized?

限于喜欢 提交于 2020-12-13 04:58:05
问题 When I load the window from a narrow size and make it wider, the added canvas space is white. Canvas resize from narrow to wide: When I load from a larger window to a smaller size, the canvas stays in the larger size, while HTML and CSS elements respond. In the second picture, the circles are supposed to cut off at the same point at the black rectangle. I think this is happening because the circles are randomly generated and the layout of them is different whenever the page loads/reloads.

How do I make the navbar responsive depending on the viewport?

独自空忆成欢 提交于 2020-12-13 03:00:59
问题 I want to make a responsive webpage. I want it to display a different nav based on the viewport. Here is the javascript that I have so far: var shownav = document.getElementById('show-nav'); if (screen.width < "720"){ shownav.style.display = 'block'; } But for some reason, it does not work. Can you please help me? 回答1: You can achieve this without javascript by using a media-query: #show-nav { display: none; background-color: red; } /* if screen width is smaller than 720px, #show-nav will be

How do I make the navbar responsive depending on the viewport?

筅森魡賤 提交于 2020-12-13 02:57:09
问题 I want to make a responsive webpage. I want it to display a different nav based on the viewport. Here is the javascript that I have so far: var shownav = document.getElementById('show-nav'); if (screen.width < "720"){ shownav.style.display = 'block'; } But for some reason, it does not work. Can you please help me? 回答1: You can achieve this without javascript by using a media-query: #show-nav { display: none; background-color: red; } /* if screen width is smaller than 720px, #show-nav will be

Responsive image, picture vs img with srcset, fallback issue

无人久伴 提交于 2020-12-05 11:17:43
问题 After reading all day about one method or the other I am still not sure what is the best for me, all sites explain the same thing but when I want to know the things that really worries me, nobody talks about that. My case: I have almost all my images using width 100% and height to auto, and the image containers had dynamic size, for example 30vw, or 40%, etc. (not sure if in this case I still need to set height and width values in the img tag) What I need to use if I want to provide different