Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove the border line in a div-CSS

Tags:

html

css

border

I'm using the following css to style a div:

.mod head-update{
    height: 40px;
    border-style: none!important;
    padding-bottom: 20px;
    padding-top: 20px;
}

Yet I get 2 grey lines at the top and bottom of the div. How can I remove it?

like image 634
Sarti Avatar asked Nov 11 '14 08:11

Sarti


1 Answers

You should most probably fix your selector head-update with a class . or ID # like: .head-update (or #head-update ?)

Try with

border: none !important;

(P.S note the space between none and !important)

like image 184
Roko C. Buljan Avatar answered Sep 23 '22 07:09

Roko C. Buljan