Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: CGI tables *runs*

by particle (Vicar)
on Jun 24, 2003 at 17:17 UTC ( [id://268598]=note: print w/replies, xml ) Need Help??


in reply to CGI tables *runs*

you've got some really funky quotes there. try:

td({-height=>'10', width=>'700', bgcolor=>'#BBCCEE'}, h5('hi') ),

~Particle *accelerates*

Replies are listed 'Best First'.
Re: Re: CGI tables *runs*
by Rhose (Priest) on Jun 24, 2003 at 17:29 UTC
    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;
      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://268598]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-19 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found