Hey, I have a stupid question. How do I modify code so that it is aligned with my logo. If you view http://energycrysis.net I think you will see the problem. My adsense, logo, and data are all on top of each other, when I'd like them to be flat. Thanks! CODE:
In essence I think the below should work. But I'd need to see a little more to be certain. Let me know if it does or not! echo ' <td class="sefabg" valign="middle"><img src="', $settings['images_url'], '/imageLOGO.png" style="margin: 0px;" alt="Energy Crisis" />'; echo '<script type="text/javascript"><!-- google_ad_client = "pub-xxxxxx"; /* blah blah */ google_ad_slot = "xxxxxxxxxx"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></td>'; // If the user is logged in, display stuff like their name, new messages, etc. if ($context['user']['is_logged']) PHP: Cheers! - Dan.
Sorry forgot to mention that the above was logo and the below was header. I have now encountered another problem ><. This is what I have so far: echo ' <td class="sefabg" valign="middle"><img src="', $settings['images_url'], '/logo.png" style="margin: 0px;" alt="Energy Crisis" /></td>'; echo ' <td valign="middle" align="center" width="100%" height="100%"> <script type="text/javascript"><!-- google_ad_client = "x"; /* x */ google_ad_slot = "x"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>'; // If the user is logged in, display stuff like their name, new messages, etc. if ($context['user']['is_logged']) { echo ' <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br /> <a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />'; PHP: I think you need to view the site in order to see the problem... The adsense is in a good position now, also the logo, but its the text thats annoying me now... I want it positioned to the right (but whatever I do it makes it go to the right but with 2 characters, a new line, another characters, etc.)
echo ' <td class="sefabg" valign="middle"><img src="', $settings['images_url'], '/imageLOGO.png" style="margin: 0px;" alt="Energy Crisis" /></td>'; echo '<td class="sefabg" valign="middle"><script type="text/javascript"><!-- google_ad_client = "pub-xxxxxx"; /* blah blah */ google_ad_slot = "xxxxxxxxxx"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></td>'; // If the user is logged in, display stuff like their name, new messages, etc. if ($context['user']['is_logged']) PHP: The above creates a new table row for the adsense meaning it should not affect the text. Is this more what you mean?