Align the image with text from description on service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2023 12:40 AM
Hi All,
I have a small query , on service portal on the request form :
As we can see in this image the text from description is not aligned with the image. This item is from PDI
How can we achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2023 12:58 AM - edited 11-02-2023 12:58 AM
Hi @Anubhav24
You can adjust the spacing in description on catalog item
OR adjust the image
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2023 03:33 AM
by adjusting image you mean resize it ? I tired with spacing but wanted to know if there is any configuration behind it but again modifying css will affect all items
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2023 01:20 AM
Unfortunatly the css selector isn't "great", but still doable.
I've set the page specific css to align the image and text in the middle using flex.
div[aria-label="Item Details"] > div:nth-of-type(2) {
display: flex;
align-items: center;
}
Hope that helps 🙂