M
M
mr_blond972015-02-19 11:09:56
css
mr_blond97, 2015-02-19 11:09:56

Css, how to override default class like element width?

How to override the default class, for example:
1) the width of this element in bootstrap? I can't write a new fixed width because it in this case should depend on the width of the span. How to describe it in CSS?
9c455fa295ff40af9f15fba5916bd076.PNG
2) there is a default class class="hide", I hide elements with it, i.e. There can be many elements on a page. I need to somehow temporarily disable hide in CSS with a single line in order to look at the page and make sure everything is formatted correctly. Then remove this hide disable line in CSS. The idea is to disable the class in one place for multiple pages, rather than commenting on each hide individually. How to do it? Perhaps you know how to do it differently and better?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
KIN1991, 2015-02-19
@KIN1991

Declare the same class below in the css document, and then when you need to return everything back, remove this class

D
Danila, 2015-02-19
Ridzhi @Ridzhi

I didn’t understand the first, get yourself a debugging class, something like debug. Hang it on the body, in the styles you describe all the rules through this class.

.debug .hide {
    display: block !important;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question