Is It Possible To Extend A H2 Box In Css Depending On The Text Within It? February 16, 2024 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 JugaRails 3 / Haml: How Can I Output Haml Raw From A Variable?Top & Left Vs Margin-top & Margin-leftHtml Input With Background Image Share You may like these postsContainer Height Issue Using Flexslider 2 Only On Ios DeviceChrome Doesn't Respect Camelcase For Svg Element "clippath"Internet Explorer 7,8 Content Type In Meta TagHow To Semantically Code An Html Nested Table That Aligns (and Associates) With Its Parent Table's Headers 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?"