

Thanks for all the help, I should be able to fix my issue. But as a quick fix, my suggestion will do the work. However this works, as a best practice try to avoid inline css and use classes instead.

This being said, you can easily customize those Classes or create new ones to perform the behavior you need.Īs a simple and quick fix, create new classes based on the ones that are defined on the previous image a remove the property border-bottom: 1px solid #ddd, then you'll control in each cell the border you need since the table will not have borders now. It is an old way to make the solution but it is a very easy way for quick solution and fulfill our requirement. The table record will give you properties to define 4 classes - Style Classes / H eader Style / Odd Line Style and Even Line Style.Īs you can see in the image if you're using the Dublin theme, you can see both classes TableRecords_OddLine and TableRecords_EvenLine with the property border-bottom: 1px solid #ddd, which looks to me that is causing the issue (not really an issue since it's like this by design) you reported: Using display property we can create the same thing. Outsystems is only the platform that generates the code, so table records will be rendered as simple Html tables to which you can add style. This method works with multiple lines of text and the container div will grow dynamically with the content. We can then safely use vertical-align: middle to vertically center the contents of the child div. To place the text on the left side, we use left, like float:left. Since the vertical-align property works with table cells we set the parent div to be a css table and we set the child div as a table cell. To place the text on the right side of the layout, we can simply use right as a value for float.

There are many way to center text using CSS. Answer 2: You can use inner divs to set the margin. Next, we will cover how to align a div and any other elements.Īnd finally we will learn how we can put text and a div together within a container. In this post we are going to learn a little bit about the different ways we can center HTML elements and handle vertical alignment with CSS.įirst we going to learn how to align text with CSS. We usually use HTML to define the markup and structure, while CSS helps us handle the styling and alignment of elements. In the HTML and CSS world, it's all about the layout structure and the distribution of elements.
