html - Div Not Responding to Width CSS -


in process of creating form, , want text labels same width. reason cannot discern, using width not working in:

.form-label {  display:inline; width: 160px; }  <div class="form-label required">first name:</div> 

jsfiddle

how can .form-label class respond width declaration? thank you!

change display:inline display:inline-block.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -