Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 04-03-2008, 12:19 AM
bp323 bp323 is offline
 
Join Date: May 2006
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default style width/tables/banners

Currently im looking to learn what the current skin i have, is setup as. I know the pixel with is 983. is there anyway to make this self adapting & not needing a supplied pixel width? what i would like to do is split the current banner into a 3/4 size & have a time delayed rotating banner along the right of it in the remaining 1/4.
If anyone can give me further advice on what routes or modifications i need to perform i would be indebted to them.

Thanks

below is a copy of my current code running under VB ver. 3.6.4

Quote:
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td><a href="index.php"><img src="images/redbar/elements/cplogo.jpg" border="0"></a></td>
</tr>
<tr>
<td background="images/redbar/elements/catsub.jpg" height="24" class="menu">
<center>
<a href="index.php">Forum Home</a> &nbsp;&nbsp;
<if condition="$show['member']">
<a href="usercp.php">User Panel</a> &nbsp;&nbsp;
</if>
<if condition="$show['registerbutton']">
<a href="register.php">Register</a> &nbsp;&nbsp;
</if>
<a href="memberlist.php">Member List</a> &nbsp;&nbsp;
<a href="calendar.php">Calendar</a> &nbsp;&nbsp;
<a href="faq.php">FAQ</a> &nbsp;&nbsp;
<if condition="$show['member']">
<a href="search.php">Search</a> &nbsp;&nbsp;
</if>
<if condition="$show['member']">
<a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">Logout</a>
</if>
&nbsp;&nbsp;
<a href="vbpicgallery.php">Vb Gallery</a>
&nbsp;&nbsp;
<a href="itrader_main.php">$vbphrase[itrader]</a>
&nbsp;&nbsp;
<a href="aim:gochat?roomname=clubprotege+Chat">Aim: Chatroom</a>
&nbsp;&nbsp;
<a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a>
</center>

</td>

</tr>
<tr>
<td width="983">
<!-- /logo -->
Reply With Quote
  #2  
Old 04-03-2008, 04:52 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can change the width of the table in the Admin CP > Styles & Templates > Style Drop-down > Edit Settings.
Reply With Quote
  #3  
Old 04-03-2008, 09:02 PM
bp323 bp323 is offline
 
Join Date: May 2006
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if i change the width from a pixel number to a Percentage. how will that effect things? & how would i continue from there to divide the top if it was in percentage format
Reply With Quote
  #4  
Old 04-03-2008, 09:23 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Percentage widths depend on the resolution, but they do what they save basically. So on a big resolution say (2048x1024) they still cover 90% of the screen as they would on a smaller resolution (say 1024x768). Basically it means people with big screens/resolutions have more of their screen dedicated to the site.

If you set a width in Pixels it means that the same number of pixels are occupied on the screen regardless of how big the screen is. So on a big screen it might only take up a small amount of the screen but on a small screen it could be far too big.

Pixels are absolute.
Percentages are relative.
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 07:09 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05769 seconds
  • Memory Usage 2,182KB
  • Queries Executed 11 (?)
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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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_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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete