Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Centre "Welcome Guest etc. . .


Guest

Recommended Posts

Posted

Hi

 

I would like to centre the following "Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?" Is anyone able to tell me where and what I would need to do.

 

 

Many thanks

 

Grandpa

Posted

John,

 

By default, that text is indented. The code can be found in the index.php like so:

 

 

<tr>

<td class="main"><?php echo tep_customer_greeting(); ?></td>

</tr>

 

 

class main is indented by default in the stylesheet.css and can be changed to centered if you want.

 

The stylesheet is currently:

 

TD.main, P.main {

font-family: Verdana, Arial, sans-serif;

font-size: 11px;

line-height: 1.5;

}

 

 

 

Chris

  • 1 month later...
Posted

Hi

 

I would like to centre the following "Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?" Is anyone able to tell me where and what I would need to do.

 

 

Many thanks

 

Grandpa

 

Where is this TEXT located so that it can be modified?

 

A better solution would be to just modify the HTML found in the text itself instead of changing it on catalog\index.php, unless you want to create a new CSS class just for that particular line. Find this text in catalog\includes\english\english.php if you're running your site in English and apply proper HTML centering styles appropriately.

Archived

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

×
×
  • Create New...