Forcing label to flow inline with input that they label

前端 未结 7 1213
时光取名叫无心
时光取名叫无心 2020-12-13 17:55

I need the label to stay on the same line as the input field they are labeling. I want these elements to flow like they normally would when the window resizes, i just want t

7条回答
  •  旧巷少年郎
    2020-12-13 18:16

    What I did so that input didn't take up the whole line, and be able to place the input in a paragraph, I used a span tag and display to inline-block

    html:

    cluster:
            
    
    

    css:

    span{display: inline-block;}
    

提交回复
热议问题