Posted On April 4, 2019

Basic CSS: Adjust the Margin of an Element

kimconnect 0 comments
blog.KimConnect.com >> Codes >> Basic CSS: Adjust the Margin of an Element
<style>
.injected-text {
margin-bottom: -25px;
text-align: center;
}

.box {
border-style: solid;
border-color: black;
border-width: 5px;
text-align: center;
}

.yellow-box {
background-color: yellow;
padding: 10px;
}

.red-box {
background-color: crimson;
color: #fff;
padding: 20px;
margin: 20px;
}

.blue-box {
background-color: blue;
color: #fff;
padding: 20px;
margin: 10px;
}
</style>
<h5 class="injected-text">margin</h5>

<div class="box yellow-box">
<h5 class="box red-box">padding</h5>
<h5 class="box blue-box">padding</h5>
</div>

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

List Folder Sizes

# Powershell Script to list folders sizes Install-Module PSFolderSize $folders = "\\FILESERVER01\SHARE01","C:\Windows\Users\kimconnect" foreach ($folder in…

PowerShell: Check IP Conflicts of Computers in Active Directory

We have ran into issues where a group of virtual machines living on a DHCP…

PowerShell: Creating Scheduled Tasks on Remote Servers

This script is deprecated. Here is a better iteration. # scheduledTasksRemote_V0.0.2.ps1# Purpose: to add a…