Getting a span element fill the space in a div

前端 未结 3 883
野趣味
野趣味 2021-02-15 17:13

I\'m trying to have something like this:

|--------------fixed width---------------|
 Title1 .......................... value1
 Title2 ................... another valu         


        
3条回答
  •  [愿得一人]
    2021-02-15 17:27

    for this you need to change the html structure like this

    html

    Title value  

    and here is the css for .center span

    .center {
        text-align: center;
        border-bottom: 1px dotted blue;
        display:block;
    }
    

    jsFiddle File

提交回复
热议问题