Horizontally center a div within a div using CSS style

Sometimes we need to horizontally center a div that is within another div using CSS that make the inner element center horizontally. In that case, you don’t have to set the width to 50%. So, […]
Sometimes we need to horizontally center a div that is within another div using CSS that make the inner element center horizontally. In that case, you don’t have to set the width to 50%. So, […]
Want to change the color of a placeholder of your input fields? Here is an example that helps you to change the color of a placeholder. Basically, there are three different implementations i.e. pseudo-elements, pseudo-classes, […]
Overflow with text is always a big issue in a website, especially in a programmatic environment. Use Ellipsis to truncate string. We can provide a solution by adding an CSS property overflow: hidden setting to […]
There is a CSS standard way by which you can disable the highlighting effect i.e. disable text selection when you select any text. This can be done using JavaScript but using CSS you can achieve […]
Making a website rather than mobile view is easy but now a days you must have to build the view on mobile also. You need to know some CSS tricks. Here are some CSS tricks […]