responsive-design

Set div height equal to screen size

巧了我就是萌 提交于 2020-01-09 06:15: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">

Can we float 2 divs side by side and 3rd one below them?

久未见 提交于 2020-01-07 09:23:19
问题 I want to arrange 3 divs, according to the screen width as follows: For screen-width of < 500px arrangement should be as follows : For screen-width of > 500px arrangement should be as follows : I have tried achieving this in screen size of > 500px but i don't know how to use the same code to achieve arrangement for <500px. My doubt is, can I use the same piece of code to get both the arrangements or is there any other approach ? Can flexbox be used to solve the issue? Here is the snippet:

Can we float 2 divs side by side and 3rd one below them?

元气小坏坏 提交于 2020-01-07 09:23:07
问题 I want to arrange 3 divs, according to the screen width as follows: For screen-width of < 500px arrangement should be as follows : For screen-width of > 500px arrangement should be as follows : I have tried achieving this in screen size of > 500px but i don't know how to use the same code to achieve arrangement for <500px. My doubt is, can I use the same piece of code to get both the arrangements or is there any other approach ? Can flexbox be used to solve the issue? Here is the snippet:

How to make div's inside div responsive

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-07 01:58:11
问题 I know there are millions of similar questions on the related subject and i've read many of them, but somehow i still don't really get how to position div's or different things based on the media. So here's the thing. I have a div, which has 4 different div's that are basically just 4 different social-bar pictures. I would like to make them responsive to all media, but most importantly to mobile. If there's anyone kind enough who could teach me step by step, how to do it, ill be more than

Is there a way to prevent viewport resizing due to ui elements like url bar?

微笑、不失礼 提交于 2020-01-06 19:37:45
问题 My problem is that I am making a responsive website and want the viewport to be always fullscreen eg on document ready I want the body to be 100% of the available device window INCLUDING the height for the url bar and other navigation elements like those on ios, and for it to stay that way. The resizing is breaking my percentage based design. I have included the following for the viewport: <meta name="viewport" content="width=device-width, height=device-height, maximum-scale=1.0, minimum

Alignning text and image on same line while maintaining text indent relative to the container size

末鹿安然 提交于 2020-01-06 17:42:13
问题 I have searching through questions on stackoverflow but none of them which I tried worked. Most of them distorts what I actually want to achieve. I would like to know where I am going wrong or what I am missing. Some links which I tried are: CSS align images and text on same line, Image and text on same line?, etc. I tried and removed them. I am showing what I achieved on my own. What I want to achieve? 1) I want the text to automatically resize themselves even when container size changes. 2)

Difficulty in Designing Business card using CSS

爱⌒轻易说出口 提交于 2020-01-06 15:51:12
问题 I am trying to make a business card with name and title in the center and email and phone to be on extreme left and right on the card Here is my following code .business-card{ position:relative; border:1px solid black; width:200px; } .business-card section { display:flex; flex-flow:column; align-items:center; } .email{ position:absolute; right:0; } <div class="business-card"> <section> <span> name:abc </span> <span> title:xyz </span> </section> <footer> <span class="phone"> 123-123-123 </span

responsive media query not working

老子叫甜甜 提交于 2020-01-06 15:17:02
问题 I am really sorry if this question has been posted before but I couldnt find an answer, I wrote a very simple css file for two version device tablet and PC , but its not working. Now as you can see i am trying to use between resolution x and y but doesnt seem to be working at all. A bit of help please? Thanks /* Responsive tablet etc -------------------------------------------------------------------------------*/ @media only screen and (min-device-width: 320px) and (max-device-width: 680px)

Why my responsive CSS is not taking media width?

狂风中的少年 提交于 2020-01-06 15:04:00
问题 As the title's saying, I can't set media screen width-specific CSS for my PHP webpage. Here is my <head> section of my index.php : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title><?php echo SITENAME; ?> - <?php echo SITEDESC; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial

Text Overlay on Image Hover - Responsive

寵の児 提交于 2020-01-06 12:44:28
问题 I am using this tutorial to create an overlay on my images with text: http://codepen.io/pdelsignore/pen/uqenH It works great, however I have a responsive website and if I try to enter a % as the width / height of the '.box' the image disappears. It appears it can only be a fixed with (i.e. px) which obviously doesn't scale. .box { cursor: pointer; height: 250px; position: relative; overflow: hidden; width: 400px; font-family: 'Open Sans', sans-serif; } Does anyone have any ideas? Thanks in