CSS positioning of objects |
Post Reply |
Author | |
digizar
Senior Member Joined: Dec 30 2015 Location: Germany Frankfu Status: Online Points: 742 |
Post Options
Thanks(0)
Posted: Feb 04 2020 at 4:16pm |
Since ever I have trouble to understand, why this CSS does not have influence in positionig of objects. So far I positioned any object manually on its place > properties. But that is getting pretty nasty. Situation: 1) The definition in the CSS tells to place that object @420 x 0. 2) But the properties reveal it is placed @0 x 0 (blank x blank). And infact is is placed @ 0 x 0 - which is wrong, as I think.(yellow marks) The objects are 'created' in a layer. What do I miss? Any other CSS specification works just fine. With one exception: If the color of the border(s) is to be changed, also the size/thickness of the border has to be changed (temporarily). I tried that trick 'positioning/thickness', too, but it did not have any impact. How can I position an object (whatsover it might be, group of elements, button links, ...), to the place defined in CSS? 1) CSS 2) Properties Edited by digizar - Feb 04 2020 at 4:37pm |
|
___________________________________
Ask questions only if there is no answer yet. https://blumendigi.com |
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6209 |
Post Options
Thanks(0)
|
The positionning depend on the parent element's properties
There are two options embedded in OpenElement: Positionning Absolute or Relative Add a group of elements in a blank page without layers attached. The default page Positionning setup being Absolute, the element will be located at a fixed position on defined coordinates. Change them for 0 0, your group of elements will move to the page top, left corner. Resize this group of elements to 800 x 600 Insert a second group of elements in it It will stay where inserted. Change the larger group of element's positionning for Relative The smaller Group of Elements will move to the top left corner no mather the values enterred in position. In Relative positionning you can select left, centerred or right as horizontal positionning. Then you will have to use margins to position your element. In reponsive web pages, Relative positionning is a powerfull tool. |
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6209 |
Post Options
Thanks(0)
|
Temporarily change an element border color and thickness have to be done with css in response to a specific event.
Can you be more specific on your needs?
|
|
digizar
Senior Member Joined: Dec 30 2015 Location: Germany Frankfu Status: Online Points: 742 |
Post Options
Thanks(0)
|
CSS Border colour:
it seems to be a bug, but one can live with. When only the colour of the border is changed in the style, it will not have effect - unless you simultaneously 'force the color to be changed' by re-defining also the border size. That means it defines the border thickness AND the border color. If one does not change the thickness of the border (or may be something else but color), it will not change the color - even if color is to be changed.
To affect the border color, it has to be changed together: color and thickness. For me it looks like a bug. Thicknes can then be redefined, the color is retained as defined. The effect works only if the individual object's Property (Top and/or Left) is left blank. It does not work with the Positioning, if these two entries are left blank in the Properties setting. The size of an object can be changed, and it is in effect instantly, which is correct. For me it's not a problem, because I was trapped once. But newcomers (as I was) may really be confused. Still much harder to accept is, when a Folder ist deleted in the oe project's Site Explorer. That definitlvely destroys the complete project. The other problem still is (for me), not to be able to define the position (x-y) of an object via the Style/CSS, may it be a button or a group of elements. Whatsoever is defined in the style (x-y), it has no effect, it will appear as blank (0-0) in the Properties. Definition has to be defined in the object's Properties, individually for each object. That is not CSS-conform. It can cause disaster with huge websites, if some global objects have to be relocated. I ran into that situation, but I live with that. Most of my pages will stay fixed, no reponsiveness required. https://blumendigi.com/index.gb.htm Size, text and color (exception above description) and other definitions work nicely as expected. Edited by digizar - Feb 06 2020 at 1:14am |
|
___________________________________
Ask questions only if there is no answer yet. https://blumendigi.com |
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6209 |
Post Options
Thanks(0)
|
OE is designed to allow basic users to add CSS code without even knowing it's CSS Look at this page: https://denislafrance.net/border-color-change.htm and resize it, the border will change color. Here is the code:
If you want expert's results you need to develop your knowledge accordingly Edited by Hobby001 - Feb 06 2020 at 2:54am |
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6209 |
Post Options
Thanks(1)
|
And let me tell you, that's the moment where OE started to be realy intersting to me.
|
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6209 |
Post Options
Thanks(0)
|
Again, positionning depend on parent element's positionning mode. You select the positionning mode then you use coordinates or margins depending on your selection. This is standard CSS that OE offers the possibility to use (only Relative or Absolute) without writing the code. |
|
digizar
Senior Member Joined: Dec 30 2015 Location: Germany Frankfu Status: Online Points: 742 |
Post Options
Thanks(0)
|
Edited by Hobby001 - Feb 06 2020 at 11:31am |
|
___________________________________
Ask questions only if there is no answer yet. https://blumendigi.com |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |