PDA

View Full Version : Add banner stretched across header


Greek76
10-08-2020, 06:45 PM
I'm trying to make my banner stretch across the whole forum but its not working with the code I'm adding. Can someone point out what I'm doing wrong? Thanks!

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<td align="left"><a href="https://www.example.com/forum/forum.php"/><img src="/index/we3.gif" border="0" width="100%"/></a></td>
</td>
</tr>
</table>
<div class="above_body"> <!-- closing tag is in template navbar -->
<div id="header" class="floatcontainer doc_header">

<!-- content table -->

--------------- Added 1602274406 at 1602274406 ---------------

Wow this forum really is dead.. What a shame. It used to be so busy.

TheLastSuperman
10-16-2020, 09:13 PM
Try this, it will also help you understand some basic CSS if you're new to that as well! :)
Edit: Take out the <td> and table-related codes, a good rule of thumb is to always use <div> class or style whenever possible in vB4. The table codes are older and only used when applicable per case-use or situation. Div classes and inline style are more modern for vB4, you can also pull off the same if not better appearance using div classes with CSS definitions.

https://vborg.vbsupport.ru/showthread.php?t=228319