Looking for Customer Service & Support

IMPORTANT: This is a Community Forum. Answers are given by the community. If you are a Customer, please, Open New Issue to get access to the support service.

Customer Support is only provided through our ticketing system https://support.extly.com/. If you do not have a paid membership, please create a new topic in the community forum.

CB random user image size

More
2 years 3 months ago #9503 by uri
uri created the topic: CB random user image size
Hi,
when users upload images of different sizes i can use object-fit: cover;
Once object-fit: cover is applied to the image and a width and height are set, the photo crops and centers itself.
for example:
.cbThumbPict {
height: 100px;
object-fit: cover;
width: 100px;
}
.cbFullPict {
height: 250px;
object-fit: cover;
width: 250px;
}
or i can use wrapping divs.

can you please show me how to achieve a uniform size to all these uploaded photos with different sizes.
cb randomuser has no css file and i don't know how to achieve this in your php scripts (i don't know php).
i have old cb randomuser in joomla 1.5 and i can't upgrade.
please see d-r.co.il/%D7%99%D7%9C%D7%93%D7%99%D7%9D.html
thank you,
Uri

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

More
2 years 3 months ago #9505 by Support Team
Support Team replied the topic: CB random user image size
Hi,

In theory, you can define "width: 100%; " to fill the available space.

Regards

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

More
2 years 3 months ago #9507 by uri
uri replied the topic: CB random user image size
ok.
what is the file name that i can define "width: 100%; " ((there is no css file in CB random user ).

the containing block define in template.css file.
the image size define in your php script.

i can control (with css) the containing block but i can't control the image size with css.

thank you.

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

More
2 years 3 months ago #9508 by Support Team
Support Team replied the topic: CB random user image size
Hi,

You can add custom CSS Styles in any of the active stylesheets.

The best practice is to add them in a custom.css file in your template (most mayor template frameworks support a way to add them).

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

More
2 years 3 months ago #9512 by uri
uri replied the topic: CB random user image size
i assigned CB random user to another template then i use this in template.css :

img {
height: 150px;
object-fit: cover;
width: 150px;

now all ok.

Thank you very much.

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

More
2 years 3 months ago #9514 by Support Team
Support Team replied the topic: CB random user image size
Glad to hear you managed to get it working.

Regards,

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

Time to create page: 0.084 seconds
Join the Club!

Access and support services to all Extly's extensions for 1-Year. The Extly Club is your source for all of our extensions.

Join Now