![Responsive Square, Circle with CSS only](https://i0.wp.com/webdevpuneet.com/wp-content/uploads/2022/10/responsive-shapes-with-css.png?resize=868%2C675&ssl=1)
Category: CSS
Articles on CSS tips and tricks
![Responsive Square, Circle with CSS only](https://i0.wp.com/webdevpuneet.com/wp-content/uploads/2022/10/responsive-shapes-with-css.png?resize=868%2C675&ssl=1)
![How to maintain aspect ration of YouTube videos with CSS](https://i0.wp.com/webdevpuneet.com/wp-content/uploads/2022/10/reponsive-youtube.png?resize=1080%2C640&ssl=1)
How to maintain aspect ration of YouTube videos with CSS
Hey, you can create responsive YouTube videos with the help of CSS only and maintain its aspect ratio without needing any third-party JavaScript library. The easiest and quickest way to do it is with the following CSS. HTML <div class=”container”>...![Simple CSS blinking cursor](https://i0.wp.com/webdevpuneet.com/wp-content/uploads/2022/09/Screenshot_1-1.png?resize=541%2C168&ssl=1)
Simple CSS blinking cursor
Here is an example of simple CSS only blinking cursor that you can use and modify according to your needs. I have used keyframes to introduce infinite blinking animation to the cursor. See the Pen Simple CSS Blinking Cursor by Puneet Sharma (@webdevpuneet) on...![CSS pseudo selectors for HTML5 Date-Time Picker](https://i0.wp.com/webdevpuneet.com/wp-content/uploads/2022/07/Screenshot_5.png?resize=249%2C215&ssl=1)
CSS pseudo selectors for HTML5 Date-Time Picker
The following eight pseudo-elements are made available by WebKit for customizing a date input’s textbox: ::-webkit-datetime-edit { padding: 1em; } ::-webkit-datetime-edit-fields-wrapper { background: silver; } ::-webkit-datetime-edit-text { color: red; padding: 0...Text aligning center vertically and horizontally in an anchor tag – CSS
Add the following styles to the anchor tag to center/middle align it both horizontally and vetically. a.center-align{ display: flex; flex-direction: column; justify-content: center; text-align: center; }![CSS shapes for reverse curved corners](https://i0.wp.com/webdevpuneet.com/wp-content/uploads/2022/06/Screenshot_9.png?resize=825%2C630&ssl=1)