Is It Possible To Extend A H2 Box In Css Depending On The Text Within It? December 21, 2023 Post a Comment I have a header box appearing on a page. I am using h2 and configured this to show a border etc. My issue is that the longest text requires a box of 400px wide, whereas the shortesSolution 1: Try thisdiv{ float: left; width: auto; background-color: #777; } CopyDEMO Solution 2: yes you can apply float: left to H2Baca JugaHow To Center A Fixed Element?Jquery: Trouble With Simple SlideshowOpen Pdf In The Phonegap App That Is Made In Html And Css Share You may like these postsHorizontally And Vertically Scrollable Content With Fixed HeaderToggle Visibility For Multiple Divs With One Function: Navigation BarUsing Rest Api And Send Post RequestW3c Validation Error In Asp.net Post a Comment for "Is It Possible To Extend A H2 Box In Css Depending On The Text Within It?"
Post a Comment for "Is It Possible To Extend A H2 Box In Css Depending On The Text Within It?"