html - How do I make the text tag width same as the visual text? -


I am thinking that there is a way to make H1 tags the same width as text that you want can see .

If I do not set the width of the H1 tag to me, its width becomes 100% and I can not distinguish it at its crossroads.

jsfiddle: jsfiddle.net / pbwjr /

The best way to do this It will:

  & lt; H1 & gt; & Lt; Span & gt; Your text goes here & lt; / Span & gt; & Lt; / H1>   

Then you can type the style h1> Span as per the requirement.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -