SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: PHP and CSS

  1. #1
    SitePoint Addict Kysmiley's Avatar
    Join Date
    Dec 2004
    Location
    Isonville KY
    Posts
    304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP and CSS

    I have part of a form in a PHP script that was set inside of a table. I am changing things to get rid of tables. I have an echo line that is showing rows and columns. It was set at 60 columns. But that exceeded the CSS container. Do anyone have any suggestions on how to code this PHP line so it will use the CSS container.
    <div class="textarea">
    <?php echo tep_draw_textarea_field('comments', 'soft', '40', '5'); ?>
    </div>
    As you can see I already changed the columns from 60 to 40. Is there a better way to do this so i dont have to worry about different screen resolutions.
    Pat

  2. #2
    SitePoint Addict Kysmiley's Avatar
    Join Date
    Dec 2004
    Location
    Isonville KY
    Posts
    304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Will something like this work.
    <?php echo tep_draw_textarea_field('comments', 'soft', 'textarea'); ?>
    then from another file
    $field = '<textarea name="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"';

  3. #3
    SitePoint Addict skunkbad's Avatar
    Join Date
    Apr 2008
    Location
    Temecula, CA
    Posts
    272
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    looks like an osCommerce function? You should try to look for that tep_draw_textarea_field function in the rest of the files, and determine exactly what it is doing. You could also just hard code the html and not use the function.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •