I've spent the day trying to incorporate CSS into a simple HTML file. Would someone please add some CSS code to this sample?
# # PROGRAM: popup_menu.cgi # # PURPOSE: Demonstrate (1) how to create a popup_menu form and # (2) how to determine the value selected by the user. # # Created by alvin alexander, devdaily.com. # #-----------------------------------# # 1. Create a new Perl CGI object # #-----------------------------------# use CGI; $query = new CGI; #----------------------------------# # 2. Print the doctype statement # #----------------------------------# <style> body { background-image: url("img_tree.png"); background-repeat: no-repeat; background-position: right top; margin-right: 200px; } </style> </body> print $query->header; print $query->h3("x"); #----------------------------------------------------# # 3. Start the HTML doc, and give the page a title # print $query->start_html('My popup_menu.cgi program'); my @arr = qw(pasta hamburger salad pierogi chicken_cutlet); if (!$query->param) { print $query->start_form; print $query->h4('Select a dinner entree:'); print $query->popup_menu(-name=>'entrees', -values=>[@arr], -default=>'Veggies'); } print $query->end_form; my @arr = qw(cheese_cake cannoli apple_pie); if (!$query->param) { print $query->start_form; print $query->h3('Select a desert entree:'); print $query->popup_menu(-name=>'deserts', -values=>[@arr], -default=>'Veggies'); } print $query->end_form; print $query->end_html;

In reply to add css to html code by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.