Most answered questions in CSS

0 votes
2 answers

CSS custom cursor doesn't work in FF/Chrome

The issue is not with your CSS ...READ MORE

Jun 13, 2022 in CSS by Edureka
• 12,690 points
3,636 views
0 votes
2 answers

Uncaught TypeError: Cannot read property 'setState' of undefined

Use this.delta() = this.delta.bind(this); in place of this.delta. ...READ MORE

Aug 22, 2020 in CSS by Abhishek
15,172 views
0 votes
1 answer

How can a:hover be implemented using inline CSS styles in React?

In React, inline styles do not support ...READ MORE

Feb 21 in CSS by kavya
83 views
0 votes
1 answer

How can you implement flexbox for layout in CSS?

Flexbox is a CSS layout model that ...READ MORE

Dec 17, 2024 in CSS by Navya
113 views
0 votes
1 answer

How to select parent element in CSS?

The :has() pseudo-class, a proposed CSS selector, ...READ MORE

Dec 6, 2024 in CSS by Navya
104 views
0 votes
1 answer

Table with table-layout: fixed; and how to make one column wider

The table-layout CSS property specifies the algorithm ...READ MORE

Aug 8, 2022 in CSS by Tanishqa
• 1,170 points
2,420 views
0 votes
1 answer

How can I make a div stick to the top of the screen once it's been scrolled to?

To make an element sticky, use the ...READ MORE

Aug 5, 2022 in CSS by Tanishqa
• 1,170 points
4,789 views
0 votes
1 answer

Common CSS Media Queries Break Points

We don't need to define separate CSS ...READ MORE

Aug 8, 2022 in CSS by Tanishqa
• 1,170 points
1,394 views
0 votes
1 answer

Is there a CSS selector for elements containing certain text?

You'd need to add a data attribute ...READ MORE

Aug 5, 2022 in CSS by Tanishqa
• 1,170 points
843 views
0 votes
1 answer

CSS for star ratings via FontAwesome

FontAwesome has added half stars to their ...READ MORE

Aug 5, 2022 in CSS by Tanishqa
• 1,170 points
2,040 views
0 votes
1 answer

How to make my font bold using css?

In HTML, use the strong or b ...READ MORE

Aug 8, 2022 in CSS by Tanishqa
• 1,170 points
1,043 views
0 votes
1 answer

CSS-only masonry layout

A masonry feature is included in CSS ...READ MORE

Aug 8, 2022 in CSS by Tanishqa
• 1,170 points
1,653 views
0 votes
1 answer

HTML and CSS: What do the <ul> and <li> tags stand for?

The term ul stands for unordered list. ...READ MORE

Aug 4, 2022 in CSS by Tanishqa
• 1,170 points
6,659 views
0 votes
1 answer

How do I specify row heights in CSS Grid layout?

take an example where the first row ...READ MORE

Apr 1, 2023 in CSS by brain

edited Mar 5 7,634 views
0 votes
1 answer

CSS calc width and height values

Yes, there are CSS variables named vh ...READ MORE

Aug 4, 2022 in CSS by Tanishqa
• 1,170 points
7,504 views
0 votes
1 answer

What does CSS measurement unit 'em' actually stand for?

It stands for "emphemeral unit," which refers ...READ MORE

Aug 3, 2022 in CSS by Tanishqa
• 1,170 points
929 views
0 votes
1 answer

HTML/CSS - Adding an Icon to a button

Here's what you can do using font-awesome ...READ MORE

Aug 3, 2022 in CSS by Tanishqa
• 1,170 points
5,760 views
0 votes
1 answer

Adding style to file upload button in css

The best approach would be to tie ...READ MORE

Aug 3, 2022 in CSS by Tanishqa
• 1,170 points
1,119 views
0 votes
1 answer

Vertical and horizontal align (middle and center) with CSS?

There are many methods : Center horizontal and ...READ MORE

Aug 3, 2022 in CSS by Tanishqa
• 1,170 points
1,423 views
0 votes
1 answer

What is the meaning of "cascading' in CSS??

Cascading simply implies that it may be ...READ MORE

Aug 3, 2022 in CSS by Tanishqa
• 1,170 points
889 views
0 votes
1 answer

How to include bootstrap css and js in reactjs app?

To begin, we will use npm to ...READ MORE

Jul 4, 2022 in CSS by Edureka
• 320 points
878 views
0 votes
1 answer

Fixed position but relative to container

The issue with "fixed" positioning is that ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
10,352 views
0 votes
1 answer

when declaring css styles, what is the meaning of .classA.classB (two class names with a dot in the middle and no space)

The first example (space-separated classes) is a ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
872 views
0 votes
1 answer

Controlling the amount of space in justify-content: space-between

The justify-content property positions flex items on ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
4,674 views
0 votes
1 answer

What is the css / html `root` element?

The:root CSS pseudo-class corresponds to the root ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
817 views
0 votes
1 answer

How to change CSS property using JavaScript

Use document.getElementsByClassName('className').style = your_style. var d = document.getElementsByClassName("left1"); d.className = ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
926 views
0 votes
1 answer

input[type='text'] CSS selector does not apply to default-type text inputs?

Because that is not what it is ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
1,708 views
0 votes
1 answer

How to make div background color transparent in CSS

To begin, we will build a div> ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
2,494 views
0 votes
1 answer

Downloading jQuery UI CSS from Google's CDN

If you mean the jQuery UI CSS, ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
994 views
0 votes
1 answer

Text border using css (border around text)

To apply borders to fonts in CSS, ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
10,283 views
0 votes
1 answer

How to change CSS using jQuery?

You can do either: $("h1").css("background-color", "yellow"); Or ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
554 views
0 votes
1 answer

How to overlay image with color in CSS?

Use the rgba() Function to Overlay Background ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
1,110 views
0 votes
1 answer

How can I set a css border on one side only?

Use four values to add a border ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
816 views
0 votes
1 answer

CSS: Set a background color which is 50% of the width of the window

You can make a hard distinction instead ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
4,316 views
0 votes
1 answer

Multi-Colored text using only CSS

Put your text inside a span> tag ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
3,239 views
0 votes
1 answer

CSS border less than 1px

The minimum width that your screen can ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
8,176 views
0 votes
1 answer

When to use margin vs padding in CSS ?

MARGIN vs PADDING : Margin is used in an element to ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
493 views
0 votes
1 answer

Best way to center a <div> on a page vertically and horizontally?

The legitimate way to do that irrespective ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
636 views
0 votes
1 answer

CSS horizontal scroll

You can use display:inline-block with white-space:no ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
877 views
0 votes
1 answer

How to convert a web page(html,css,js) into android app?

I used Phonegap a lot for this, ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
1,520 views
0 votes
1 answer

CSS filter: make color image with transparency white

You can use filter: brightness(0) invert(1); READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
24,338 views
0 votes
1 answer

Setting the value of REM for all the properties in CSS

We've covered this in comments, but essentially ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
2,203 views
0 votes
1 answer

I am not able to create CSS Dropdown menu

Use any element to open the dropdown ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
698 views
0 votes
1 answer

Set line spacing

Try the line-height property. For example, 12px font-size and 4px ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
1,058 views
0 votes
1 answer

How to add new colors to tailwind-css and keep the original ones?

You can easily add new colors to Tailwind ...READ MORE

Jun 21, 2022 in CSS by Edureka
• 12,690 points
4,213 views
0 votes
1 answer

Make an image responsive - the simplest way

You can try doing <p> <a href="MY ...READ MORE

Jun 21, 2022 in CSS by Edureka
• 12,690 points
563 views
0 votes
1 answer

How to style a checkbox using CSS?

Add focus outline input[type="checkbox"]:focus + span:before { ...READ MORE

Jun 21, 2022 in CSS by Edureka
• 12,690 points
740 views
0 votes
1 answer

CSS/HTML Can't align 3 pictures on the same line

div is inherently display:block you need to use something like ...READ MORE

Jun 21, 2022 in CSS by Edureka
• 12,690 points
1,643 views
0 votes
1 answer

I want to create a small square colour filled box in HTML & CSS. And most important - I want to write one line after the box

Try using the square html entity: <div style="color:blue">&a ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
5,990 views
0 votes
1 answer

Making text in one column italics with CSS

What you can do is using the td:nth-child() to ...READ MORE

Jun 17, 2022 in CSS by Edureka
• 12,690 points
720 views