I am an amateur with CSS and am slowly learning as I customize my site.
One problem that I frequently run into is figuring out which class selector to use to modify different elements.
For example, I wanted to shift this UberMenu flyout to the right, but I didn’t know the class name for the flyout:

When I right-click Inspect in Chrome and hover over the flyout, a line highlights in DevTools, but it’s still not clear which class controls the flyout:
Eventually, after much trial and error, I discovered that I had to call these two classes:
And this code worked:
.ubermenu .ubermenu-submenu-type-flyout {
margin-left: calc(1vw + 1.1rem);
}
My question is: is there a trick to finding out which classes to call to control specific objects? Or is it always just a guessing game?

