Quantcast

Forums | MacLife

You are not logged in.

#1 2003-08-03 4:31 pm

Ellipsoid
Member
From: Lake Forest, IL, U.S.A.
Registered: 2000-12-22
Posts: 798

How to remove space between images?

My full site (very much in progress, yes...) is here in the BandSite folder.

I will preface this: I am a fledgeling HTML coder, I am probably in over my head, but this has to be done, and I've been elected.

The issue is this:  I want a button bar like I see at the top of apple.com.  'Got all the images made, same size, all that, but I can't for the life of me get them to stick together.  So I go over and borrow some code from Apple's source, and it still doesn't work.  The end result is I've got big old gaps with little underscores under them between the images.  Apple's layout is virtually the same, they do not have this issue.  What am I doing wrong?

In case it's a quick fix:

Code:

<!-- ============== NavBar Table ============== -->
    <center>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="49%" valign="top" background="stdPics/barsliver.jpg" border="0">  <img src="stdPics/barsliver.jpg" width="4" height="28" border="0" align=right>  </td>
            <td width="2%" valign="top" align="center">
                <table width="608" border="0" cellpadding="0" cellspacing="0">
                    <tr valign="top" align="center">
                        <td width="608">
                                        <img src="stdPics/button1.jpg" alt="LFHS Band Home Page" width="53" height="28" border="0">
    <a href=windensemble/weindex.html>  <img src="stdPics/button2.jpg" alt="Information about Wind Ensemble" width="119" height="28" border="0">    </a>
    <a href=symphonic/sbindex.html>        <img src=stdPics/button3.jpg alt="Information about Symphonic Band" width=130 height=28 border="0">    </a>
    <a href=marching/mbindex.html>        <img src=stdPics/button4.jpg alt="Information about Marching Band" width=117 height=28 border="0">    </a>
    <a href=theory/mtindex.html>        <img src=stdPics/button5.jpg alt="Music Theory Portfolios" width=106 height=28 border="0">    </a>
    <!-- No Link Yet -->                <img src=stdPics/button6.jpg alt="Alumni Section TBA" width=64 height=28 border="0">
                        </td>
                    </tr>
                </table>
              </td>
            <td valign=top width=49% background=stdPics/barsliver.jpg>  <img src="stdPics/barsliver.jpg" width="4" height="28" border="0" align=left>  </td>
      </tr>
    </table>
    </center>

Thoughts?  Help?
I'm at the edge of my wits (not so frightening, but yeah) with this.


"What is a friend?  A soul dwelling in two bodies."     - Aristotle

Offline

 

#2 2003-08-03 4:58 pm

Short Circuit
authorized airduct engineer
From: UESC Marathon
Registered: 2002-05-17
Posts: 4739

Re: How to remove space between images?

Just put the images inside a table. That is what Apple does, you can see it by the <tb> tags.
Its a table with the border and cell space set to zero (or unset, rather)

W


Frog7blast the ventcore!

Offline

 

#3 2003-08-03 5:20 pm

Ellipsoid
Member
From: Lake Forest, IL, U.S.A.
Registered: 2000-12-22
Posts: 798

Re: How to remove space between images?

Well, actually, tables is what I did.

But I fixed it!  Thanks anyhow, everybody.

Now to figure out exactly what was the key...


"What is a friend?  A soul dwelling in two bodies."     - Aristotle

Offline

 

#4 2003-08-03 8:35 pm

Fracai
Evacipate
From: St. Elsewhere
Registered: 2000-05-25
Posts: 2835

Re: How to remove space between images?

did you get with of extra whitespace like line returns, spaces, and tabs?

that or adding cellpadding="0" and cellspacing="0" to the table and/or images?

either of those?


   i am jack's amusing sig file
        http://alum.wpi.edu/~arno/i/s.png
Satellite Lot :: Second Summer

Offline

 

Board footer

Powered by PunBB 1.2.6
© Copyright 2002–2005 Rickard Andersson