Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Spacing In PHP


ang2006

Recommended Posts

Posted

Hi All,

 

 

I am trying to leave a space between to line breaks "\n \n" but on the ouput there is no space.

 

Can anyone help please?

 

Thank you

 

Darren

Posted

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 ======>>>>>.

Posted

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

Posted

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..

Posted
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 ';

Posted

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"')

Posted

Hi Peter,

 

What you suggested seems to be working on firefox but not on IE?

 

Why do you think that is?

 

Thanks for the idea it works.

 

Darren

Archived

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

×
×
  • Create New...