PDA

View Full Version : Center Header Logo


TheRealso0sick
06-14-2011, 01:53 PM
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:

<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 ??


<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
@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

.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: :)