vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Style and Graphics Requests (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=226)
-   -   Help with banner on header (https://vborg.vbsupport.ru/showthread.php?t=212431)

trotskid 04-29-2009 12:52 PM

Help with banner on header
 
1 Attachment(s)
Hello. I hope open soon the forum but there is a questi?n that I can?t resolve.. I have created a banner for the header but it requires a modification on CSS to be fixed with the width of the screen (or resolution the user use). My code is simple, but it can?t show properly. My idea is similar to Driverheaven.net?s banner (as example).

Can somebody help me with that? I have some knowledge with PS, but not with CSS :/

Greetings

PS: Here?s the code (header) from the style with banner divided in three with bad results:

Code:

<div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" style="background-image:url($stylevar[imgdir_misc]/headbg2.gif)">
    <td>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="left" valign="top"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/head_left2.gif"  border="0" alt=""/></a></td>

<td align="right" valign="bottom"><img src="$stylevar[imgdir_misc]/head_right2.gif" alt="" /></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td background="$stylevar[imgdir_misc]/header_bottom.gif"><img src="$stylevar[imgdir_misc]/header_bottom.gif" width="10" height="1"></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="23"><img src="$stylevar[imgdir_misc]/time_bar.gif" alt="" width="23" height="20"></td>
    <td background="$stylevar[imgdir_misc]/time_bar.gif"><div align="right"><font color="#FFFFFF" face="Tahoma"><strong>$vbphrase[all_times_are_gmt_x_time_now_is_y]&nbsp;&nbsp;</strong></font></div></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td background="$stylevar[imgdir_misc]/time_shadow.gif"><img src="$stylevar[imgdir_misc]/time_shadow.gif" alt="" width="23" height="7"></td>
  </tr>
</table>

<!-- content table -->
$spacer_open

$_phpinclude_output


And the banner:

Lautaro 05-12-2009 04:43 AM

1 Attachment(s)
This would be your HEADER code:

Code:


<div align="center">

<table class="logobackground" cellpadding="0" cellspacing="0">
<tr>
<td width="554px" height="96"> <a href="$vboptions[homeurl]"><img src="$stylevar[imgdir_misc]/logo.png"></a> </td>
</tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td background="$stylevar[imgdir_misc]/header_bottom.gif"><img src="$stylevar[imgdir_misc]/header_bottom.gif" width="10" height="1"></td>
  </tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="23"><img src="$stylevar[imgdir_misc]/time_bar.gif" alt="" width="23" height="20"></td>
    <td background="$stylevar[imgdir_misc]/time_bar.gif"><div align="right"><font color="#FFFFFF" face="Tahoma"><strong>$vbphrase[all_times_are_gmt_x_time_now_is_y]&nbsp;&nbsp;</strong></font></div></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td background="$stylevar[imgdir_misc]/time_shadow.gif"><img src="$stylevar[imgdir_misc]/time_shadow.gif" alt="" width="23" height="7"></td>
  </tr>
</table>

<!-- content table -->
$spacer_open

$_phpinclude_output

Add this to the Additional CSS definitions:

Code:


.logobackground
{
  background-image:url('./blackteal/misc/logo_bg.gif');
  background-repeat: repeat-x;
  background-position: center;
  background-color: #000000;
  width: 100%;
  height: 118px;
}

Upload this 2 images to your misc directory:

https://vborg.vbsupport.ru/attachmen...1&d=1242075921

https://vborg.vbsupport.ru/attachmen...1&d=1242075921

trotskid 05-12-2009 05:51 AM

Thanks a lot for your help ;)


All times are GMT. The time now is 01:01 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01095 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete