FAQ   CSS FAQ


Topic Replies Activity
About the CSS FAQ category 1 January 7, 2018
Setting a border for one or two sides of the element 1 September 28, 2018
Are padding and margin interchangeable? 2 February 15, 2020
Should we use flex-grow and flex-shrink instead of media queries? 1 October 18, 2018
Oval as a result of border-radius: 100% 4 February 15, 2020
Should we always use the flex property instead of flex-grow, flex-shrink, and flex-basis properties individually? 1 October 18, 2018
Single declaration 1 September 28, 2018
Is flex-basis the same as setting width? 5 December 24, 2019
Margin property with three values 1 September 29, 2018
What happens if we try to apply the same id to multiple elements? Will our styles not get applied to the targeted, ided elements? 9 March 3, 2020
Oes a “chained” selector have a higher specificity than a class or id selector? For example, which selector would “win”: `.special` or `h1.special` or `#special`? 34 March 3, 2020
Are margin and padding values the only ones that need reset? 6 February 27, 2020
According to this exercise, `.main p` is more specific than the `p` selector. Is `.main p` also more specific than the `p.main` or `#main` selectors? 6 April 16, 2019
This exercise uses selectors that target elements which are direct children of parent elements. Can we similarly target more deeply nested elements? 16 March 2, 2020
What are the notable default styles that get applied when we set an element to display: flex;? 1 October 18, 2018
Overflow in learn the box model lesson 7 August 27, 2019
In CSS, can we select any HTML element by using its tag name as demonstrated in this exercise? 13 November 7, 2019
When is it better to use visibility: hidden? 8 March 25, 2020
Why some elements don't have height and width? 3 September 28, 2018
0 auto value in Margin 10 March 1, 2020
What happens if I have both a background-color and background-image? 5 August 24, 2019
What is linear-gradient and why do we need three different background declarations? 3 November 22, 2018
Can I use margin: auto; on a flex item that is being positioned with justify-content declared on its parent flex container? 1 October 18, 2018
Can we use flex-wrap and flex-shrink on the same flex container? 6 January 27, 2020
This exercise illustrates how we can use multiple selectors to create more concise code. Are there additional tactics for creating less repetitive stylesheets? 8 January 13, 2020
Why do my flex items looked stretched? 1 October 18, 2018
Is CSS the main language used to style webpages? 3 January 16, 2020
What are the different methods to add styles to HTML? 1 September 1, 2018
Why would we use flex-direction: row-reverse/column-reverse;? 2 November 20, 2018
FAQ: Learn CSS Selectors Visual Rules - CSS Setup Selectors - Inline Styles 8 April 10, 2019