Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Having problem wiht centering the my header...


sweetjaime

Recommended Posts

Posted

could someplease look at my header here :

 

www.bella-bijou.com/catalog

 

and help my figure out why my header is centered, but slightly off center ? Ive tried all sorts of things andnothing seems ot work! Thanks!

 

Also.... my footer is slightly off center too.... ive searched hte forums for help on both of these problems and come up with nothing. Thanks!

Posted
could someplease look at my header here :

 

www.bella-bijou.com/catalog

 

and help my figure out why my header is centered, but slightly off center ? Ive tried all sorts of things andnothing seems ot work! Thanks!

 

Also.... my footer is slightly off center too.... ive searched hte forums for help on both of these problems and come up with nothing. Thanks!

 

 

Oh and i forgot its password protected please use the user name "osc" and the password "osc" to view thanks!

Posted

Undo the changes you have made to try and centre things and then apply my Fixed Width Site With CSS contribution (link below).

 

It's also my guess that while you have centred the header table you have not centred your logo inside of the table.

 

Vger

Posted
Undo the changes you have made to try and centre things and then apply my Fixed Width Site With CSS contribution (link below).

 

It's also my guess that while you have centred the header table you have not centred your logo inside of the table.

 

Vger

 

 

Can you explain to me how i would center my logo then? because everything else in my site is centered except hte footer banner and the header logo. Thanks i really appreciatte the help!

Posted

<center><a href="index.php"><img src="images/logo.gif" width=whatever height=whatever border=0 alt="whatever"></a></center>

 

Vger

Posted
<center><a href="index.php"><img src="images/logo.gif" width=whatever height=whatever border=0 alt="whatever"></a></center>

 

Vger

 

 

which file am i changing this in ? Thanks

 

Sorry im sure it seems like a stupid question to you, but im learning still!

Posted
which file am i changing this in ? Thanks

 

Sorry im sure it seems like a stupid question to you, but im learning still!

 

Anyone ? I still dont know where to find this code ?

Posted
I believe that's in the header file.

 

In /includes/header.php about line 60 delete or remark out the section that starts

 

<td align="right" valign="bottom">

 

and finishes

 

</a>  </td>

 

it's only 2 or 3 lines.

 

That will remove the second cell from your header box - the first cell contains your logo and the second cell is showing up as a pink box at the moment.

 

HTH

 

Alan

Posted

Sorry but i dont see anywhere in my includes/header where the codes starts with

 

<td align="right" valign="bottom">

and ends with

</a>  </td>

 

i looked through it up and down many times!

Posted
Sorry but i dont see anywhere in my includes/header where the codes starts with

 

<td align="right" valign="bottom">

and ends with

</a>  </td>

 

i looked through it up and down many times!

 

 

 

 

In an un-modyfied /catalog/includes/header.php it's actually line 58:

(this is using OsCommerce 2.2ms2 - 051113)

 

<quote>

<td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>

</quote>

 

Just remark out (or delete) this line.

 

Remember - make a back-up first.

 

HTH

Alan

Posted
In an un-modyfied /catalog/includes/header.php it's actually line 58:

(this is using OsCommerce 2.2ms2 - 051113)

 

<quote>

<td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>

</quote>

 

Just remark out (or delete) this line.

 

Remember - make a back-up first.

 

HTH

Alan

 

 

THANK YOU THANKYOU!

 

I finally centered it ! You rock!

Posted
THANK YOU THANKYOU!

 

I finally centered it ! You rock!

 

No problems! The logo looks good now - perhaps make the logo slightly larger so that it fills the width of the cell (and therefore looses the pink verticals at each end).

 

Have fun!

 

Alan

Archived

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

×
×
  • Create New...