Go Back   vb.org Archive > Community Discussions > Style and Graphics Requests (Unpaid)
  #1  
Old 12-10-2009, 08:18 PM
drjdh's Avatar
drjdh drjdh is offline
 
Join Date: Nov 2009
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Logo does not work with different screen sizes.

I'm new to vBulletin and css. I'm having trouble formatting my logo which I created with photoshop. I formatted the logo to fit with my home widescreen monitor, but when I view the page on a smaller monitor the image is no longer centered, but is moved to the right

I have tried to break the image up into three pieces, but the image that I have does not look right when repeated.

attached is an image on my large monitor and small monitor.

Here is my Logo 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_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr>
</table>


<!-- /logo -->


What can I do to remedy this situation?
Any help is greatly appreciated!

- Jerry
Attached Images
File Type: jpg tmb centered.jpg (58.2 KB, 0 views)
File Type: jpg tmb not centered.jpg (80.2 KB, 0 views)
Reply With Quote
  #2  
Old 12-11-2009, 09:28 AM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to make a logo of less width e.g. 950px and when some one uses a smaller resolution 1024x768 it will be in the middle.

PS. These days only few (may be less then 1%) of the people use resolution below 1024x768 so you will not have this issue.

.
Reply With Quote
  #3  
Old 12-11-2009, 03:26 PM
drjdh's Avatar
drjdh drjdh is offline
 
Join Date: Nov 2009
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But I would like to have the logo area stretch all the way across the screen. Is there a way to do this?
Reply With Quote
  #4  
Old 12-11-2009, 04:12 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then you have to make a logo in at least 2 parts.
1 background image ... repeating horizontally. (Example image attached)
1 logo with transparent backgroup.

So your code could be:

HTML Code:
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr style="background: url(background.png) repeat-x top left">
<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr>
</table>
<!-- /logo -->
Attached Images
File Type: jpg a.jpg (11.1 KB, 0 views)
Reply With Quote
  #5  
Old 12-11-2009, 05:27 PM
drjdh's Avatar
drjdh drjdh is offline
 
Join Date: Nov 2009
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Seven Skins!

I broke it up into 3 pieces using this simple code:

<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="50%" style="background-image: url(/images/styles/bluebox/misc/head_left.gif); background-repeat: repeat-x;">&nbsp;</td>
<td><img src="/images/styles/bluebox/misc/headbg2.gif" alt="" /></td>
<td width="50%" style="background-image: url(/images/styles/bluebox/misc/head_right.gif); background-repeat: repeat-x;">&nbsp;</td>

</tr>
</table>


It seems to be working well.

I'll likely have to modify it at a later time in order to add sponsors, etc, but I'm happy with it now!

- Jerry
Reply With Quote
  #6  
Old 12-11-2009, 08:16 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, This will work too. Where is logo going in the middle TD?

.
Reply With Quote
  #7  
Old 12-14-2009, 03:20 AM
drjdh's Avatar
drjdh drjdh is offline
 
Join Date: Nov 2009
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I wanted the main part of the logo to stay in the middle of the screen and the two wings to grow and shrink to accommodate different screen sizes.

Thanks for your help!

I'd been working on this for the past several days. :up:
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:06 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.04695 seconds
  • Memory Usage 2,242KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (3)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete