The current article is intended for demonstration purposes and shows how to simply draw a diamond using only CSS.
On this blog, a lot has been said for those who already are in the coding business, and those who have just started their journey. The people we usually tend to forget are those who are aspiring to join the geek league.
Sometimes a web page needs some special elements such as arrows or ribbons, and the simplest way to create them is to apply particular CSS styles for elements to change their shapes.
One of the undeniable perks of being a programmer is the huge heap of choices you have when it comes to languages, frameworks, platforms, methodology and almost everything else.
The major problem of ordinary drop-down lists (select tags) in HTML is their inability to be styled with CSS styles. This article demonstrates a drop-down list which is made of HTML elements such as label, div and input which, in turn, can be easily styled with CSS.
Animation used in the following article can be applied to images in blocks where blocks are presented as a list of articles/posts/news on websites with this specific design.
Nowadays, there are more and more websites which display articles/posts/news as square boxes in several columns where each square has a main image and the title of the article/post/news. The following article contains an example of a simple animation for the main image which can make such squares look more attractive.