css3

Put div below navigation bar and don't overlap content

落爺英雄遲暮 提交于 2019-12-31 13:31:16
问题 My issue is that I fixed a navigation bar at the top of my webpage and it includes both side margins and top one. Below this navigation bar, I want to set an scrollable container. Let me say I'm using Bootstrap 3.2.0 to lay out the site. The issue is that due to the margins of my navigation bar, the content I want to put below overlap the navigation bar and it's shown besides the navigation bar. For a better explanation of this I provide you my code, and a live example: UPDATE: I have noticed

Detect with JavaScript or jQuery if CSS transform 2D is available

我与影子孤独终老i 提交于 2019-12-31 13:07:26
问题 I'm displaying a element on my site which I rotate with -90deg but if a browser doesn't support the CSS transform the element looks misspositioned and not really good. Now I want to detect with JavaScript or jQuery (it's indifferent if jQ or JS because I use/loaded already jQ on my site) if this rotation via CSS is supported? I know Modernizr but just for that little thing I don't want to include that whole library (and speed down the website speed load). 回答1: Here's a function based on Liam

In terms of responsive design, how do you handle high resolution phones, such as the Galaxy S4?

…衆ロ難τιáo~ 提交于 2019-12-31 11:41:53
问题 Historically, you'd use media queries based of pixel width to determine what display the end user will get. However, that doesn't/won't work when you are using a higher resolution device such as a Galaxy S4 (1080x1920) resolution. How do you handle this? 来源: https://stackoverflow.com/questions/16490175/in-terms-of-responsive-design-how-do-you-handle-high-resolution-phones-such-as

ng-animate with ng-class directive

馋奶兔 提交于 2019-12-31 08:48:28
问题 You can use ng-animate with ng-class with the add and remove animations. I'm looking to make one animation in CSS3 but haven't found good examples with ng-class online. So I was wondering if people have good examples they want to share. I am not sure what my final animation will look like, but for the purpose of this example let's say I just want to make the height of the div gradually increase when I add the class myclass . <div ng-class="{{myclass:scopeVar}}" ng-animate="?????"></div> **CSS

Set bootstrap modal body height by percentage

只谈情不闲聊 提交于 2019-12-31 08:45:13
问题 I am trying to make a modal with a body that will scroll when the content becomes too large. However, I want the modal to be responsive to the screen size. When I set the max-height to 40% it has no effect. However, if I set the max-height to 400px it works as expected, but is not responsive. I am sure I am just missing something simple, but I can't seem to get it to work. Here is an example Doesn't work: .modal-body { max-height:40%; overflow-y: auto; } Works: .modal-body { max-height:400px;

CSS transition: fade background color, resetting after

只愿长相守 提交于 2019-12-31 08:34:57
问题 I have a list of divs and allow my user to add a new one dynamically by posting new content. If the user posts new content, I'd like to highlight it on the screen by fading the background color of the new div to another color, and fading it back. I'm pretty close: http://jsfiddle.net/pUeue/1953/ I'm using this CSS to trigger the transition: .backgroundAnimated{ background-color: #AD310B !important; background-image:none !important; -webkit-transition: background-color 5000ms linear; -moz

Bootstrap 3 btn-group width

梦想的初衷 提交于 2019-12-31 08:25:31
问题 I have another Bootstrap related problem. I want to add radio and checkboxes to my form, I would like them also to take 100% width of form element. I've added button group as this: <div class="form-group"> <label class="col-sm-3 control-label">Subscribe</label> <div class="col-sm-9"> <div class="btn-group input-group" data-toggle="buttons"> <label class="btn btn-success"> <input type="radio" name="options" id="option1" />Yes</label> <label class="btn btn-primary"> <input type="radio" name=

Bootstrap 3 btn-group width

余生颓废 提交于 2019-12-31 08:25:08
问题 I have another Bootstrap related problem. I want to add radio and checkboxes to my form, I would like them also to take 100% width of form element. I've added button group as this: <div class="form-group"> <label class="col-sm-3 control-label">Subscribe</label> <div class="col-sm-9"> <div class="btn-group input-group" data-toggle="buttons"> <label class="btn btn-success"> <input type="radio" name="options" id="option1" />Yes</label> <label class="btn btn-primary"> <input type="radio" name=

Google Chrome text shadow rendering

♀尐吖头ヾ 提交于 2019-12-31 08:02:21
问题 Google Chrome has an extremely annoying defect in its implementation of CSS3 text-shadow. The sub-pixel antialiasing is turned off when text-shadow is applied. No amount of -webkit-font-smoothing will persuade it otherwise. The crude alpha-channel anti-alias leads to shadow intermixing with the letters and this along with the pixelated text ends up producing a very ugly look. This is even more evident if hand writing fonts are used such as Monotype Corsiva http://www.newfonts.net/index.php?pa

Google Chrome text shadow rendering

那年仲夏 提交于 2019-12-31 08:02:09
问题 Google Chrome has an extremely annoying defect in its implementation of CSS3 text-shadow. The sub-pixel antialiasing is turned off when text-shadow is applied. No amount of -webkit-font-smoothing will persuade it otherwise. The crude alpha-channel anti-alias leads to shadow intermixing with the letters and this along with the pixelated text ends up producing a very ugly look. This is even more evident if hand writing fonts are used such as Monotype Corsiva http://www.newfonts.net/index.php?pa