Which CSS property is used to control space between cells in a table?
- border-spacing
- cell-spacing
- margin
- padding
The border-spacing property in CSS is used to set the space between the borders of adjacent table cells. This property applies only when the table's border-collapse property is set to separate. Note that cell-spacing is often mistakenly referred to but is not a valid CSS property; it's an attribute for HTML tables but is not recommended for modern web design. Instead, CSS properties like border-spacing should be utilized.
Loading...
Related Quiz
- Which image format supports transparency?
- Using the ______ element, you can group related buttons together, providing a semantic and structural grouping.
- Users are experiencing issues where they complete a form but receive an error stating that required fields are not filled out. How can you ensure that users are alerted to missed fields before submitting?
- What is the use of the "placeholder" attribute in input elements?
- On a recipe website, you need to list the ingredients and steps separately and also allow for a nested list under some of the steps. How would you utilize ordered and unordered lists to structure the content?