vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Logo Problem (https://vborg.vbsupport.ru/showthread.php?t=197308)

jonnyjonny_uk 11-26-2008 04:38 PM

Logo Problem
 
I know this crops up so many times but still after reading all the posts because I'm a novice when it comes to html I cant get my logo centered and in line with the left and right edges of the forum and also I want the logo to go right to the top of the page and sit on the nav bar so no gaps top and bottom. The code looks like this;

HTML Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
        <td align="$stylevar[right]" id="header_right_cell">
                <if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
        </td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]

Any ideas on what how I need to change the code please? The site is www.phobiafear.com

Thanks

John

WEBDosser 11-26-2008 04:47 PM

Try this..

Quote:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><div align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></div></td>
</tr>
<tr>
<td align="$stylevar[left]">$ad_location[ad_header_logo]</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]

jonnyjonny_uk 11-26-2008 04:55 PM

Oh thanks so much for that. It's now lined up with the forum width but how do I make no gaps top and bottom? I want it to be butting up with the top of the page and sat on top of the nav bar.

Thanks very much webdosser

John

Seven Skins 11-26-2008 06:04 PM

Edit margin in .body MAIN CSS to margin: 0px 10px 10px 10px; that will make the header goto the top.

And for removing gap between header and navbar remove <br /> form the top of navbar template.

.

jonnyjonny_uk 11-26-2008 06:24 PM

Thanks to Sevenskins and Webdosser for all your help. It is lined up perfectly now as you can see here http://www.phobiafear.com/index.php

If you have any ideas or suggestions about the layout then I'm open for words of wisdom.

Thanks

John

--------------- Added [DATE]1227772831[/DATE] at [TIME]1227772831[/TIME] ---------------

Although the logo looked perfect at home I have just found out on my widescreen monitor at work it doesn't extend to the forum edges. Can someone please help to make it look good on all screen sizes? I have limited html knowledge so please go easy.

Thanks

John

WEBDosser 11-27-2008 09:55 AM

the logo you have is 940px wide, so change forum width to 940px in adminCP styles (Main Table Width (pixels or percentage)) and it will look better.


All times are GMT. The time now is 10:05 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.02664 seconds
  • Memory Usage 1,730KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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