Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Spacing In PHP


ang2006

Recommended Posts

Are you looking for a blank line on a web page <br> or in a document such as an email?

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

For vertical spacing for example oscommerce tends to use ..

 

	  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>

 

 

Where the 100% and the 10 can be anything you like

Link to comment
Share on other sites

Hi Guys,

 

I am trying to create a web page with scroling images and I need a space in between them so they are not next to each other.

 

Unfortunately I cant use the tep draw sepearator command as the php is still open.

 

 

Any more Ideas.

 

Thank you for the ones you already contributed.

 

Darren..

Link to comment
Share on other sites

Hi Guys,

 

I am trying to create a web page with scroling images and I need a space in between them so they are not next to each other.

 

Unfortunately I cant use the tep draw sepearator command as the php is still open.

 

 

Any more Ideas.

 

Thank you for the ones you already contributed.

 

Darren..

 

parsed via html (<tr>s / <td>s are assumed)

 

	  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>

 

Parsed via PHP (assuming the PHP block is embedded inside ' (which tends to be the case in osc) not ")

 

	  <tr>
	<td>' . tep_draw_separator('pixel_trans.gif', '100%', '10') . '</td>
  </tr>

 

The "parsed via PHP" assumes that this code does not end the PHP parse with ';

Link to comment
Share on other sites

Couldn't you just add a new css class

 

img.scroll {
padding-top: 5px;
}

 

then add it to the image call

 

tep_image(DIR_WS_IMAGES . 'image.jpg', 'Alt Text', 'width', 'height', 'class="scroll"')

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...