Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Just plain dumb

by CharlesClarkson (Curate)
on Jan 09, 2002 at 12:38 UTC ( [id://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.




HTH,
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 http://geocities.com/rendler/news.html
      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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://137408]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-16 17:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found