Search
 
SCRIPT & CODE EXAMPLE
 

CSS

shrink div to fit content

.centerBox {
  display:inline-block;
  text-align:center;
}


<div class="centerBox">
  Some text
</div>
Comment

PREVIOUS NEXT
Code Example
Css :: how to make div scrollable horizontal 
Css :: how to make an image oval in css 
Css :: onclick after color change in css 
Css :: setting multiple css using dom 
Css :: css move inline image up 
Css :: gravity forms css classes 
Css :: add drop shadow css 
Css :: css remove white space below footer 
Css :: internal style 
Css :: Apply image as full screen responsive background 
Css :: tile format css 
Css :: icon borders css 
Css :: css disabled hover style 
Css :: box sizing ftw 
Css :: displat grid overlapping columns 
Css :: css background image not working 
Css :: simple css reset 
Css :: 1rem to px 
Css :: css horizontal line around text 
Css :: create circle in css 
Css :: text shadow css generator 
Css :: css class 
Css :: CSS logo left and navigation right 
Css :: css if select has value 
Css :: value error w2 should be positive but is 
Css :: transform on click 
Css :: styling input field tailwind css 
Css :: hide scroll bar when not needed 
Css :: font face html 
Css :: scss global class 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =