css3

How to stick footer to bottom of screen and prevent middle section extending below footer?

被刻印的时光 ゝ 提交于 2020-01-06 16:20:23
问题 I've been trying to set three columns to 100% height of a main content area with a header and footer on the top and bottom. The desired behavior is: When the content does not take up the screen, the footer is at the bottom of the screen, and the middle area stretches to fill the middle space. When the content takes up more than the screen, the footer is at the bottom of the content, not the screen. I ended up going with the table and table-cell solution, but the middle section extends below

How to stick footer to bottom of screen and prevent middle section extending below footer?

这一生的挚爱 提交于 2020-01-06 16:19:17
问题 I've been trying to set three columns to 100% height of a main content area with a header and footer on the top and bottom. The desired behavior is: When the content does not take up the screen, the footer is at the bottom of the screen, and the middle area stretches to fill the middle space. When the content takes up more than the screen, the footer is at the bottom of the content, not the screen. I ended up going with the table and table-cell solution, but the middle section extends below

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

Multiple perfect circles in CSS

依然范特西╮ 提交于 2020-01-06 15:40:28
问题 I am trying to make a simple shape in css that has 6 circles inside a rectangle. No problem with the basic shape except that my circles edges are not very smooth. Can anyone help with this as it looks a bit 8bit gamer at the moment http://bootply.com/98298 回答1: You have a slight mistake in the syntax, the color stops should state increasing percentages. The browser handles 2 stops of 95% - 10% as 95% - 95%; the 10% is not valid. You can get a non pixelated edge by setting a little zone for

Vertical align bottom for a link inside a table cell

回眸只為那壹抹淺笑 提交于 2020-01-06 15:39:22
问题 Is it possible to push a link to the bottom of it's table cell without knowing the height of the table cell? Here's a fiddle I set up illustrating the problem: http://jsfiddle.net/77qG5/1/ I'd like the link with the red background to be aligned to the bottom of it's cell, but I can't put a fixed height on the cell due to other requirements. Here's the full code I'm using: HTML: <table> <tr> <td><div class="button"><a href="#">link text</a></div></td> <td>yadda yadda yadda yadda yadda yadda

How to fade a box shadow in CSS?

人走茶凉 提交于 2020-01-06 15:32:47
问题 N.B. I've already looked at this post and can't emulate it. I'm trying to replicate the shadow on the British Council Sweden site: This is as far as I've managed to get on my own site: I can't post images yet but the HTML is structured like this: <div id="inner"> <!--Full width div, blue bar of color here--> <div class="wrap"> <!--Existing gradient background image here--> <div id="content-wrapper"> <!--Content begins--> </div> </div> </div> The existing CSS: #inner{ background: #1e5799;

Bending image effect with CSS/JS/jQuery? [closed]

江枫思渺然 提交于 2020-01-06 15:18:12
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 3 years ago . I'm trying to style the images on my website with a slight bending-effect and a shadow below the bended parts of the image - just like this (seen on ebay): Does somebody know how to achieve? Any suggested jQuery or java-script libraries? Or is it achieveable with CSS only? 回答1: I did a modification

Background attachment local - How to have child elements with background colours and still see scroll effect?

£可爱£侵袭症+ 提交于 2020-01-06 15:17:20
问题 I am trying to acheive Pure CSS scrolling shadows using background-attachment: local but with a background colour on the items that are being scrolled. I was inspired by this article http://lea.verou.me/2012/04/background-attachment-local/ but in their example they do not have a background colour on the child elements. The problem is that the child elements are above the parent on the z-index scale which means their background colour covers the shadow effect. I know that I can cheat this by

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)

Responsive table with vertical and horizontal headers [closed]

本秂侑毒 提交于 2020-01-06 15:02:11
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I have the following table (jsFiddle): <table> <tr> <th></th> <th scope="col">BMW</th> <th scope="col">Audi</th> <th scope="col">Mercedes</th> </tr> <tr> <th scope="row">GPS</th> <td>1200</td> <td>1000</td> <td>1400</td> </tr> <tr> <th scope="row">Bluetooth</th> <td>700</td> <td