surrfman Posted March 19, 2011 Share Posted March 19, 2011 Having issue trying to get the text in navigation bar to stop wanting to become two lines in two separate boxes. have tried a host of code changes in the header file, but frustration has set in. I can edit with Firebug, bu when implemented in the actual header file some really scattered page stuff happens, along with those tasty syntax errors. Is there another file that needs something done to it too? The site under construction: www.discountegauges.com here is my current header code: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2010 osCommerce Released under the GNU General Public License */ if ($messageStack->size('header') > 0) { echo '<div class="grid_24">' . $messageStack->output('header') . '</div>'; } ?> <div id="header" class="grid_24"> <div id="storeLogo"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) . '</a>'; ?></div> <div id="headerShortcuts"> <div class="grid_24 ui-widget infoBoxContainer"> <div class="ui-widget-header infoBoxHeading"><?php echo ' ' . $breadcrumb->trail(' » '); ?> echo '<a class="headershortcutlink" href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"alt="" >' .($cart->count_contents() > 0 ? ' (' . $cart->count_contents() . ')' : '') . HEADER_TITLE_CART_CONTENTS . '</a> | ' . '<a class="headershortcutlink" href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '" alt="">' . HEADER_TITLE_CREATE_ACCOUNT. '</a> | ' . '<a class="headershortcutlink" href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" alt="">' . HEADER_TITLE_CHECKOUT . '</a> | ' . '<a class="headershortcutlink" href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '"alt="">' . HEADER_TITLE_MY_ACCOUNT . '</a> ' ; if (tep_session_is_registered('customer_id')) {echo '<a class="headershortcutlink" href="' . tep_href_link(FILENAME_LOGOFF, '', 'SSL') . '"alt="" >' . HEADER_TITLE_LOGOFF . '</a>' ; <?php } </div> ?> </div> </div> </div> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td> </tr> </table> <?php } ?> Any help would greatly be appreciated. Timmy C Link to comment Share on other sites More sharing options...
spoofy Posted March 19, 2011 Share Posted March 19, 2011 Based on the code you provided, I am unable to find this line: <div align="right"> What you want to do is find that code and replace div with span and remove align= attribute. And then you can use style="float:right;" My Contributions: Google XML Sitemap SEO compatible with Ultimate SEO URL by FWR Media ::: Accurate & Precise Bread Crumb Trail Link to comment Share on other sites More sharing options...
germ Posted March 19, 2011 Share Posted March 19, 2011 If that doesn't work (it didn't using the web developer plugin in Firefox - the text was pushed right but other undesirable effects cropped up, including the fact it was still pushed onto the next line) try this: <span style="margin-left: 590px;"> And don't forget to change the very next </div> tag to </span> instead. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
surrfman Posted March 20, 2011 Author Share Posted March 20, 2011 Germ.. You are the DUDE!!!! worked perfectly Thanks a bunch!!! Timmy C Link to comment Share on other sites More sharing options...
germ Posted March 20, 2011 Share Posted March 20, 2011 I get lucky sometimes. :) The "Cart Contents" link doesn't work. Probably need to change FILENAME_CART_CONTENTS in the php source to FILENAME_SHOPPING_CART If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.