FAQ   CSS FAQ


Topic Replies Activity
About the CSS FAQ category 1 January 7, 2018
Should we use flex-grow and flex-shrink instead of media queries? 1 October 18, 2018
Setting a border for one or two sides of the element 1 September 28, 2018
Margin property with three values 1 September 29, 2018
Is flex-basis the same as setting width? 5 December 24, 2019
Single declaration 1 September 28, 2018
Why some elements don't have height and width? 3 September 28, 2018
Are padding and margin interchangeable? 1 September 28, 2018
Are margin and padding values the only ones that need reset? 3 November 14, 2019
Oval as a result of border-radius: 100% 3 October 25, 2019
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
What happens if I have both a background-color and background-image? 5 August 24, 2019
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
Should we always use the flex property instead of flex-grow, flex-shrink, and flex-basis properties individually? 1 October 18, 2018
Is CSS the main language used to style webpages? 3 January 16, 2020
What's the difference between display: flex; and display: inline-flex;? 2 January 20, 2020
In CSS, can we select any HTML element by using its tag name as demonstrated in this exercise? 13 November 7, 2019
What are the different methods to add styles to HTML? 1 September 1, 2018
FAQ: Learn CSS Selectors Visual Rules - CSS Setup Selectors - Inline Styles 8 April 10, 2019
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`? 32 November 8, 2019
When is it better to use visibility: hidden? 7 August 24, 2019
Why do my flex items looked stretched? 1 October 18, 2018
Margin in the box model 5 September 17, 2019
Can an HTML element have multiple classes? 4 February 18, 2019
This exercise uses selectors that target elements which are direct children of parent elements. Can we similarly target more deeply nested elements? 15 August 8, 2019
Can all fonts be bolded with the `font-weight` property? 8 December 18, 2018
Is it possible for two selectors targeting the same element to have the same specificity? If so, which styles “win” out? 12 September 17, 2019
What is linear-gradient and why do we need three different background declarations? 3 November 22, 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? 7 June 16, 2019
What are the notable default styles that get applied when we set an element to display: flex;? 1 October 18, 2018