Results 1 to 4 of 4
  1. #1
    Join Date
    May 2006
    Posts
    321
    Plugin Contributions
    0

    Default CSS help on customized template, please?

    Okay, I realize this may not be the most effective way to do this, but I wanted to change the look of the cart and one thing I did was use the login sidebox...but I wanted it to be in the header area. So, I edited the main page template to add the right sidebox content to the header and then turned on only the login box in the right sidebox. Worked like a charm...except...I want the box to be lined up at the right edge of the wrapper. Instead, it is floating to the right of the edge in firebox and to the left of the edge in IE. I am no CSS guru, but I've tried everything I can think of and cannot force this to go where I want it. Could anyone help me please?

    http://www.kathymooredesigns.com/teamshop

    Thanks for any help you can give!

  2. #2
    Join Date
    May 2006
    Posts
    321
    Plugin Contributions
    0

    Default Re: CSS help on customized template, please?

    Okay, never mind, I got this figured out, too, just took me a day long break and some deep thought, LOL...

  3. #3
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: CSS help on customized template, please?

    Please post your solution so someone else with the same problem can see what you did.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  4. #4
    Join Date
    May 2006
    Posts
    321
    Plugin Contributions
    0

    Default Re: CSS help on customized template, please?

    Well, just to fix it to justify at the right side, I added this to the stylesheet:

    Code:
    #navColumnTwoWrapper {
    	float:right;
     	}
    However, I also modified the tpl_header.php file as follows to put the login box up there in the first place:

    Code:
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>
    
    <?php
    if (COLUMN_RIGHT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) {
      // global disable of column_right
      $flag_disable_right = true;
    }
    if (!isset($flag_disable_right) || !$flag_disable_right) {
    ?>
    <td id="navColumnTwo" class="columnRight" style="width: <?php echo COLUMN_WIDTH_RIGHT; ?>">
    <?php
     /**
      * prepares and displays right column sideboxes
      *
      */
    ?>
    <div id="navColumnTwoWrapper" style="width: <?php echo BOX_WIDTH_RIGHT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_right.php')); ?></div></td></table>
    <?php
    }
    ?>
    
    <div id="navMain">
    followed by the code for my sliced header. I think that's all I did, but this has been about a 4 day project off and on, so I could have forgotten something. I'll know in just a bit because I'm setting the store up on a different domain with 1.3.8 and plan to apply the same modifications to these files.

    BTW, I'm mostly a trial-and-error learner so if there was a more efficient way to accomplish this, please feel free to enlighten me.

 

 

Similar Threads

  1. v137 Please Help w/ Customized nav bar!
    By capncrunch0 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Aug 2012, 09:57 PM
  2. Template Coding / CSS template location help please?
    By ttac in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 16 Jun 2010, 06:37 AM
  3. I customized CSS and this error . Please help !
    By Hung_war3 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 2 Apr 2007, 08:53 AM
  4. Converting OS css to Zencart Css help please.
    By oavs in forum General Questions
    Replies: 2
    Last Post: 17 Jul 2006, 09:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg