Questions tagged [display]

Display refers to a style property in CSS. Common values include - but are not limited to - block, inline-block, inline, table, flex, none.

The CSS display property is specified using keyword values. Keyword values are grouped into six value categories:

.element {
  display:  [ <display-outside> | <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy> ;
}
2923 questions
658
votes
7 answers

What is the difference between display: inline and display: inline-block?

What exactly is the difference between the inline and inline-block values of CSS display?
Logesh Paul
  • 7,600
  • 3
  • 26
  • 23
355
votes
9 answers

Show DataFrame as table in iPython Notebook

I am using iPython notebook. When I do this: df I get a beautiful table with cells. However, if i do this: df1 df2 it doesn't print the first beautiful table. If I try this: print df1 print df2 It prints out the table in a different format…
Chris
  • 12,900
  • 12
  • 43
  • 65
81
votes
4 answers

CSS: Is a hidden object clickable?

If the visibility property of the style of an HTML element is set to hidden, is it still clickable? When the display property is set to none, the element is not even part of the DOM tree, so that is not a problem. But I was wondering if a hidden…
euphoria83
  • 14,768
  • 17
  • 63
  • 73
44
votes
2 answers

How can I access IPython's "display" function?

I tried this code, expecting it to use IPython's display function: import pandas as pd data = pd.DataFrame(data=[tweet.text for tweet in tweets], columns=['Tweets']) display(data.head(10)) But I get an error message that says NameError: name…
Matt Wonderwall
  • 551
  • 1
  • 4
  • 8
34
votes
8 answers

JavaScript - add transition between display:none and display:block

I am using JavaScript to toggle notification like below. How can I add transition between display: block and display: none; I don't want to add an external library like jQuery because I am only going to be using the toggle effect alone. var btn =…
Abk
  • 2,137
  • 1
  • 23
  • 33
33
votes
6 answers

Is there a selector to exclude display: none elements?

I want to select only whose parents have display: block and exclude those whose parents have display:none. Is there any way to accomplish this?
alex
  • 7,111
  • 15
  • 50
  • 77
33
votes
1 answer

Display property differences for inline-*something*

I noticed that people covered specifics of some display properties in a 1:1 comparison, but there are quite a few that have not been covered in illustrating the differences. Could someone explain the differences between the various inline-something…
NBeers
  • 411
  • 1
  • 6
  • 11
32
votes
2 answers

Dollar Sign with Thousands Comma Tick Labels

Given the following bar chart: import numpy as np import matplotlib.pyplot as plt import pandas as pd df = pd.DataFrame({'A': ['A', 'B'], 'B': [1000,2000]}) fig, ax = plt.subplots(1, 1, figsize=(2, 2)) df.plot(kind='bar', x='A', y='B', …
Dance Party2
  • 7,214
  • 17
  • 59
  • 106
27
votes
3 answers

What is display:ruby

While going through the css drafts spec for display properties came across this property display:ruby A little bit of search explained that is used for showing Japanese characters . is this the only use case? (using it for normal text doesnt do…
semuzaboi
  • 4,972
  • 5
  • 20
  • 35
25
votes
4 answers

Best replacement for font tag in html

Since the font tag in HTML is being deprecated in HTML5 (and I understand why) is there a clean solution for applying certain attributes and styles to only portions of a paragraph text? I'm using JavaScript to parse an XML file that relies on the…
Taylor Lopez
  • 813
  • 1
  • 8
  • 28
22
votes
4 answers

Align two divs horizontally (one on extreme left and the other on extreme right of container)

I'm working on a game website and want to place two divs inside a 'header' div such that they are horizontally aligned and to the left and right of this container div. See below for an example: Oli …
oli5679
  • 1,709
  • 1
  • 22
  • 34
19
votes
3 answers

Samsung Galaxy S8 full screen mode

Latest Samsung's smartphone has interesting feature called full screen (or in marketing terms infinity display). In this mode app covers also part of display where home/back buttons are. Usual apps don't cover this area, leaving it black. But…
Barmaley
  • 16,638
  • 18
  • 73
  • 146
17
votes
4 answers

How to get scrolling in a CSS grid?

I have a component embedded in a css-grid. In stack blitz I have an external grid of 3 rows. The one of the rows has a min-width. How do I get it to scroll horizontally if the viewport is smaller than the min-width? Within the middle row I have a…
ed4becky
  • 1,488
  • 1
  • 17
  • 54
17
votes
2 answers

How to round values only for display in pandas while retaining original ones in the dataframe?

I wish to only round values in the DataFrame for display purposes, when I use head() or tail() but I want the DataFrame to retain the original values. I tried using the round method but it changes the values in the original DataFrame. I don't wish…
xennom
  • 171
  • 1
  • 5
16
votes
8 answers

Get the number of items in cart in wordpress using woocommerce

i'm actually developping a website. But i'm facing an issue. I need to display the number of item that are in the cart but only the number, nothing else i dont want total amount or anything else. Juste the number of items. I aim to display it over…
Nemzytch
  • 171
  • 1
  • 1
  • 7
1
2 3
99 100