Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Just plain dumb

by CharlesClarkson (Curate)
on Jan 09, 2002 at 12:38 UTC ( #137408=note: print w/replies, xml ) Need Help??

in reply to Loop counter only works for 2

The problem is if $rows is anything other than 2 it doesn't work, I can't figure out why it's not doing the block
    } elsif ($rows == $row_count) {
to print out the close table row tag like it does with the first script for the newlines.

On the first pass $row_count is incremented to 2. After that it always remains 2. So the above elsif will only be executed when $rows is set to 2.

Charles K. Clarkson

PS Why are all the columns (<TD></TD>) set to 100% width? If the table has 2 columns, it's 200% wide.

Replies are listed 'Best First'.
Re: Re: Just plain dumb
by rendler (Pilgrim) on Jan 09, 2002 at 14:01 UTC
    As for the TD tags they're set to 100% because of the fact that you can specify how many blocks there are in a row I want them to all have the same size. Which means that if there's 2 blocks in the row at 100% the blocks each take 50% of the page. Works a treat in opera but netscape 4.78 doesn't seem to like it very much, I have an example of what I'm trying to do at
      Set the <table> to your desired width, and the browser will spread the available space evenly if not told otherwise.
        Actually it won't it'll only use up to the space that the block in the TD is filled up to and no more.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://137408]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2017-11-25 10:06 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (355 votes). Check out past polls.