Welcome, Guest. Please Login or Register.
October 01, 2024, 05:25:50 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Graphics and Templates  |  Background image « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Background image  (Read 546 times)
DJTommyC
Jr. Member
**
Posts: 81


Passion for Music

Background image
« on: March 10, 2003, 02:11:25 PM »
Reply with quote

I want an image as background on the header (buttons,where the logo is,where the IM's are)..
It's spread all over the header like this..
How to do this?

And I have a problem with a sort of a 'gap' between the 2 tables (the logo table at the top, and the table where the time & IM's are in..)..
There is a white gap between them which I can't close?
How to do this?
« Last Edit: March 10, 2003, 04:02:33 PM by DJTommyC » Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Background image
« Reply #1 on: March 10, 2003, 09:10:42 PM »
Reply with quote

can u provide a screenshot or some html codes?
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
DJTommyC
Jr. Member
**
Posts: 81


Passion for Music

Re:Background image
« Reply #2 on: March 10, 2003, 09:54:09 PM »
Reply with quote

Here's a screenshot..

The white gap should be closed according to the html:
<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0" class="windowbg2">
             <tr>
               <td colspan="2" valign="middle" align="left" bgcolor="#ffffff"><img alt="logo" src="YaBBImages/selogo.jpg" /></td>
               <td valign="middle" align="left" bgcolor="#CCDDFD"><font size="2"><yabb uname><yabb im><br /><yabb time></font></td>
             </tr>
           </table>
         </td>
       </tr><tr valign="middle" align="center" bgcolor="#b7bbda">
         <td bgcolor="#afc6db" class="windowbg2"><font size="1"><yabb menu></font></td>
       </tr>
       <tr>
         <td width="100%" bgcolor="#ffffff" class="windowbg2" height="24">&nbsp;<yabb news></td>
       </tr>
     </table>

What's wrong?
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Background image
« Reply #3 on: March 10, 2003, 11:56:58 PM »
Reply with quote

in these 2 lines:
               <td colspan="2" valign="middle" align="left" bgcolor="#ffffff"><img alt="logo" src="YaBBImages/selogo.jpg" /></td>
               <td valign="middle" align="left" bgcolor="#CCDDFD"><font size="2"><yabb uname><yabb im><br /><yabb time></font></td>

change the first line's bgcolor to match the 2nd one (CCDDFD)
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
DJTommyC
Jr. Member
**
Posts: 81


Passion for Music

Re:Background image
« Reply #4 on: March 11, 2003, 09:01:51 PM »
Reply with quote

Does that also solve the problem if I put an Image as background on the right table?
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Background image
« Reply #5 on: March 11, 2003, 09:16:03 PM »
Reply with quote

the problem was, you put bgcolor="#FFFFFF" (white), so u had a white gap
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
DJTommyC
Jr. Member
**
Posts: 81


Passion for Music

Re:Background image
« Reply #6 on: March 11, 2003, 09:54:50 PM »
Reply with quote

Why is the gap there? The table should be as wide as the image..
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Background image
« Reply #7 on: March 11, 2003, 10:16:40 PM »
Reply with quote

doesnt necessary have to be like that, since u havent specified the other column's width
if u put width="*" or width="100%" on the 2nd col, the white gap will be gone
if u dont specify the width, the 2nd col will only occupy the space it needs
if u set the 2nd col to 100%, it will use all the space it can get
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
DJTommyC
Jr. Member
**
Posts: 81


Passion for Music

Re:Background image
« Reply #8 on: March 12, 2003, 09:33:19 AM »
Reply with quote

Thx! It worked..
Grtz
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Graphics and Templates  |  Background image « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.093 seconds with 21 queries.