Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: CGI tables *runs*

by Rhose (Priest)
on Jun 24, 2003 at 17:29 UTC ( #268606=note: print w/replies, xml ) Need Help??


in reply to Re: CGI tables *runs*
in thread CGI tables *runs*

One thing which has helped me when working with tables in CGI is start_table and end_table. This might have helped you pick up the problem with quotes which particle has pointed out.

use CGI qw(:standard start_table end_table); print start_table; print Tr(td({-height=>'10', width=>'700', bgcolor=>'#BBCCEE'},h5('hi') +)); print Tr(td({-height=>'10', width=>'700', bgcolor=>'#BBCCEE'},"")); print end_table;

Replies are listed 'Best First'.
Re: Re: Re: CGI tables *runs*
by coldfingertips (Pilgrim) on Jun 24, 2003 at 17:41 UTC
    Nope, that wasn't the problem. When I remove the quotes the text changes but the table get's shifted as well, it makes the TD twice the size when the h5 works.
      And that is an HTML problem ... it's what happens when you stick a heading inside of a table cell. Besides, it is not wise to try and control cell heights ... the height attribute for <td> tags is deprecated (reference). You really should start using Cascading Style Sheets if you need that kind of control (and most of the time ... you really don't).

      jeffa

      L-LL-L--L-LL-L--L-LL-L--
      -R--R-RR-R--R-RR-R--R-RR
      B--B--B--B--B--B--B--B--
      H---H---H---H---H---H---
      (the triplet paradiddle with high-hat)
      

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2023-03-26 09:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?