Basic CSS properties for style sheets

王林
Release: 2023-09-02 10:25:01
forward
1197 people have browsed it

We can use CSS to define the style of the table. The following properties are commonly used to style

  • border

    CSS border properties are used to define borders -width, border-style and border- color.

  • border-collapse

    This attribute is used to specify whether

and its elements -
  • caption

    caption-side property is used to position the table title box vertically.

  • empty-cells

    This property is used to specify the display of empty cells in the table.

  • table-layout strong>

    Defines the algorithm used by the browser to lay out the rows, columns, and cells of a table.

  • Example

    The following example illustrates the style of the table-

    Real-time demonstration

        
    
    Demo caption
    demo
    demo
    demo demo
    Copy after login

    Output

    This This gives the following output -

    样式表的基本 CSS 属性

    Example

    Live Demonstration

        
    

    Team Rankings

    Team (Test) Rank
    India 1
    Australia 2
    Team (ODI) Rank
    India 1
    England 2
    Copy after login

    Output

    This gives the following output -

    样式表的基本 CSS 属性

    elements should have shared or separate borders.

    The above is the detailed content of Basic CSS properties for style sheets. For more information, please follow other related articles on the PHP Chinese website!

    source:tutorialspoint.com
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!