Questions tagged as 'css'

3
answers

How to make a progress bar that goes from 0 to 100% with CSS only?

I need to make a progress bar that starts from 0 and goes to 100%. But I need to do only with CSS, and besides that, I need it when it reaches 100%, start again from 0. Although there is some information about this progress bar, I need it to...
asked by 14.12.2017 / 13:23
4
answers

What is the difference between display: none and visibility: hidden?

I know that both hide the element, but there is in practice some difference between: #foo{ display:none; } and #foo { visibility:hidden; }     
asked by 20.12.2014 / 20:53
6
answers

What is the difference between padding and margin in CSS?

So I realize that I see a setback to another element when the left, top, right e bottom. Is there a difference between margin and padding in CSS? A response with examples (images or code) would help a lot in understand...
asked by 14.03.2017 / 15:36
4
answers

Is it possible to make a tooltip with pure CSS?

Is it possible to make a tooltip with pure CSS? That is, without jQuery, without Javascript, but only with CSS. For example, I want to do this based on the following element: <a href="#" data-tooltip="Meu texto aqui" >LINK</a>...
asked by 04.12.2015 / 13:00
1
answer

What is the difference between SASS and SCSS

I've been reading about SASS for quite some time and it provides a powerful set of functionality for CSS like variables, mixins, and the like. And at the same time I see the term SCSS. What's the difference between the two? Are they the same...
asked by 15.03.2015 / 23:34
5
answers

How to print content inside an HTML div?

I have a page and in it the content I want to print. I created a command in JavaScript, but this command makes the whole page print. Is there any way to print only the contents of a div ?     
asked by 21.12.2013 / 04:20
6
answers

How to vertically center the content of an element?

I'm trying to vertically center the content of an element that has position: absolute . I've been able to make the content position half-way down the container , however, halfway up the space is "left over." How can I solve this jus...
asked by 12.12.2013 / 01:06
3
answers

Why is it not recommended to use "_" (underscore) in HTML / CSS?

I've seen people recommend never using _ ( underscore ) in HTML and CSS. Instead, we should give preference to - . Example: // Errado <div id="minha_div" class="minha_classe"></div> // Certo <div id="minha-div"...
asked by 10.06.2014 / 15:54
1
answer

What is the difference between the "element element" and "elementelement" selectors?

I was looking at the Twitter Bootstrap code, and I found this css: .table-condensed>tfoot>tr>td { /* ... */ } In the operating sense, what would be the difference between just putting a space between the elements, and putting...
asked by 20.01.2014 / 23:49
7
answers

Reduce the size of an image and maintain the aspect ratio with CSS

If I have a horizontal image (320x205), <div class="container"> <img src="imagem.jpg" width="320" height="205" /> </div> and I put the CSS rule .container img { max-width: 200px; } , the reduction is not proporti...
asked by 17.09.2014 / 23:46