Material Box

Material Box

WEB Design & Material Images

CSS - Square

CSS

This is an example of CSS for a square.


This HTML code is used to draw a square, which is a shape element, with the tag having the class name "square".

<div class="square"></div>

This CSS code sets the style for a square.
It specifies "width" and "height" as "300px" each and sets the "background" as "royalblue" for the background color.

.square {
	width: 300px;
	height: 300px;
	background: royalblue;
}

CSS - Square

TitleCSS - Square

CategoryCSS

Created

Update

AuthorYousuke.U