I’m trying to add a circle behind some slider text but I cannot get the circle to be centered with the text. You can see it here–scroll down to ‘Find Your Industry’.
Hey toad78, you have an absolutely positioned div called tp-loop-wrap. If you add 50px left and 100px top to the absolute statement the text becomes centered. Hope this helps.
I’ve been playing with this for awhile and getting nowhere because I cannot test the HTML and CSS that is dynamically inserted by JavaScript.
My impression is that you have too many positioned items and the HTML for the text and circle are illogical because the text is within the red ball’s box and both are {position:absolute} (they should probably both be position abs, but…). They need to be relative to the same object, ie. .fullwidthabanner, that has {position:relative}. I’m suggesting that the text should be moved outside of the circle box, perhaps in parallel with it. Then perhaps
This is just a wild, untested guess, and I may have identified the wrong selectors, but I believe the logic is sound. (My track record of late for untested suggestions is not so hot.)
<rant>
I disagree with the practice of using JavaScript to create non-dynamic content or supplement dynamic content with non-dynamic inline-properties. The page is less functional when JS is disabled (not to mention hard to troubleshoot). </rant>