Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why won text-align make my images align where I want them to?

align images
0
Posted

Why won text-align make my images align where I want them to?

0

Why won’t text-align make my images align where I want them to?Vickie asks: I have a piece of clipart on my page, a Christmas Tree ornament and I am trying to get the text to align anywhere, right, left, justify etc. I saw the following code in the lesson about align:

Answer: The tricky thing about the text-align property is that you can only align text with it – you can’t use it to move block-level elements like images. Some browsers will align images or tables with this property, but it’s not reliable, as you’ve found. To align images to the r

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123