Move Hubspot Widget slightly to the right with CSS?
I am having this problem with trying to move the hubspot widget but unable to make this work. The widget aligns left and I am trying to move the widget button slightly to the right. This is what I have: (This is within the CRM system GoHighLevel)
Move Hubspot Widget slightly to the right with CSS?
@AldenZuck Your "yourNewClass" class isn't being applied to the iFrame because the code is running before the chat iFrame has been loaded in. Either wrap the code in a window load function so it runs after the element has rendered (which may cause some jumping):
Move Hubspot Widget slightly to the right with CSS?
@AldenZuck Only just now realizing your code was using className += with this the class of the element was becoming "widget-align-leftyourNewClass" with no space between the classes, so it wasn't being seen as it's own class. Try switching to using .classList.add("yourNewClass"), this will make it it's own class.