responsive-design

Chrome CSS 3 Transition Not Smooth

萝らか妹 提交于 2020-01-11 06:04:46
问题 Hi working on a site design for a new site and the homepage has some flyup menus using CSS3 transitions. If you go to --------- and take a look at the "Some Menu that is nice", "Another Cool Menu", etc. links on the homepage in chrome, when you mouse over them the flyups appear but the transition is not smooth and the menu label appears like it is vibrating up and down. I included the CSS below but it is available in the style.css file on the site (relevant parts start on line 1905) This is

Chrome CSS 3 Transition Not Smooth

会有一股神秘感。 提交于 2020-01-11 06:03:47
问题 Hi working on a site design for a new site and the homepage has some flyup menus using CSS3 transitions. If you go to --------- and take a look at the "Some Menu that is nice", "Another Cool Menu", etc. links on the homepage in chrome, when you mouse over them the flyups appear but the transition is not smooth and the menu label appears like it is vibrating up and down. I included the CSS below but it is available in the style.css file on the site (relevant parts start on line 1905) This is

how to deal with hover effect on touch devices

孤人 提交于 2020-01-11 04:19:07
问题 i have following code <div> <img src="http://placehold.it/350x150"/> <div class="link-cont"><a href="#">click here to see more info</a></div> </div> div { width: 350px; font-size:12px; position: relative; } div img{ padding:0 10px; } .link-cont { background: red; position: absolute; bottom: 0; width: 370px; height: 210px; opacity: 0; transition: all 0.4s; z-index: -1 } div:hover .link-cont { opacity: 1; bottom:-40px; } .link-cont a{ opacity: 0; } div:hover .link-cont a{ position: relative;

How to keep responsive images same height?

亡梦爱人 提交于 2020-01-10 19:47:52
问题 I have a webpage that I'm making, and I have one row with a cover photo and profile picture side-by side. I have them both in a bootstrap row in different-sized grids. But, the profile picture is always extending lower than the cover photo (it's height is larger). How do I keep them responsive, but the same height? My ultimate goal is have them look like a single strip (with padding between), and then stack when window is mobile-sized. <div class="row"> <div class="col-lg-8"> <img src="http:/

Why do I have to put media queries at the bottom of the stylesheet?

不想你离开。 提交于 2020-01-10 14:08:30
问题 I am new learning responsive design. What I have noticed on my journey is that when I put media queries at the bottom of the stylesheet, everything works flawlessly in regards to breakpoints. If I put the media queries at the top of the stylesheet, nothing works, and only recently I found out that I need to add !important and max-DEVICE-width ( as opposed to max-width) to the css that is being changed. Why is this? Why do the media queries work on both desktop and mobile when put at the

Creating responsive triangles with CSS

家住魔仙堡 提交于 2020-01-09 19:12:09
问题 I was trying to create triangles in CSS for a responsive site today and couldn't find a good example on stackoverflow, so here's how I did it. 回答1: Making angular shapes responsive is a little tricky because you can't use percentages as border values in your CSS, so I wrote a couple functions to calculate the page width and resize a triangle accordingly. The first calculates the size on loading the page, the second recalculates the size as the page width changes. CSS: .triangle { width: 0;

Creating responsive triangles with CSS

旧巷老猫 提交于 2020-01-09 19:11:54
问题 I was trying to create triangles in CSS for a responsive site today and couldn't find a good example on stackoverflow, so here's how I did it. 回答1: Making angular shapes responsive is a little tricky because you can't use percentages as border values in your CSS, so I wrote a couple functions to calculate the page width and resize a triangle accordingly. The first calculates the size on loading the page, the second recalculates the size as the page width changes. CSS: .triangle { width: 0;

Creating responsive triangles with CSS

落爺英雄遲暮 提交于 2020-01-09 19:11:30
问题 I was trying to create triangles in CSS for a responsive site today and couldn't find a good example on stackoverflow, so here's how I did it. 回答1: Making angular shapes responsive is a little tricky because you can't use percentages as border values in your CSS, so I wrote a couple functions to calculate the page width and resize a triangle accordingly. The first calculates the size on loading the page, the second recalculates the size as the page width changes. CSS: .triangle { width: 0;

Creating responsive triangles with CSS

孤者浪人 提交于 2020-01-09 19:11:08
问题 I was trying to create triangles in CSS for a responsive site today and couldn't find a good example on stackoverflow, so here's how I did it. 回答1: Making angular shapes responsive is a little tricky because you can't use percentages as border values in your CSS, so I wrote a couple functions to calculate the page width and resize a triangle accordingly. The first calculates the size on loading the page, the second recalculates the size as the page width changes. CSS: .triangle { width: 0;

Set div height equal to screen size

拥有回忆 提交于 2020-01-09 06:16:05
问题 I have a div element in twitter-bootstrap which will have content that will overflow vertically outside the screen. I would like the div to take the height of the size of the browser window and let the rest of the content scroll vertically within the window. I have a sample that is not working @jsFiddle #content { border: 1px solid #000; overflow-y:auto; height:100%; } <div class="container-fluid"> <div class="row-fluid"> <div class="span3">Side Bar</div> <div class="span9" id="content">