Linked Questions
25 questions linked to/from Should I avoid using !important in CSS?
33 votes
9 answers
34k views
How to disable stacking of bootstrap justified tabs on small screens
I have seen this post, but being a new user I can't comment to ask for clarification. I'm using the justified nav tabs in Bootstrap and don't want them to stack on small screens, since I only have 2 ...
21 votes
7 answers
32k views
How to set ion-select component with 100% width in IONIC 2
I would like to set my ion-select with 100% of width. I have tried with css class like this: .mySelect { width: 100% !important; } But it is not working.
10 votes
7 answers
11k views
When to use "!important" to save the day (when working with CSS)
#div p { color: red !important; } ... #div p { color: blue; } I understand how !important works, in this case the div will render red because now it has priority (!important). But I can't ...
9 votes
2 answers
63k views
Add inline CSS via jQuery
I don't know jQuery very well so I don't know how to add CSS inline. This is my code: <div class="gm-style-iw" style="top: 9px; position: absolute; left: 15px; width: 23px;"> <div style="...
4 votes
2 answers
16k views
remove excess margin or padding of form in html using css
This is my form in html the blue one is the entire form and the orange one with red border is the excess margin of the form i wanted to remove this on i tried using form{ margin:0; padding:0; } This ...
1 vote
4 answers
7k views
CSS can't find an image url
The below code is all inline CSS. DOESN'T WORK #Image { background-image: url('Images/home.png'); } DOESN'T WORK #Image { background-image: url('http://localhost:63832/Images/home.png')...
2 votes
2 answers
5k views
Font-size being ignored in browsers
I'm trying to set the font size of a table cell, but its not working. I've tried to set size in the css: .myclass { font-size: 10px; } It didn't work. I tried to change it to a relative size: ....
1 vote
1 answer
5k views
Creating very large form elements with twitter bootstrap
I want to create a form for my front page that has very big elements, so I'm thinking I just define some custom css classes, but I'm struggling with how exactly I'm meant to scale everything up, eg ...
7 votes
2 answers
3k views
Border width showing differently for different cells in Firefox
I am dynamically generating table with around 55 rows and 15 columns. I have set boder width of columns to 1px like this #tblId td { border:1px solid #616161; background-color:#EEEEEE; } But ...
1 vote
6 answers
816 views
jquery toggleClass no result
I have a menu which slide toggles in and out on click, but at the same time i'd like to have a grey background around the menu to fade toggle in and out. I don't want to do it with fadeToggle but with ...
1 vote
3 answers
1k views
Ionic Tab active color
I am working on Ionic Tab .I want to show color of my ionic tab blue at starting on view tab .it is working but after click on edit password blue color is displaying on Edit Password but not removing ...
0 votes
4 answers
1k views
CSS a:link,a:active,a:visited dont apply on my tags
I got the following CSS rule in my page: a:link,a:active,a:visited{text-decoration:none;} for some reason It doesnt work.. If I want to apply this rule, lets say inside div with id="test" I need to ...
0 votes
1 answer
2k views
how to override min-width
Wanted to use a custom css option, instead of modifying the source code.Is there any possibility to override these css values please ? @media only screen and (min-width: 40.063em) { .footer-fixed #...
1 vote
1 answer
2k views
twitter bootstrap background image issue
I am creating a website with Twitter Bootstrap and there is a white space at the bottom of the page i.e. I cannot get the background image to cover the entire page without there being whitespace at ...
0 votes
1 answer
1k views
Reducing page height
I've a got a page in mobile where I've tried to turn everything black. I did this as follows: @media (max-width: 768px) {body, html.page-id- 28{background-color: black! important;}} @media (max-...