Jump to content
You must now use your email address to sign in [click for more info] ×

Making container for elements


Recommended Posts

Hi there!

Is there possibility to do something like container with elements and Affinity'd calculate margins from the elements? I mean something like html/css...
For instance I have four bars and I want to add another one. Can AD calculate paddings/margins and add there my new bar with every bar equal size?5abd454cdc30e_ScreenShot2018-03-29at21_52_47.thumb.png.47b19eae3f87283ea0d73f97df70f6ea.png

Link to comment
Share on other sites

Hi, pandawid,

 

I think the constraints feature may be of help. Check out this.

 

Here are some examples. First, a set of columns w. text labels centered. The text is constrained to stay at the center, but not get smaller. 2nd, the columns uniformly scaled narrower. 3rd, the columns spread out, and spaced w. even distribution.

 

FullSized.thumb.jpg.bd949a033ea4e6f1430d1e1042554eca.jpg'5abd652021286_SizedDown.thumb.jpg.aecc28eff4f7261267c1dd9ad9a5a558.jpg

Redistributed.thumb.jpg.eb14c8d1a6fda02c49ffe1f70e41300d.jpg

 

The text size was fixed, but appears different because of the different sizes of the screen capture boxes.

 

The process is not automatic, but there are quite a few ways to create items that are of certain proportions relative to others, and arrange them in various way quickly.

iMac 27" Retina, c. 2015: OS X 10.11.5: 3.3 GHz I c-5: 32 Gb,  AMD Radeon R9 M290 2048 Mb

iPad 12.9" Retina, iOS 10, 512 Gb, Apple pencil

Huion WH1409 tablet

Link to comment
Share on other sites

Affinity Designer (ADe) has no facility for creating or calculating code, as gdenby has shown Affinity Designer (ADe) is a layout/design software, the coding in respect of CSS, margins, padding etc would have to be done in the software you are going to use to construct this project in. you could use grids and guides to demarcate where the margins and/or padding would be.

 

 

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.