From 9885d435483797e447b99f000d57fc130a4b561a Mon Sep 17 00:00:00 2001 From: Kumi Date: Fri, 2 Aug 2024 22:41:56 +0200 Subject: [PATCH] feat: add alignment utility classes for flexible layout Introduced .alignright, .alignleft, and .aligncenter utility classes to enable flexible alignment of elements. These classes assist with consistent layout styling by allowing elements to float left or right with appropriate margins or align centrally. Addresses layout requirements for dynamic content placement. --- style.css | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/style.css b/style.css index 123e626..5e3e68f 100644 --- a/style.css +++ b/style.css @@ -88,4 +88,23 @@ a h5 { #doi-link { color: #333; text-decoration: dashed; +} + +.alignright { + float: right; + margin-left: 20px; + margin-bottom: 20px; +} + +.alignleft { + float: left; + margin-right: 20px; + margin-bottom: 20px; +} + +.aligncenter { + display: block; + margin-left: auto; + margin-right: auto; + margin-bottom: 20px; } \ No newline at end of file