The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Logo not centering
Ok, i having a werid problem on one of my site. the logo that i want to center is not centering at all.
Here is the code that i using, i rather not give out the site just yet as i am still working on it, but i can do so. if need to be. as you can see, i have the tr align center tag and i thought that would do it. Code:
<!-- logo --> <a name="top"></a> <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center"> <tr> <td align="center"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td> <!-- /logo --> |
#2
|
||||
|
||||
When you say "Not centering" which cell in the header do you have it?, have you got a screenshot?
|
#3
|
||||
|
||||
Here is a screenshot for you. the screenshot show it not really center as i went it to be. I like the logo to go full width of the forums. i mean is, i like it to go to the start of the navbar to the end of the navbar. not go all the way across.
|
#4
|
||||
|
||||
Ok, somewhere there you'll find there's some margins or padding which is why it won't go plumb left and for the run off to the right just set the width less until it falls within the boundaries, but it looks like you may have some css thats causing it to do that.
EDIT: in fact i just logged on to your site and it looks perfectly centered? |
#5
|
||||
|
||||
Yeah i was fooling around with the width of the logo, i had to reset it back to the way it was.
Any how, here is my Margins i have set for the site. margin: 10px 0px 10px 0px; padding: 0px; i've done everything to a T and nothing seem to work right. I don't want to resize my logo if i do not have too. |
#6
|
||||
|
||||
i honestly would not be using the banner that way, i'd color a white border around the banner and adding back to the top in header template like default. this is what it would look like as default header template code:
EDIT: Image removed as asked adding the banner like that, the banner is free to rome. but if you want to try and center it, replace your code with this and let me know if it works mate: Code:
<!-- logo --> <div style="margin-top:0px;margin-left:-25px;"> <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="images/logo.png" border="0" alt="$vboptions[bbtitle]" /></a></td> </tr> </table> </div> <!-- /logo --> but again, id be using the default way like with the image attached to this post with the white color around it, just edit your PSD, put the white background, upload, then placing this code back to top of header template: 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="images/logo.png" border="0" alt="$vboptions[bbtitle]" /></a></td> </tr> </table> <!-- /logo --> ps, let me know if you want attachment removed. Chat Forums |
Благодарность от: | ||
eyedream |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|