You could apply the space character in the label   or apply a left or right margin to either element. A daily dose of irreverent and informative takes on business & tech news, Turn marketing strategies into step-by-step processes designed for success, Explore what it takes to be a creative business owner or side-hustler, Listen to the world's most downloaded B2B sales podcast, Get productivity tips and business hacks to design your dream career, Free ebooks, tools, and templates to help you grow, Learn the latest business trends from leading experts with HubSpot Academy, All of HubSpot's marketing, sales CRM, customer service, CMS, and operations software on one platform. While working on a project, I had to come up with a rendering system that allows me to dynamically generate PDF documents from React code . See the following example, where we have put a space of 20px between the label and input elements using the margin-right property: The similar 20px space you can also put by applying margin-left on the input element. To change the space between table cells, use the CSS The only difference is that this space will never break to a new line two words or elements separated by will always appear on the same line. By using this technique, you can quickly lengthen or shorten all your indentations by changing the value of text-indent. Example Use the box-sizing property to keep the width at 300px, no matter the amount of padding: div { width: 300px; How to Get the index of ngFor in Angular. After the chart is created delete the temporary labels/values . In addition to the way CSS is used mentioned by AddWeb Solution, you can also try to add styles directly to
, use the CSS text-indent property. For example, to add an indent of 4 spaces, apply the rule text-indent: 4em; to the element. words: The white-space property specifies how white-space inside an element is handled. To view the purposes they believe they have legitimate interest for, or to object to this data processing use the vendor list link below. The line spacing or line height is the vertical height between lines of text in a rendered html page. Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type. How to create a