Page 1 of 1
Shape not displaying correctly
Posted: Fri Jun 04, 2021 3:00 pm
by santieb
Hi Pablo
I've uploaded demo3 file. The shape which i want to use as a button is suppose to be on the edge of the image as in the wbs file, when i preview it, it doesn't display correctly, it is not at the edge anymore.
http://www.kimfairbairn.co.za/
Kind Regards
Santie
Re: Shape not displaying correctly
Posted: Fri Jun 04, 2021 3:23 pm
by Pablo
You have placed a layout grid inside layer. That does not make any sense.
A layer is container for absolute / fixed elements.
A layout grid is container for flexible / floating elements.
Re: Shape not displaying correctly
Posted: Fri Jun 04, 2021 3:48 pm
by santieb
Hi Pablo
Even if i don't use the layout grid the shape still doesn't display correctly, it suppose to be on the edge of the image... i uploaded the demo again
http://www.kimfairbairn.co.za/
thks
Santie
Re: Shape not displaying correctly
Posted: Fri Jun 04, 2021 5:12 pm
by Pablo
The behavior is correct. A layer is a container for fixed / absolute positioned elements.
- You have set the alignment of the layer to center.
- The width of the layer is 970 pixels
This means that the (fixed) content of the layer is centered within a 970 pixel container.
Re: Shape not displaying correctly
Posted: Fri Jun 04, 2021 5:25 pm
by santieb
Hi Pablo
I uploaded another file, demo4, where i used the layout grid with the shape, the shape does not display on the edge of the image when i preview it. There is an example image in the folder so you can see what i'm trying to achieve.
http://www.kimfairbairn.co.za/
Regards
Santie
Re: Shape not displaying correctly
Posted: Fri Jun 04, 2021 5:28 pm
by santieb
Pablo wrote: ↑Fri Jun 04, 2021 5:12 pm
The behavior is correct. A layer is a container for fixed / absolute positioned elements.
- You have set the alignment of the layer to center.
- The width of the layer is 970 pixels
This means that the (fixed) content of the layer is centered within a 970 pixel container.
Thank you so much, it's working perfectly!!
Santie
Re: Shape not displaying correctly
Posted: Fri Jun 04, 2021 6:30 pm
by santieb
Hi Pablo
Still on that same image, i would like to add some text, but now how do i get that to align to the left if the layer is set to be aligned to the right?
I've uploaded demo4
http://www.kimfairbairn.co.za/
Thanks
Santie
Re: Shape not displaying correctly
Posted: Sat Jun 05, 2021 6:28 am
by Pablo
All objects on the layer are part of the same container so the have the same alignment.
If you want different alignments then use a layout grid of flex grid with multiple columns instead.
Or place the text on a different layer, but then you will need to make sure that the layers are not nested.
Re: Shape not displaying correctly
Posted: Sat Jun 05, 2021 9:21 am
by santieb
Hi Pablo,
Thank you for the advise. I used the layout grid, now the shape button doesn't want to align to the edge of the image to the right.
I've uploaded demo5
Kind Regards
Santie
Re: Shape not displaying correctly
Posted: Sat Jun 05, 2021 9:22 am
by santieb
herewith the link again
http://www.kimfairbairn.co.za/
Santie
Re: Shape not displaying correctly
Posted: Sat Jun 05, 2021 9:37 am
by Pablo
You have set the max-width of the layout grid to 970, so the content area will get wider than 970 pixels...
Re: Shape not displaying correctly
Posted: Sat Jun 05, 2021 3:24 pm
by santieb
Thank you Pablo!
Regards
Santie
Re: Shape not displaying correctly
Posted: Sat Jun 05, 2021 3:39 pm
by santieb
Where do i change the web from http to https ?
Re: Shape not displaying correctly
Posted: Sat Jun 05, 2021 3:48 pm
by BaconFries
Where do i change the web from http to https ?
Can you please open a "New" thread for all "New" questions not related to the original!!
Re: Shape not displaying correctly
Posted: Sat Jun 05, 2021 3:59 pm
by santieb
BaconFries wrote: ↑Sat Jun 05, 2021 3:48 pm
Where do i change the web from http to https ?
Can you please open a "New" thread for all "New" questions not related to the original!!
My apologies! i just post a new thread.
Thanks
Sanite