Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between border and border-style

Tags:

css

primefaces

I remove all borders of my primefaces panelgrid component using these ways:

First one:

.table, table td {
    border-style: hidden !important;
}

Another one:

.table, table tr, table td {
    border: none !important;
}

What is the difference between border and border-style property?

like image 898
John Alexander Betts Avatar asked Aug 04 '26 16:08

John Alexander Betts


1 Answers

border is a shorthand notation for setting border properties.

See the details at: http://www.w3.org/TR/css3-background/#the-border-shorthands

like image 74
Marc Audet Avatar answered Aug 08 '26 00:08

Marc Audet