The float property is used for positioning the HTML elements horizontally either towards the left or right of the container. For instance, float-demo { float: right; } Here, the element to which the class is applied ensures that the element is... Read More
CSS
No, it doesn’t affect the inline elements. Inline elements flow with the contents of the page. Read More
“Cascading” refers to the process of going through the style declarations and defining the weight or importance of the styling rules that help the browser to select what rules have to be applied in times of conflict. The conflict here refers to... Read More
Opacity refers to the degree to which the content is transparent or opaque. We can use the property named opacity which takes the values ranging from 0 to 1. 0 specifies that the element is completely transparent where 1 means that the element is... Read More
Adaptive Design Responsive Design The adaptive design focuses on developing websites based on multiple fixed layout sizes. The responsive design focuses on showing content on the basis of available browser space. When a website developed... Read More
This article covers the most frequently asked CSS interview questions in 2022 for freshers and experienced candidates. What is CSS? CSS stands for Cascading Style Sheet. It is a stylesheet language that defines how the elements (or contents) in a... Read More
Flexbox stands for flexible box and it was introduced around 2017 in CSS with the purpose of providing an efficient way to handle layouts, align elements within them and distribute spaces amongst the items in dynamic/responsive conditions. It... Read More
Block Element: The block elements always start on a new line. They will also take space for an entire row or width. List of block elements are <div>, <p>. Inline Elements: Inline elements don't start on a new line, they appear on the... Read More
There are different ways to include a CSS in a webpage, 1. External Style Sheet: An external file linked to your HTML document: Using a link tag, we can link the style sheet to the HTML page. <link rel="stylesheet" type="text/css" href=... Read More
It is a CSS unit used to measure the height and width in percentage with respect to the viewport. It is used mainly in responsive design techniques. The measure VH is equal to 1/100 of the height of the viewport. If the height of the browser is... Read More