Questions tagged as 'css'

2
answers

What does "region above the fold" mean?

On the developers google page there are several quotes to this term: "Structure your HTML to load only the critical content of the region above the fold first " What would this region be like above the fold? what part of the HTML would it be?...
asked by 13.07.2015 / 16:37
1
answer

Show image under another with hover css

How do I make the mouse pointer over an image appear with another opacity? For example: I have a div with the cover image of a movie, when I hover the mouse under the div, I would like to display the PLAY button. The only related material...
asked by 12.10.2015 / 17:10
5
answers

How to make a circle in CSS without Border-Radius 100%?

I can circle the css with border-radius . .circle{ border-radius:100%; border:10px solid red; width:100px; height:100px; background-color:purple; } <div class="circle"></div> However,...
asked by 01.12.2015 / 16:43
3
answers

Why is it wrong / bad to repeat an HTML ID?

I think the title says it all, why is it wrong to repeat HTML IDs? I notice lots of people doing things like: <div id="foo">bar</div> <div id="foo">baz</div> To apply CSS and understand the problems that this caus...
asked by 27.07.2018 / 17:10
2
answers

Hide element if it is empty

I have a div that is used to display alerts to the user: <div id="page-alerts" style="margin:25px 0;"></div> Problem Example in JSFiddle For formatting issues, it contains margins at the top and bottom, causing...
asked by 16.01.2014 / 20:28
2
answers

"margin-top" and "margin-bottom" overlapping, why?

I have three elements div : HTML <div class="wrapper"> <div class="box"></div> <div class="box"></div> <div class="box"></div> </div> CSS .box { background-color...
asked by 07.01.2014 / 17:33
4
answers

Does the order of CSS styles influence the render tree?

During the paint of the document by the browser the order of the properties of the CSS classes can interfere in how we perceive the "assembly" of the page? Especially on slower connections, we literally see the styles being applied to the e...
asked by 03.09.2018 / 16:34
4
answers

Different style sheet for each page or only one?

I'm developing a website and I had a question about a rather boring situation ... When you are developing a web design, do you use only one style sheet for the entire site, or do you make a style sheet for each page? Why all css code in ju...
asked by 04.06.2015 / 16:42
1
answer

CSS will-change property: when to use?

According to the W3C specification , the will-change property is intended to inform to the browser which are the CSS properties that will be modified so that it can make optimizations about the elements in question. For example, if I wan...
asked by 13.06.2017 / 17:01
2
answers

Why use / not use * box-sizing?

I've read a lot about discussions about whether or not to use the box-sizing: border-box; property as follows: * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } I know she's very...
asked by 26.11.2015 / 20:42