Custom widget help with HTML

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2023 01:20 PM
hi all,
I am trying to make a widget that I cloned from the HRI employment information widget. I need the widget to look like this. All this information are pulled from the HR Profile table [Overall background clearance, Opened date, Closed date, Drug test status are all custom fields]
Right now this is what I have, but I need to make it like the screenshot above. The name of the field should be on left side and the value of the field should be on the right side. I know I need to edit the HTML but I been having no luck figuring this out.
Here is the code that is on the HTML, Client and Server Script. This is pretty much the code on the HR Employment Information widget. I have changed line 5 on the client script to the 4 custom fields only. Overall background clearance, Opened date, Closed date, Drug test status
 
 
 
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2023 01:48 PM
Did you copy the CSS as well from the original widget? It looks like a lot of the formatting missing is related to that not being set so start with that.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2023 01:50 PM
there is nothing on the CSS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2023 02:31 PM
This is absolutely a trial on my part. I don't have that widget in the instance I have access to for testing, but here is a potential CSS you can try.
sp-editable-field:first-child > span {
font-weight: bolder;
}
sp-editable-field:first-child > span {
font-weight: bolder;
color: #2c7521;
}
sp-editable-field > :first-child {
float: left;
}
sp-editable-field > :last-child {
float: right;
}
sp-editable-field > span {
font-weight: bold;
}
sp-editable-field {
border-bottom: 1px solid black;
}
p {
border-bottom: 1px solid black;
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2023 02:46 PM
I have tried it and it didnt really change the look