css3

How to auto adjust (stretch) div height and width using jQuery or CSS

你离开我真会死。 提交于 2020-01-02 04:41:08
问题 I have 4 divs with ids A, B, C and D, like below; <div id="A"></div> <div id="content"> <div id="B"></div> <div id="C"></div> </div> <div id="D"></div> Div A & D have fixed width & height. Div B has fixed width. I want the height of Div B and height + width of Div C calculated automatically. I want to stretch Divs B and C in between div A and D. Also I want to stretch Div c in between div B and right margin. The page thus wont be having any scroll bars and empty space. My expected layout is

Animate Path in Internet Explorer

旧时模样 提交于 2020-01-02 04:40:51
问题 Is there any possiblity to "Fly-In" an svgpath in IE 11? Like @keyframes fadeInP { from { stroke-dashoffset:1000; } to { stroke-dashoffset: 0; } } .animate { animation: fadeInP 10s linear infinite; } For <svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 400 400"> <path stroke-width='8' class = "animate" fill='none' stroke="#ffffff" d="M 0,0 C 100,10 200,80 300,15 " /> </svg> This works in FF, but cant find any solution in the web to

How to make specific part of a string bold in Angular 2

老子叫甜甜 提交于 2020-01-02 04:31:07
问题 I have an HTML code as below: <div class="row"> <div class="col-12" style="margin-top:15px;margin-bottom:10px"> {{"description" | translate}} </div> </div> I am using ngTranslate to translate the description. The description is a key from my translation file, and the value of the key will be displayed. The description will look like as below: "click cancel to cancel or click confirm to proceed". I want to make the first cancel and confirm in the description to bold. How can I do that using

How to fix crispy text in Safari 5 Mac OS X after using css 3d transforms?

你。 提交于 2020-01-02 04:15:07
问题 I've run into problem when strange behavior is triggered on relative and absolute positioned elements after the element with css 3d transforms applied. To fix this I have to set background color, but what if I need transparency? Here is the minimum to reproduce the bug: http://jsfiddle.net/8VABq/3/ 回答1: This is a weird bug indeed. My first try involved specifying a transparent background color: .crispy { position: relative; font-size:.9em; background: rgba(255,255,255,0); } However, this

Flexbox padding bottom fails in Firefox and Safari

只谈情不闲聊 提交于 2020-01-02 04:09:19
问题 When scrolling down the .parent div you should see its red background at the bottom due to the padding-bottom . This works in Chrome, but not in Safari and Firefox. .container { display: flex; width: 200px; height: 500px; } .parent { display: flex; flex-direction: column; background: red; padding-top: 20px; padding-bottom: 20px; overflow: auto; flex: 1; } .child { flex: 1 0 100px; background: green; border: 1px solid blue; } <div class="container"> <div class="parent"> <div class="child">

Using box model to contain items within its parent div

你。 提交于 2020-01-02 04:05:08
问题 Using the following HTML and CSS3 rules, I'm trying to make sure that the following criteria are adhered to: I have all of the criteria working except for item 1 where the children are exceeding their parent's width. Question: How to keep children within their parent? li items cannot exceed their parent width i.e. 400px img, label, and currency content must be centred vertically within their span currency should not wrap and should always be displayed in full currency should always be

Using box model to contain items within its parent div

大兔子大兔子 提交于 2020-01-02 04:05:05
问题 Using the following HTML and CSS3 rules, I'm trying to make sure that the following criteria are adhered to: I have all of the criteria working except for item 1 where the children are exceeding their parent's width. Question: How to keep children within their parent? li items cannot exceed their parent width i.e. 400px img, label, and currency content must be centred vertically within their span currency should not wrap and should always be displayed in full currency should always be

CSS to Desaturate Background Image Only WIth Other Images in Div Stay Saturated

前提是你 提交于 2020-01-02 03:56:06
问题 I am trying to desaturate the background image of a div while leaving the images within that same div saturated. I've found one example close to what I'm trying to do (except w/ blur) but have tried multiple variations of it w/ no success. In the code below, the .desaturate class correctly applies the filter attributes and turns bg image into b&w. The other image w/in this section tag are inheriting the desaturate as would be expected, but when I try to "re-saturate" through the img.saturate

How can I make div rounded corners with transparent background?

荒凉一梦 提交于 2020-01-02 03:44:05
问题 How can I create a div with rounded corners and transparent backgrounds? A bit like twitter does. So that at the edge of the corners you can see the page background and not a black edge. 回答1: for a simple Radius, use this CSS: div{ -moz-border-radius:10px; /* for Firefox */ -webkit-border-radius:10px; /* for Webkit-Browsers */ border-radius:10px; /* regular */ opacity:0.5; /* Transparent Background 50% */ } Greez, Chuggi 回答2: For full control over which elements are transparent and which are

Increase the size of the down and up arrow on the number input, CSS, HTML

会有一股神秘感。 提交于 2020-01-02 03:12:09
问题 Is there a way to increase the size of the up and down arrow on the right of the number input box by using CSS? Just the up and down arrows, not the whole input box, or at least proportionally. See this example: .size-36 { font-size: 36px; } .size-12 { font-size: 12px; } <input type="number" class="size-36" value="2" min="0" max="10" step="1"> <input type="number" class="size-12" value="2" min="0" max="10" step="1"> <input type="number" value="2" min="0" max="10"> Current result: 回答1: There