FAQ   CSS FAQ


Topic Replies Activity
About the CSS FAQ category 1 January 7, 2018
Are padding and margin interchangeable? 1 September 28, 2018
Single declaration 1 September 28, 2018
Are margin and padding values the only ones that need reset? 3 November 14, 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
FAQ: Learn CSS Selectors Visual Rules - CSS Setup Selectors - Inline Styles 8 April 10, 2019
What happens if I have both a background-color and background-image? 5 August 24, 2019
What are the different methods to add styles to HTML? 1 September 1, 2018
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
When is it better to use visibility: hidden? 7 August 24, 2019
When should I use px vs rem vs em? 2 November 19, 2019
Min/max-width/height on text elements vs just font size 6 August 24, 2019
This exercise illustrates how we can use multiple selectors to create more concise code. Are there additional tactics for creating less repetitive stylesheets? 6 April 24, 2019
Collapsing margins 6 November 4, 2019
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
Can an HTML element have multiple classes? 4 February 18, 2019
Overflow to scroll not working without height 2 November 21, 2019
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
Margin property with three values 1 September 29, 2018
Should we always use the flex property instead of flex-grow, flex-shrink, and flex-basis properties individually? 1 October 18, 2018
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
Why are there no units on the flex-grow value? 1 October 18, 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
Is Bootstrap the only CSS framework? 1 September 15, 2018
What is linear-gradient and why do we need three different background declarations? 3 November 22, 2018
When should I use id selectors vs class selectors? 1 September 1, 2018
Margin in the box model 5 September 17, 2019
Is flex-basis the same as setting width? 4 March 16, 2019
Oval as a result of border-radius: 100% 3 October 25, 2019
Setting a border for one or two sides of the element 1 September 28, 2018