Hello css experts! I need your help please!
What I'm trying to achieve is centering the h2 tag within the div, but the alignment seems to reset after I insert the "width:intrinsic" in h2.
What I'm trying to achieve is something that looks like this:
---------------- TYPOGRAPHY ----------------
Centered text with line through the back that expands with the surround div.
Is my above code the best way to approach this?
If so, how do I center the h2 tag while using the "width:intrinsic" property?
Hello css experts! I need your help please! What I'm trying to achieve is centering the h2 tag within the div, but the alignment seems to reset after I insert the "width:intrinsic" in h2.
What I'm trying to achieve is something that looks like this:
---------------- TYPOGRAPHY ----------------
Centered text with line through the back that expands with the surround div. Is my above code the best way to approach this? If so, how do I center the h2 tag while using the "width:intrinsic" property?
-Phristopher
Haha okay I just posted this 10 minutes ago and solved it myself.
Centering with margin is what I should have been doing instead of relying on text-align: center. Duh! pats self on back