Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

need help centering my login box


Assailant

Recommended Posts

Posted

www.basketdelite.com as you can see on the right side where you type email and password its off to the left, does anyone know how I can have that centered in the middle? I changed the width of the info boxes to 160 i dont want to have to change them backk, im sure its a simplle solution but im not that good with php. thank you

Posted

Your TD cells for the box are defined with align="left" attributes. Change to align="center" and it should fix it.

 

HTH,

 

Terry

Terry Kluytmans

 

Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like:

 

Add order total to checkout_shipment

Add order total to checkout_payment

Add radio buttons at checkout_shipping (for backorder options, etc.)

Duplicate Table Rate Shipping Module

Better Product Review Flow

 

* If at first you don't succeed, find out if there's a prize for the loser. *

Posted

Try /catalog/includes/boxes/login.php file. I've adapted mine, so my code probably doesn't match yours, but assuming you used one of the contrib's out there, you should see something like:

 

            <tr>
             <td class="infoBoxContents"><?php
   $loginboxcontent = "
           <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" class=\"infoBoxContents\">
           <form name=\"login\" method=\"post\" action=\"" . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . "\">
             <tr>
               <td align=\"left\" class=\"infoBoxContents\">
                 " . BOX_LOGINBOX_EMAIL . "
               </td>
             </tr>
             <tr>
               <td align=\"left\" class=\"infoBoxContents\">
                 <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"15\" value=\"\">
               </td>
             </tr>
             <tr>
               <td align=\"left\" class=\"infoBoxContents\">
                 " . BOX_LOGINBOX_PASSWORD . "
               </td>
             </tr>
             <tr>
               <td align=\"left\" class=\"infoBoxContents\">
                 <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"15\" value=\"\"
               </td>
             </tr>
             <tr>
               <td class=\"infoBoxContents\" align=\"center\"> <br clear=\"all\">
                 " . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL') . "
               </td>
             </tr>

 

change the instances of align=\"left\" to align=\"center\".

 

If there are no slashes ( \ )in your text, then you'd just change align="left" to align="center" -- again, only in the td cells. You don't need it in tr's or table cells.

 

HTH,

 

Terry

Terry Kluytmans

 

Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like:

 

Add order total to checkout_shipment

Add order total to checkout_payment

Add radio buttons at checkout_shipping (for backorder options, etc.)

Duplicate Table Rate Shipping Module

Better Product Review Flow

 

* If at first you don't succeed, find out if there's a prize for the loser. *

Posted

thanks! it worked greatly appreciate it man, i should learn all the php termonology so I wont have to ask stupid questions like this hehe

Posted

bah I installed this mod before and it worked good, now when i go to new user it directs to Filename_new_user instead of create_account.php anybody know what I did wrong?

Archived

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

×
×
  • Create New...