Hello everyone, I am new to this and struggling with formatting text over an image using a CSS button. I need the code to be responsive for mobile devices as well. Any help or advice on this would be greatly appreciated. Thanks in advance, Johnny_P
This is the CSS code:
/* Custom SQUARE CALL TO ACTION Button */
#ctasquare-button-container {
text-align: center !important;
}
#ctasquare-button {
text-align: center !important;
border: solid #000000 2px;
...
}
...
/* END overlay text on image properties */
And here is the HTML:
<div>
<div class="sidebyside">
<img src="http://static1.squarespace.com/static/548c3773e4b0c5db6dc87107/t/559d66a4e4b0f2834cbd26d0/1436378788290/Surface-Sq-Left-Orange.png" width="480"; height="480" alt="ICT in Education" />
<textoverlay>
<h2 class="TitleBlock"><span style="color:white">My Awesome Title</span></h2>
<h2>
<font color="white">This is Where The Subtitle Goes. The Quick Brown Fox Jumps Over The Lazy Dog</font>
</h2>
<div class="ctasquare-button-container">
<a href="/xxx" id="ctasquare-button">Learn More
</a>
<br><br>
</div>
</textoverlay>
</div>
</div>