css3

how to make a single tap active and remaining tap in active by using javascript?

蓝咒 提交于 2019-12-25 09:30:11
问题 I have created three tabs initially i want to make the first tab active once i click the save and continue button then only second tab visible.but in my code all three tabs are active at a same time. <div class="page-content"> <div class="container-fluid"> <header class="section-header"> <div class="tbl"> <div class="tbl-row"> <div class="tbl-cell"> <h2>Company Registration Form</h2> </div> </div> </div> </header> <section class="tabs-section"> <div class="tabs-section-nav tabs-section-nav

Create this shape in css

最后都变了- 提交于 2019-12-25 09:29:30
问题 Please take a look at this image: I apologise for my useless paint ability :-) How can I draw that sort of shape in css, like a ) without the use of text in a div, just pure css. I have tried to make it curved like in the example, but I don't know how to curve it like that from the center. What must I do to make this kind of shape in css? Thanks. 回答1: Here's one approach to implementing this, but note that any text in this element isn't going to maintain the illusion of a curve. So I'm unsure

How to equal images height in bootstrap different two column size

℡╲_俬逩灬. 提交于 2019-12-25 09:28:37
问题 I'm using two different bootstrap grid columns but images height are not equal in the grid. If i fixed the height images look stretched. Please see below my code: <div class="row"> <div class="col-md-8 " > <img class="img-responsive" src="images/green.jpg"> </div> <div class="col-md-4" > <img class="img-responsive" src="images/green.jpg"> </div> </div> Below result I'm getting how can equal both images height without stretched. Thanks 回答1: Create a containing divider for each image which will

Angular 2 : Controlling SVG Image/Icon Css Styles dynamically through user inputs/events on UI

只愿长相守 提交于 2019-12-25 09:15:58
问题 I used Jquery to control the Css styles of svg image dynamically in Angular 2. 1: Control using events like mouse hover Below is a sample code for a simple circle .svg image with initial styles defined and a mouseover event on circle which will trigger 'func1' on hovering the circle: <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 175.7 177" style="enable-background:new 0 0 175.7 177;" xml:space=

JS AnimationEnd Loop, would like to loop continually WITHOUT using; setInterval/setTimout

元气小坏坏 提交于 2019-12-25 09:13:24
问题 In the below code I am trying to loop three functions that only fire once the previous function is complete, with the last function then calling the first to start the process all over again. Using setInterval/setTimout are not going to be good answers for this because of RequestAnimationFrame taking their place as a cleaner way of doing things but I dont know how to apply RequestAnimationFrame to this code. Also the question of why the third function does not call the first wouldn't be

How to make fade transition faster css3?

↘锁芯ラ 提交于 2019-12-25 09:00:00
问题 I'm changing my background image every 7 seconds, and I'm doing it with a fade transition. The problem is that the transition takes too long, so there is a time gap between every image where the background is totally white. I tried changing the transition duration property, but it doesn't have any effect. SCSS .slide_photo { top:0; left:0; margin: 52px 0 0 0; position: fixed; width: 100%; height: 700px; background-image: linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) ), image-url(

How to color input border bottom using CSS

我怕爱的太早我们不能终老 提交于 2019-12-25 08:58:08
问题 I need to color a input border bottom when the input is not focus. This is my html code: <input type="number" id="nc" name="days" class="numero" placeholder="" min="0"><br /> This is my css code: .numero { border-bottom-color: red; } But it doesn't work. Anyone can help? 回答1: The border is red in your example: .numero { border-bottom: 1px solid #F00; } <input type="number" id="nc" name="days" class="numero" placeholder="" min="0"><br /> Simply use the shorthand to add a style, size and color

Google Chrome and nth-last-child

匆匆过客 提交于 2019-12-25 08:53:10
问题 The following CSS works in Firefox, IE9, and the Gnome "Web" browser. li.col:nth-child(3n+1):nth-last-child(2), li.col:nth-child(3n+1):nth-last-child(2) + li {width: 47.5%;} The first line should select the last row's first child and set it to 47.5%. Firefox and Chrome both do this. The second line should select the same element but then move forward one element to the last child in the grid. In Firefox, IE9, and Web it does this but in Google Chrome does not. Interestingly if you "inspect

box shadow with triangle shaped border to create chevron shaped div

有些话、适合烂在心里 提交于 2019-12-25 08:49:55
问题 I'm trying to create a group of chevron shaped divs, and came across this article where the ribbon has an internal triangle shape. http://css-tricks.com/snippets/css/ribbon/ I was trying to add an external border which would follow the triangle, which would achieve the affect I'm looking for without needing to use images. Unfortunately, when I tried adding a box-shadow, I ended up with a square shadow around the div, not a shadow around the triangular bit. Any suggestions on how to acheive

How to get three columns and two rows (1 x 2 x 2) with flexbox

爱⌒轻易说出口 提交于 2019-12-25 08:47:18
问题 I want to achieve the following result with Flex if possible. Know how to get that done with CSS, but not quite familiar with Flex. The reason why I want to do that in flex it to force myself write concise and more maintainable codes. .banner { width: 20%; height: 100%; position: relative; float: left; overflow: hidden; } .item { height: 50%; width: 33.33%; float: left; position: relative; } .inner-item-block { height: 100%; width: 80%; float: left; position: relative; } .inner-line { border