About this article
Post as a memorandum how to make the posted image look like an icon on Twitter or Instagram!
[environment] ・ Ruby 2.6.5, Rails 6.0.0 ・ MacOS
You can easily implement it by adding the following description in the style.css file.
.name of the class{
width: ○px;
height: ○px;
border-radius: 50%;
}
In addition, if you want to add a border to the icon and border it, add the following.
border:△ px solid color code (#00ffff etc.);
There are various other ways to make it look like an icon, but for beginners to implement it quickly This method is recommended!
Recommended Posts