Most voted "css-display" questions
13 questions
Sort by count of
-
47
votes4
answers40074
viewsWhat is the difference between display:None and visibility:Hidden?
I know you’re both hiding the element, but there’s actually a difference between: #foo{ display:none; } and #foo { visibility:hidden; }…
-
14
votes2
answers1129
viewsWhat is the purpose and how to use the "display: Contents" of the CSS?
I recently saw that there is a new kind of display in the CSS the display: contents, but I didn’t quite understand the intention of using it? https://developer.mozilla.org/en-US/docs/Web/CSS/display…
-
7
votes2
answers310
viewsFloat vs. inline-block. What are the advantages and disadvantages of each?
I would like to know the advantages and disadvantages of using the properties float and display with the value inline-block. I know that both work to align elements, but I try to know the pros and…
-
5
votes1
answer374
viewsIs it correct to use H1, H2 with None display in order to SEO or are they penalized by search engines?
I looked here ,but I did not find any topic addressing. If already there, please mark as duplicate. I have a problem. My client’s logo cannot be reproduced through fonts and clean CSS, and in his…
-
4
votes2
answers85
viewsFunction Optimization (probably with for loop)
I’m having trouble developing when we talk about for... The basics I can understand now in practice... People have developed this code and I believe it can be reduced to a few lines with for. Notice…
-
2
votes1
answer1977
viewsHow to put Scroll in table inside div with width 100%?
The example shows a div with scroll horizontally, but would like the table along with the scroll div to adjust 100% to the screen size. .div { border: solid; display: inline-block; width: 300px;…
-
2
votes2
answers2299
viewsMake all LI to the height of the largest using CSS
I have some elements <li> that I guide to stay inline-block. However, as the content of each <li> it’s different, they end up getting DIFFERENT HEIGHT. Kind of like this: However, the…
-
2
votes2
answers139
viewsHow to display/hide an element in Javascript
I want to view and hide items from a list when the input is clicked. The code works if in css the ul tag has display:block, but not when it’s display:None; which is what I want. Javascript:…
-
1
votes1
answer75
viewsUnnecessary space in the sales module div
I have a question for you. My problem is that the space in the display is too big if I hide the same options in the shopping cart! My code hides the image of the product but the white space (empty)…
-
1
votes1
answer102
viewsGoogle’s Pie Chart is deformed when called by Javascript function
Hey there, guys. I’m having trouble making a chart that is "display:None" in "display: block" through Javascript. The problem is that when I make the graph visible it gets smaller than expected. The…
-
0
votes0
answers99
viewsIdentify if it is blog and hide div - Wordpress
I put a div called "imagem_top" and I want it to have the property display: none when it’s the blog page, Woocommerce product or post. I’ve tried to put in functions.php, header.php, page.php and…
-
0
votes2
answers152
viewsWay not to break a line when creating an input element
I started a project in HTML, CSS and Javascript and came across the following situation: when I create an input element in html it automatically skips a line in relation to the other elements, I…
-
0
votes1
answer29
viewsbehavior of nested containers
Because the text-align=center of a container also reflects on your container intern? .container-externo { border: 1px solid red; display: flex; text-align: center; } .container-interno { border: 1px…