Я использую HTML в Power Automate и использую функцию заполнения влево, чтобы попытаться сдвинуть метки вправо.
Однако это не работает. Ниже приведен код.
<html>
<style>
.email-container2{
border: 3px solid gray;
}
span.name { color:blue
}
.bottom-border{
border-bottom: 30px solid blue;
}
.bottom-border1{
border-bottom: 3px solid gray;
}
.underline{
text-decoration-line: underline;
text-decoration-color: blue;
}
.email-container1 {
border: 3px solid gray;
}
.right{
margin-left: 80%;
text-align: right;
}
p.x1 {
padding-left:10%;
}
p.x2 {
}
p.x3 {
;
}
p.x4 {
text-align: right;
}
p.x5{
}
.img-container {
text-align: left;
height="20";
width="20";
}
.img-container1 {
text-align: right;
width="100";
}
</style>
<head>
</head>
<body >
<div class = "email-container" >
<div class = "bottom-border">
<div class = "bottom-border1">
<div class ="content">
<div class="row" style="width:100%">
<div class= "img-container" style="width:50%">
<img src= https://careers.electronicsforu.com/wp-content/uploads/2016/11/tata-steel-logo.jpg alt="Airplane" >
</div>
<div class="img-container1" style="width:50%">
<img src= https://privatecdn.sharepointonline.com/tslin.sharepoint.com/sites/BoardingPass-Aviation/SiteAssets/SitePages/BoardingPass-Aviation/82731TataSteel_Aviation.jpg >
</div>
</div>
<br />
<div>
<div class = "email-container1" style="background-color:powderblue;">
<h4 align="center">
TATA STEEL AVIATION SERVICES</h2>
<h2 style="color:blue" align="center"> Boarding Pass</h2>
<p class ="x5" style="font-size:28px" ;> Date: <u><strong><span class="name">@{items('Apply_to_each')?['Date']}</span></strong></u></p>
<p class ="x1" style="font-size:28px">Name: <u class="underline"><strong><span class="name">@{items('Apply_to_each')?['Name1']}</span></strong></u></p>
<p class ="x2" style="font-size:28px">Aircraft Regn: <u class="underline"><strong><span class="name">@{items('Apply_to_each')?['AircraftRegn']?['Value']}</span></strong></u></p>
<p class ="x3" style="font-size:28px">Sector: <u class="underline"><strong><span class="name">@{items('Apply_to_each')?['Sector']}</strong></span></u></p>
<p class ="x4" style="font-size:22px" >Signature: <u ><strong><span class="name">@{items('Apply_to_each')?['Signature']}</span></strong></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
Я пробую использовать левый край, и он работает, однако при использовании левого поля цвет фона становится белым. Как мне использовать padding-left, чтобы сделать здесь то же самое.
Вот изображение, когда я использую margin-left:
Here is the image when I use padding-left
введите описание изображения здесь