j4y Posted August 9, 2006 Share Posted August 9, 2006 Hello there, I have just about finished my template for OSC which I designed for a client... one of the problems is that when you click write a review or when your going through the order process, the comments box is too big for the content area: http://uksupplementshop.co.uk/contact_us.php Like that but it goes further out, how would I go about making that box smaller to fit within the width of the middle section? Thanks :thumbsup: *WhAt HaVe I GoTtA Do* Link to comment Share on other sites More sharing options...
choosealogin Posted August 9, 2006 Share Posted August 9, 2006 Sorry, read that again and realized the page you posted was just an example. The idea is the same, though. Look for the tep_draw_textarea, and lower that first number. In contact_us.php look for <?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?> The '50' is the width. Link to comment Share on other sites More sharing options...
jasonabc Posted August 9, 2006 Share Posted August 9, 2006 For the most flexibility - find this in /includes/functions/html_output.php: function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) { $field = '<textarea name="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"'; and change to this: function tep_draw_textarea_field($name, $wrap, $style, $text = '', $parameters = '', $reinsert_value = true) { $field = '<textarea name="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" style="' . tep_output_string($style) . '"'; Then in /contact_us.php change this: <?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?> to this: <?php echo tep_draw_textarea_field('enquiry', 'soft', 'width:450px;height:170px;'); ?> Change the width and height values to whatever you want. Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix Link to comment Share on other sites More sharing options...
j4y Posted August 9, 2006 Author Share Posted August 9, 2006 Much appriciated, which files am I editing for the payment part, its the shipping and paypent bit which have the additional comments boxes on them *WhAt HaVe I GoTtA Do* Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.