Kod
#srodek {
overflow:hidden;
margin:0px auto;
width:50px;
min-width:50px;
overflow:hidden;
margin:0px auto;
border-bottom-style:solid;
border-bottom-width:3px;
border-bottom-color:#2E2E2E;
text-align:center;
height:30px;
border-bottom-left-radius:10px;
border-bottom-right-radius:10px;
border-top-right-radius:10px;
border-top-left-radius:10px;
border-top-color:#3C3C3C;
border-top-style:solid;
border-top-width:3px;
word-spacing:5px;
}
overflow:hidden;
margin:0px auto;
width:50px;
min-width:50px;
overflow:hidden;
margin:0px auto;
border-bottom-style:solid;
border-bottom-width:3px;
border-bottom-color:#2E2E2E;
text-align:center;
height:30px;
border-bottom-left-radius:10px;
border-bottom-right-radius:10px;
border-top-right-radius:10px;
border-top-left-radius:10px;
border-top-color:#3C3C3C;
border-top-style:solid;
border-top-width:3px;
word-spacing:5px;
}
oraz kod html
i chciałbym żeby rozszeżał się według textu znajdujacego się w div
a mam coś takiego że div jest w 100% i nie chce się zmniejszyc