|
Please help with minor code mod.
Hi everyone, if you are reading this thank you for taking the time. I have a minor code riddle, that I know one of you code gurus out there will solve in seconds. My code is for a paypal logo stripe, right now its just some HTML with a little Java. It aligns the logo to the right. That is what I WANT for desktop computers. However my site is responsive, so when the screen reduces to a Phone size screen I would like to set the Logo to center.
Heres my code that is working for Desktops:
<table align="right" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td align="center">
<a href="#" onclick="javascript:window.open('https://www.paypal.com/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');"><img alt="Solution Graphics" border="0" src="http://jlfiberoptic.com/image/horizontal_solution_PPeCheck.gif" /></a></td>
</tr>
</tbody>
</table>
I want if the screen size is 481px and below to <table align="center" (not "right")
How can I do this with inline CSS, HTML or JavScript?
Please help..
|