![]() ![]() If in the admin area they are displaying a grid that represents one or more tables in a database then yes it would probably be best displayed as a table. In your question you ask about the admin areas for a CMS. By using :first-child and :last-child selectors we can apply the styles to the correct cells. Typically you would use DIVs for page layout and TABLEs to display tabular data. The elements at the corners must have a border radius all element on the edges must have a border. In the code snippet above we apply the necessary border styles to the relevant th and td table cell elements. The meaning of TABULAR is of, relating to, or arranged in a table specifically : set up in rows and columns. But there are a couple of alternative ways of how we can add some space around those elements. ![]() First things first: there is no magic way of making margin work on these elements other than by changing the display property (which you usually don’t want to change because you lose all table-related formatting). Naive as I am, I first tried to apply margin-top to the elements.īut unfortunately, if you try to apply margin on, or, you will find that it has no effect. Using margin on table elementsĪs you can see in the screenshot at the beginning of this article, there is some space between the main header and the first section and also between the individual sections. Inside the element we have our main header and beneath it several elements that represent separate sections of our table, each of which has its own sub header. Above you see the HTML structure of the table. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |