html - How can I make a div that is set in pixels resize according to the page? -


enter image description herei have progress bar uses arrows way know how make using pixels. wondering if there way create progress bar using pixels, , change size according page. have looked @ similar questions, none pertain type of element creating. attached bar looks like, , want able make adaptable screen size.

.containerr {   font-family: 'lato', sans-serif;   float: left;   position: relative;   width: 70%;   height: 100%; }  .wrapperr {   float: left;   width: 70%;   height: 100%;   position: relative;   /*overflow:auto;*/ }  .pull-right { }  a:hover {   color: #999; }  /* breadcrups css */ .arrow-steps {   zoom: 1.4;   position: relative;   display: inline-flex;   vertical-align: top; } .arrow-steps .step {   font-size: 100%;   text-align: center;   color: #666;   cursor: default;   margin: 0 3px;   padding: 10px 10px 10px 30px;   min-width: 180px;   float: left;   position: relative;   background-color: #d9e3f7;   -webkit-user-select: none;   -moz-user-select: none;   -ms-user-select: none;   user-select: none;   transition: background-color 0.2s ease; } .arrow-steps .step:after, .arrow-steps .step:before {   content: " ";   position: absolute;   top: 0;   right: -17px;   width: 0;   height: 0;   border-top: 20px solid transparent;   border-bottom: 19px solid transparent;   border-left: 17px solid #d9e3f7;   z-index: 2;   transition: border-color 0.2s ease; }  .arrow-steps .step:before {   right: auto;   left: 0;   border-left: 17px solid #333;   z-index: 0; }  .arrow-steps .step:first-child:before {   border: none; }  .arrow-steps .step:first-child {   border-top-left-radius: 4px;   border-bottom-left-radius: 4px; }  .arrow-steps .step span {   position: relative; }  .arrow-steps .step span:before {   opacity: 0;   content: "✔";   position: absolute;   top: -2px;   left: -20px; }  .arrow-steps .step.done span:before {   opacity: 1;   -webkit-transition: opacity 0.3s ease 0.5s;   -moz-transition: opacity 0.3s ease 0.5s;   -ms-transition: opacity 0.3s ease 0.5s;   transition: opacity 0.3s ease 0.5s; }  .arrow-steps .step.current {   color: #fff;   background-color: #23468c;[![enter image description here][1]][1] } 

html

<div class="containerr">   <div class="wrapperr">     <div class="arrow-steps clearfix">       <div runat="server" id="first" class="step">         <asp:linkbutton id="machinelink" cssclass="arrowtexts" runat="server" onclick="machinelink_click" onclientclick="getcoordinates()">safety</asp:linkbutton>       </div>       <div runat="server" id="second" class="step">         <asp:linkbutton id="estoplink" cssclass="arrowtexts" runat="server" onclick="estop_click" onclientclick="getcoordinates()">estop reset         </asp:linkbutton>       </div>       <div runat="server" id="third" class="step">         <asp:linkbutton id="startlink" cssclass="arrowtexts" runat="server" onclick="start_click" onclientclick="getcoordinates()">start</asp:linkbutton>       </div>     </div>   </div> </div> 

you can utilize vh vw vmin , vmax make progress-bar responsive. see this codepen


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -