Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Infobox headings to use <legend> and <fieldset>


pstrid

Recommended Posts

Tying to get the heading of my infoboxes to have an inset look by using <legend> and <fieldset> code but having trouble getting it to work. Trying to get the similar look as: http://www.tradizionidelsud.it/catalog/index.php

 

Here's what I tried for my search infobox using some code suggestions I found online from Petterr.

 

<?php
if (ALLOW_QUICK_SEARCH_DESCRIPTION == 'true') {
$param = '<input type="hidden" name="search_in_description" value="1">';
  } else {
  $param = '';
}

 $legend = '<fieldset><legend><?php echo BOX_HEADING_SEARCH; ?></legend>';
 $legend_end = '</legend>';
 $fieldset_end = '</fieldset>';

 echo $fieldset;
 echo $legend;

  $info_box_contents = array();
  $info_box_contents[] = array('$fieldset', 'align' => 'left','text'  => $legend);

$info_box_contents[] = array('align' => 'left',
						   'text'  => BOX_HEADING_SEARCH

echo $fieldset_end;
?>

 

Suggestions?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...