Page 1 of 1

BBcode

Posted: Tue Dec 29, 2009 5:41 am
by Graham
Hi David

I'm trying to place a frame around the poems that members submit to the site and it is working but I have to have a fixed width.
The height can be anything and the frame grows or shrinks to suit, but is it possible to get the width to shrink and grow as well?
Here is the code I'm using.

Code: Select all

    <div style="margin: 0 auto;">
               <table border="0" cellpadding="0" cellspacing="0" style="text-align: {TEXT};">
                  <tr>
                     <td background="./frames/frame_{NUMBER}/frame-01.gif" width="50" height="50"></td>
                     <td background="./frames/frame_{NUMBER}/frame-02.gif" width="300" height="50"></td>
                     <td background="./frames/frame_{NUMBER}/frame-03.gif" width="50" height="50"></td>
                  </tr>
                  <tr>
                     <td background="./frames/frame_{NUMBER}/frame-04.gif" width="50" height="300"></td>
                     <td bgcolor={COLOR}>{TEXT1}</td>
                     <td background="./frames/frame_{NUMBER}/frame-05.gif" width="50" height="300"></td>
                  </tr>
                  <tr>
                     <td background="./frames/frame_{NUMBER}/frame-06.gif" width="50" height="50"></td>
                     <td background="./frames/frame_{NUMBER}/frame-07.gif" width="300" height="50"></td>
                     <td background="./frames/frame_{NUMBER}/frame-08.gif" width="50" height="50"></td>
                  </tr>
               </table>
            </div>

Re: BBcode

Posted: Tue Dec 29, 2009 10:44 am
by DavidIQ
Hey Graham,

Have you tried using percentages instead of fixed widths?

Re: BBcode

Posted: Tue Dec 29, 2009 11:47 am
by Graham
I have now ;) but still no luck. :(
Any other thoughts?

Re: BBcode

Posted: Wed Dec 30, 2009 10:11 am
by DavidIQ
Checked with a styles "expert" friend of mine and he said to try just removing the width="300" from the other columns.

Re: BBcode

Posted: Wed Dec 30, 2009 10:20 am
by Graham
Thank you David

I'll go ahead and give that a try.

Tried it and it's sorted please thank your friend for me.

Graham