html - CSS - Pool Survey form -


hey guys trying make this:

how should look:

enter image description here

how actualy looks:

enter image description here

css

h1{     font-size: 16px; }  .bar{                width:170px;     background-color: #ccc;     border: 1px solid #ccc;     height: 17px;     margin-left: 15px; }  .progress{     background-image: url("images/survey_bar.png");     background-repeat: repeat-x;     padding: 5px;     text-align: right;     height: 17px; }  .label{     margin-bottom: 15px;     margin-left: 15px; } 

html

<div class="bar">     <div class="progress" style="width:75%;">65%</div> </div> <div class="label">dominik !</div> <div class="bar">     <div class="progress" style="width:20%;">20%</div> </div> <div class="label">jenda</div> <div class="bar">     <div class="progress" style="width:15%;">15%</div> </div> <div class="label">lojza</div> 

you see difference, in text color on position of number of % can me fix it? try padding/margin text cant fix it.

colour can solved adding color:#fff, not big issue.

as positioning, try adding line-height:17px (ie. matching height). cause centre text vertically on bar.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -