Forum Discussion

ḥari's avatar
Frequent Contributor
2 years ago

Image alignment using css attribute

Hi team,
Is it possible to check the image alignment using xss attributes?
Like how we can check text alignment

1 Reply

  • rraghvani's avatar
    Champion Level 3

    If it has CSS styling like,

    .center {
      display: block;
      margin-left: auto;
      margin-right: auto;
      width: 100%;
    <img src="img_paris.jpg" alt="Paris" class="center">

    Then yes you can.