I'm utilizing the Zurb Foundation framework and aiming to create dynamic call-to-action buttons with varying sizes, text, a background gradient, and a right-pointing arrow.
There are three potential approaches I've envisioned:
Employ an a element to wrap another element and style both backgrounds so that one contains the gradient while the other showcases the arrow on the right side.
Utilize just an a element with a gradient background and insert the arrow as an img in my HTML code.
Opt for a single element with a sole background image encompassing both the gradient and arrow for the entire button.
Each of these alternatives seems to have its downsides -
Introducing a non-semantic div solely for aesthetic purposes.
Incorporating an img in my HTML even when it serves only a stylistic function.
This approach may appear messy, particularly if the button needs to be scalable.
What is the recommended practice from these options, or could there be another method that has not been explored? Additionally, how can I ensure that the button scales effectively with the text and arrow correctly positioned as the Zurb Columns adjust in size?
Many thanks! :)