MyBB Community Forums

Full Version: 3 part banners & making something a fixed width
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
2 questions


1. How do you setup a 3 part banner so when you resise your browser window the banner changes size and stays the same size as the forum?

2. how do you make something a fixed width instead of a %?
willow Wrote:2 questions


1. How do you setup a 3 part banner so when you resise your browser window the banner changes size and stays the same size as the forum?

2. how do you make something a fixed width instead of a %?
1. Use three different images and put them side by side. When a smaller screen size is used, the images will simply stack on top of one another.
2. Use pixels instead of percentages. For example:
<td width="30px">
well i tried the px thing but it didnt change anything at all
willow Wrote:well i tried the px thing but it didnt change anything at all
Perhaps you changed the pixel number to an amount that actually equaled the percentage. Try putting in "2000px" and see if that makes any difference.

If it still shows up as the same size, then please post the code you are using.
this code is around the thing im trying to change



<html>
<head>
<title>$settings[bbname]</title>
$headerinclude
</head>
<body>
$header
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" width="100%">
<tr>
<td width="75%" valign="top">$forums
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" class="tborder">
<thead>
<tr>
<td class="thead">
<div class="expcolimage"><a href="java script:expandCollapse('boardstats');"><img src="$theme[imgdir]/collapse$collapsedimg[boardstats].gif" id="boardstats_collapseimg" border="0" alt="[-]" /></a></div>
<div><strong>$lang->boardstats</strong></div>
</td>
</tr>
</thead>

im trying to make the side bar mod a fixed pixel count wide
willow Wrote:this code is around the thing im trying to change



<html>
<head>
<title>$settings[bbname]</title>
$headerinclude
</head>
<body>
$header
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" width="100%">
<tr>
<td width="75%" valign="top">$forums
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" class="tborder">
<thead>
<tr>
<td class="thead">
<div class="expcolimage"><a href="java script:expandCollapse('boardstats');"><img src="$theme[imgdir]/collapse$collapsedimg[boardstats].gif" id="boardstats_collapseimg" border="0" alt="[-]" /></a></div>
<div><strong>$lang->boardstats</strong></div>
</td>
</tr>
</thead>

im trying to make the side bar mod a fixed pixel count wide
Try this:
<html>
<head>
<title>$settings[bbname]</title>
$headerinclude
</head>
<body>
$header
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" width="Xpx">
<tr>
<td valign="top">$forums
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" class="tborder">
<thead>
<tr>
<td class="thead">
<div class="expcolimage"><a href="java script:expandCollapse('boardstats');"><img src="$theme[imgdir]/collapse$collapsedimg[boardstats].gif" id="boardstats_collapseimg" border="0" alt="[-]" /></a></div>
<div><strong>$lang->boardstats</strong></div>
</td>
</tr>
</thead>
Of course you have to change
width="[b]X[/b]px"
to the correct amount of pixels.
ok that sorta worked but it makes everything a fixed width, i just want the side bar to be
willow Wrote:ok that sorta worked but it makes everything a fixed width, i just want the side bar to be
I'm afraid I don't follow. Could you post a screenshot or example for me?

Thanks!
well we have the forums and the side bar thing that has the leatest threads etc the side bar thing became a fidex width, but the forums did to, so when you resise the window only the backround changes
willow Wrote:well we have the forums and the side bar thing that has the leatest threads etc the side bar thing became a fidex width, but the forums did to, so when you resise the window only the backround changes
Ahh okay. All you have to do is simply make the sidebar a fixed width, and the forum should be set to 100% width.
Pages: 1 2