Remove Favorite Button
Best Answer
-
Brett_Moffett Cireson PACE Super IT Monkey ✭✭✭✭✭In short, copy this code to you Custom.css file in the Custom Space folder:
<div>#drawer-taskbar > button:nth-last-of-type(-n+2)</div><div>{</div><div> Visibility: hidden;</div><div>}</div>
In Long, I suck at navigating CSS and working out what values I an give it so I had to get help from @John_Doyle to assist me, so I'll try to explain what happening in this code.
The #drawer-taskbar piece identifies the HTML CSS to look for a tag or ID with the name "drawer-taskbar"
If we were looking for a class with this name it would be .drawer-taskbar
The > sign is telling the CSS to look for all instances of the next item in the line which is button. This selects all the buttons in the Taskbar.
Using nth-last-of-type says to the CSS to find the last of the button type and then giving it (-n+2) tells the item to go back up 2 from the last number.
We then set the Visibility to Hidden and presto.
Now the issue may be that the ID of Drawer-Taskbar might be used elsewhere on other forms, so to limit this to this form we would need to add some extra classes or ID's to the front to limit what buttons it finds.
Hope this answers your question5
Answers
The #drawer-taskbar piece identifies the HTML CSS to look for a tag or ID with the name "drawer-taskbar"
If we were looking for a class with this name it would be .drawer-taskbar
The > sign is telling the CSS to look for all instances of the next item in the line which is button. This selects all the buttons in the Taskbar.
Using nth-last-of-type says to the CSS to find the last of the button type and then giving it (-n+2) tells the item to go back up 2 from the last number.
We then set the Visibility to Hidden and presto.
Now the issue may be that the ID of Drawer-Taskbar might be used elsewhere on other forms, so to limit this to this form we would need to add some extra classes or ID's to the front to limit what buttons it finds.
Hope this answers your question