alignment - Forum

Forum Navigation
You need to log in to create posts and topics.

alignment

I need to align an object horizontally to the center of a container, but the only options I see in the dropdown list are:  none, top, bottom, left and right.

How do I center it?

thanks.

.

 

 

 

Hi @fkapnist

if is a button you can use text-align property = center

Uploaded files:
  • You need to login to have access to uploads.
fkapnist has reacted to this post.
fkapnist
Quote from smartmedia on March 29, 2023, 7:16 pm

Hi @fkapnist

if is a button you can use text-align property = center

Thanks.

 

I used this:

BeginJS
document.getElementById('Image4').style="text-align:center;"
EndJS

But it changes the aspect ratio of the image.

.

 

@fkapnist please use the predefined CSS class neo-middle-center. Check here for more predefined classes.

Regards.

asmat has reacted to this post.
asmat