vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Center Header Logo (https://vborg.vbsupport.ru/showthread.php?t=265193)

TheRealso0sick 06-14-2011 01:53 PM

Center Header Logo
 
Hi there,

could anyone take a look at this snippet and tell me how to center my banner? :<
I've tried all possible combinations and just can't figure it out.

Header Template:

Code:

<div class="above_body"> <!-- closing tag is in template navbar -->
<div id="header" class="floatcontainer doc_header">
    <vb:if condition="$stylevar['titleimage']"><div><a name="top" href="hyperlink"><img src="imagelink" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div><vb:else /><div>&nbsp;</div></vb:if>
    <div id="toplinks" class="toplinks">
        <vb:if condition="$show['member']">
            <ul class="isuser">
                <li><a href="login.php?{vb:raw session.sessionurl}do=logout&amp;logouthash={vb:raw bbuserinfo.logouthash}" onclick="return log_out('{vb:rawphrase sure_you_want_to_log_out}')">{vb:rawphrase log_out}</a></li>
                <vb:if condition="$show['registerbutton']">
                <li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>

Any help is appreciated

Regards,
HSB.

Lautaro 06-14-2011 01:58 PM

hmmmm.. how about using a table and align it to the center ??

HTML Code:

<table align="center"><tr><td>
YOUR LOGO CODE HERE
</tr></td></table>

:P

TheRealso0sick 06-14-2011 02:11 PM

Thanks a lot Lautaro!~

sivaganeshk 06-14-2011 07:47 PM

@lautaro @heartshapedBox : No need to replace any code in header??
just add table huh?

Lautaro 06-14-2011 07:56 PM

Quote:

Originally Posted by sivaganeshk (Post 2207757)
@lautaro @heartshapedBox : No need to replace any code in header??
just add table huh?

yeah, just add the table, no need to remove any code. ;)

setishock 06-14-2011 08:32 PM

I did a quick dive in to the net and found this>
Goes in additional.css
Code:

.doc_header {text-align: center; }
.logo-image {clear:both; float:none;}

I checked it on my forum and it works.

sivaganeshk 06-15-2011 02:06 AM

@setishock: Yup. I tried and it worked :)
@Lautaro: :)


All times are GMT. The time now is 05:02 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.01018 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_code_printable
  • (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
  • (7)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