javascript - How can I remove a CSS style? -


i want remove style in bootstrap, example:

test.html:

<div class='span1'></div> 

bootstrap.css:

span1 {   width: 60px;  } 

and want remove width style, , add min-width: 60px style

i this:

add test class in html:

<div class='span1 test'></div> 

in css:

.test{   min-width: 60px; } 

but how can remove width: 60px in bootstrap.css?

you can reset width using auto:

.test{   width: auto;   min-width: 60px; } 

working example:

span {    width: 100px;    background-color: red;  }    span.test {    width: auto;    min-width: 60px;  }
<span class="test">    span!  </span>


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -