Questions tagged as 'css'

3
answers

How to add a div or p within a table

Well I have a table that I set up with css. I need to add a note within a few lines, ie it will not be on all lines. The problem and I'm not getting it, I tried to post the doubt here in another way, but the solution was not very good. Goo...
asked by 07.02.2017 / 14:04
2
answers

How to leave an element invisible when the value is 0?

I'm making a kind of "simple notification system" in CSS . What I want is that when the number of notifications is (0) it stays with display:none; . I know a way I think it's possible to do. Ex: .bolinha [style*="t...
asked by 04.06.2014 / 05:16
2
answers

How to force cache cleaning in my visitors' browsers

I usually update my site style sheet (CSS) a lot. What happens is that my visitors see no differences. Is there any script or something that forces cleaning? Example: On next access the cache will be cleared. Some cookie that makes the cache las...
asked by 18.06.2014 / 06:00
3
answers

What is the correct way to remove the border with CSS?

To remove borders in CSS I usually use one of two values: .exemplo{ border:0; /* ou */ border:none; } The funny thing is that both work, and this happens with other properties like outline , but which of the two properties...
asked by 09.06.2014 / 19:52
2
answers

How to make a vertically zebrated table (toggle column colors)?

I know how to make a horizontally zebrated table, ie each row with alternating colors (the famous color yes and no color). I wanted to know now how I could by css to change the colors of the columns: the first column of a color and the second...
asked by 08.04.2017 / 17:56
4
answers

Why "html, body" and not just "body" to delete page margins?

When you want to delete the default margins of the page, I always see the following CSS code: html, body{ margin: 0; padding: 0; } Why use html, body if using only body what is the body page already solves? Example:...
asked by 09.02.2018 / 02:17
2
answers

What is the difference between the: nth-child and the: nth-of-type?

Most of the time I use : nth-of-type but I did not quite understand the difference between the two, can anyone explain?     
asked by 12.04.2018 / 19:47
2
answers

How do I remove the default (browser) arrow in the select tag?

I'm doing a < select > customizable. The problem is the different renderings that happen in browsers. In fact, you would just have to hide the arrows that appear: in IE: andinFF: In Chrome and Opera they were hidden (Same render...
asked by 06.01.2015 / 19:57
2
answers

How to resize image to container size?

I have a div with 1184x308px and want to be placed inside images that are dynamic. Because images can be loaded with any dimension, how can I adjust the dimensions of div ?     
asked by 03.03.2015 / 11:02
2
answers

Scrollbar Customization

Today, can we only use CSS to change the scroll bar customization of a DIV? If so, how can I do it? Otherwise what is the best script and how to use it?     
asked by 01.10.2015 / 22:38