BullGuard Antivirus Sale - 60% Off with openElement !
Forum Home Forum Home >

openElement

> openElement General Discussion
  New Posts New Posts RSS Feed - Edit code, fit image inside box?
  FAQ FAQ  Forum Search   Register Register  Login Login

Edit code, fit image inside box?

 Post Reply Post Reply
Author
Message
Dhakadice View Drop Down
Newbie
Newbie
Avatar

Joined: Jan 06 2018
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dhakadice Quote  Post ReplyReply Direct Link To This Post Topic: Edit code, fit image inside box?
    Posted: Jan 06 2018 at 5:15pm
I've just started trying out openElement today. It looks good so far.
However, I can't figure out how to do simple things like fit an image inside a box.

None of the options available scales the image to fit inside the box while also retaining
proportions. (retaining proportions makes the image too big to fit inside)

I figured I'd fiddle with the code and use "object-fit: scale-down",
but the source code seems locked and I can't figure out how to edit it.

Does this mean I have to create a different web site for every screen resolution,
to prevent elements from being too big or small on some computers?
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group


Joined: May 31 2012
Status: Offline
Points: 5283
Post Options Post Options   Thanks (1) Thanks(1)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: Jan 06 2018 at 9:30pm
Hi,

Look well into the Properties of an Image element - you will find the Resizing option and its last value Keep aspect ratio (English titles may differ). After choosing it, set Width to 100%. The image should now take 100% width of its container. The container (ex. Group of elements) you can/should put into "relative" positioning mode (again check Properties), and if you set the Height to "auto", it will adapt to its content (the image height if it's the only element inside the Group)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.