Jump to content

Text in the center (HTML 5)


Ginas
 Share

Recommended Posts

You can use CSS to target an element/tag and apply text-align: center; to it. The "align" attribute was deprecated in HTML 4.01, and is not supported in HTML5.
Can you give me that code? Because I didn't found he, because "align" is much.
Link to comment
Share on other sites

??? img, and anchor element are by default inline, and would act as text, so if the anchor, image are not using float, are not using position absolute, are not turned into block elements themselves!, using text-align: center; on the parent block element, IF this element width is larger than the image width, and itself is not using float, or positioning WILL centre itself within this element.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...