Image alignment

Image alignment was created by Chrysant

Posted 4 years 3 weeks ago #55819
Hi Ced, I´m actually fighting with PB-"Single Image" where some questions about image alignment takes place:

1. Entering the with (e.g. 300px) results as espected - Entering the height don´t. Why?


2. Using the Align-Buttons results as espected only in PB (Backend), not in the Frontend of the site. Why?


3. Align (center) the image with outside-margin (auto,auto) don´t take effect in PB (Backend) but in the Frontend. Why?
Last Edit:4 years 3 weeks ago by Chrysant
Attachments:
Last edit: 4 years 3 weeks ago by Chrysant.

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Image alignment

Posted 4 years 3 weeks ago #55825
Hi
the height is probably controlled by CSS (height:auto). The best way is to use the width setting, the image will automatically resize proportionnally
for the alignment, please give me the url of your page to check the problem
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by Chrysant on topic Image alignment

Posted 4 years 3 weeks ago #55828
Site has development status: www.widmann-haustechnik.de/2020
You have received login data by email.

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Image alignment

Posted 4 years 3 weeks ago #55831
the alignement icon works, but there is a CSS conflict in your template
www.widmann-haustechnik.de/2020/templates/wht20/css/custom.css
line 5 on

img {
display: block;
}

this is not correct because it changes the natural behavior of all images in your website. This is a bad technique ...
you must remove that, and everthing will be working :)

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by Chrysant on topic Image alignment

Posted 4 years 3 weeks ago #55834
That´s it. You are the best.
The img {display:block} I take over from a previous template because sometimes there is a small gap (ca. 10px) around images ... but that´s another topic.

Solved :)

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Image alignment

Posted 4 years 3 weeks ago #55835
great :) thank you

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Time to create page: 0.683 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 401 guests and no members online