Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23
  1. #11
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: Buttons in main pg header

    Quote Originally Posted by stevesh View Post
    OK. but you need to check your site in IE8.
    You are correct -- I can not get IE8 to work when logged in. I even added to stylesheet...

    #navMain ul li a {
    float: left;
    margin-top: 1.2em;
    margin-left: 0.1em;
    margin-right: 3.5em;
    padding: 0 .25em;
    width: 100%; /* cancel margin fix for other browsers */
    overflow: visible;
    }

    Works fine in FF. Also, having issues with secure/non-secure because of my social bookmarkers in my header. I have that question in another zencart forum.

    Kim

  2. #12
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: Buttons in main pg header

    Quote Originally Posted by kburner View Post
    You are correct -- I can not get IE8 to work when logged in. I even added to stylesheet...

    #navMain ul li a {
    float: left;
    margin-top: 1.2em;
    margin-left: 0.1em;
    margin-right: 3.5em;
    padding: 0 .25em;
    width: 100%; /* cancel margin fix for other browsers */
    overflow: visible;
    }

    Works fine in FF. Also, having issues with secure/non-secure because of my social bookmarkers in my header. I have that question in another zencart forum.

    Kim
    On day #3 with buttons not lined up correctly in IE when logged in. Works fine when not logged in.

    I went through stylesheet.css with:

    .forward
    #navmain ul li a
    #navmain ul

    I have tried all kinds of combinations to get this to work....and it still does not.

    Am I in the correct css file? Suggestions?

    Kim

  3. #13
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Buttons in main pg header

    Quote Originally Posted by kburner View Post
    On day #3 with buttons not lined up correctly in IE when logged in. Works fine when not logged in.

    I went through stylesheet.css with:

    .forward
    #navmain ul li a
    #navmain ul

    I have tried all kinds of combinations to get this to work....and it still does not.

    Am I in the correct css file? Suggestions?

    Kim
    This is from the view page source on your site. The closing </ul> is in the wrong place it should be placed before the closing </div>. I've highlighted it below. Open includes/templates/YOUR_TEMPLATE/common/tpl_header.php and make the correction and see if that helps.

    Code:
     <div id="navMain">
        <ul class="forward">
        <li><p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><a href="https://www.burnerbooks.com/index.php?main_page=login"><img src="images/Login.gif" border="0" alt=""></a></li>
        <li><p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><a href="https://www.burnerbooks.com/index.php?main_page=account"><img src="images/My_Account.gif" border="0" alt=""></a></li>
      <li><p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><a href="http://www.burnerbooks.com/index.php?main_page=shopping_cart"><img src="images/Shopping_Cart.gif"border="0" alt=""></a></li>  
    
    </div></ul>

  4. #14
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: Buttons in main pg header

    Quote Originally Posted by clydejones View Post
    This is from the view page source on your site. The closing </ul> is in the wrong place it should be placed before the closing </div>. I've highlighted it below. Open includes/templates/YOUR_TEMPLATE/common/tpl_header.php and make the correction and see if that helps.

    Code:
     <div id="navMain">
        <ul class="forward">
        <li><p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><a href="https://www.burnerbooks.com/index.php?main_page=login"><img src="images/Login.gif" border="0" alt=""></a></li>
        <li><p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><a href="https://www.burnerbooks.com/index.php?main_page=account"><img src="images/My_Account.gif" border="0" alt=""></a></li>
      <li><p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><a href="http://www.burnerbooks.com/index.php?main_page=shopping_cart"><img src="images/Shopping_Cart.gif"border="0" alt=""></a></li>  
    
    </div></ul>
    I changed coding around and still does not work. Coding needed to be in correct place. Thank you.

    Which one should I put code into?

    .forward
    #navmain ul
    #navmain ul li a

    I have tried a number of combination's..any suggestions.

    Thank, Kim

  5. #15
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Buttons in main pg header

    Quote Originally Posted by kburner View Post
    I changed coding around and still does not work. Coding needed to be in correct place. Thank you.

    Which one should I put code into?

    .forward
    #navmain ul
    #navmain ul li a

    I have tried a number of combination's..any suggestions.

    Thank, Kim
    Kim, I probably would have handled things a bit differently.

    First I would have positioned the logoWrapper as relative.

    Then positioned navmain as absolute and to the right.

    Next I would have created a sliding door button for the <li> declarations and included that in the stylesheet instead of having those inline styles

    I would have then created individual classes for each button.

    .login
    .account
    .cart

    Then the coding in tpl_header.php would have looked like this:

    <div id="navMain">
    <ul>
    <li class="login"><a href="https://www.burnerbooks.com/index.php?main_page=login"><span>login</span></a></li>
    <li class="account"><a href="https://www.burnerbooks.com/index.php?main_page=account"><span>My account</span></a></li>
    <li class="cart"><a href="http://www.burnerbooks.com/index.php?main_page=shopping_cart"><span>Shopping Cart</span></a></li>
    </ul>
    </div>

  6. #16
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: Buttons in main pg header

    Quote Originally Posted by clydejones View Post
    Kim, I probably would have handled things a bit differently.

    First I would have positioned the logoWrapper as relative.

    Then positioned navmain as absolute and to the right.

    Next I would have created a sliding door button for the <li> declarations and included that in the stylesheet instead of having those inline styles

    I would have then created individual classes for each button.

    .login
    .account
    .cart

    Then the coding in tpl_header.php would have looked like this:

    <div id="navMain">
    <ul>
    <li class="login"><a href="https://www.burnerbooks.com/index.php?main_page=login"><span>login</span></a></li>
    <li class="account"><a href="https://www.burnerbooks.com/index.php?main_page=account"><span>My account</span></a></li>
    <li class="cart"><a href="http://www.burnerbooks.com/index.php?main_page=shopping_cart"><span>Shopping Cart</span></a></li>
    </ul>
    </div>
    Looks like I am doing it your way...

    positioned the logoWrapper as relative.
    #logoWrapper {
    width: 1000px;
    height: 110px;
    background-image:url(../images/header_example_four.jpg);
    text-align: right;
    background-repeat:no-repeat;
    margin: 0em;
    padding: 0em;
    position: relative;
    }

    navmain as absolute and to the right.
    #navMain ul li a {
    float: right;
    margin-top: 1.2em;
    margin-left: 0.1em;
    margin-right: 3.5em;
    position: absolute;
    }

    created a sliding door button for the <li> declarations and included that in the stylesheet instead of having those inline styles

    ???? not sure how to do this???

    created individual classes for each button - located at end of stylesheet

    .login {
    }

    .account {
    }

    .cart{
    }


    Kim

  7. #17
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Buttons in main pg header

    Quote Originally Posted by kburner View Post
    Looks like I am doing it your way...

    positioned the logoWrapper as relative.
    #logoWrapper {
    width: 1000px;
    height: 110px;
    background-image:url(../images/header_example_four.jpg);
    text-align: right;
    background-repeat:no-repeat;
    margin: 0em;
    padding: 0em;
    position: relative;
    }

    navmain as absolute and to the right.
    #navMain ul li a {
    float: right;
    margin-top: 1.2em;
    margin-left: 0.1em;
    margin-right: 3.5em;
    position: absolute;
    }

    created a sliding door button for the <li> declarations and included that in the stylesheet instead of having those inline styles

    ???? not sure how to do this???

    created individual classes for each button - located at end of stylesheet

    .login {
    }

    .account {
    }

    .cart{
    }


    Kim
    This is what your css should look like:

    Code:
    #navMain {
    	margin:0;
    	font-size: 1.1em;
    	line-height: normal;
    	width: 160px;
    	position:absolute;
    	top:5px;
    	right:5px;
    }
    #navMain ul {margin:0;padding: 0;display:block;list-style:none;}
    #navMain li a {
       padding: 8px 0 0 35px;
    	height:24px;
       text-decoration:none;
       background: url(../images/tableft.gif) no-repeat left top;
       color:#000;	
    }
    #navMain ul li a span {
       display:block;
       background: url(../images/tabright.gif) right top;
       padding:2px 15px 2px 6px;
       }
    #navMain ul li a:hover {background-position:0% -42px;}
    #navMain ul li a:hover span {padding:2px 15px 2px 6px;background-position:100% -42px;}
    This is what your modified tpl_header.php should look like:
    PHP Code:
    <div id="navMain">
        <ul>
    <?php if ($_SESSION['customer_id']) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF'''SSL'); ?>"><span><?php echo HEADER_TITLE_LOGOFF?></span></a></li>
    <?php
          
    } else {
            if (
    STORE_STATUS == '0') {
    ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN'''SSL'); ?>"><span><?php echo HEADER_TITLE_LOGIN?><span></a></li>
    <?php } } ?>

        <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT'''SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT?></a></li>

    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART'''NONSSL'); ?>"><span><?php echo HEADER_TITLE_CART_CONTENTS?></span></a></li>
    <?php }?>
    </ul>
    </div>
    save your sliding door tableft.gif and tabright.gif to
    includes/templates/YOUR_TEMPLATE/images

    Attachment 6460
    Attachment 6461
    Last edited by clydejones; 31 Dec 2009 at 02:36 AM.

  8. #18
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: Buttons in main pg header

    Quote Originally Posted by clydejones View Post
    This is what your css should look like:

    Code:
    #navMain {
    	margin:0;
    	font-size: 1.1em;
    	line-height: normal;
    	width: 160px;
    	position:absolute;
    	top:5px;
    	right:5px;
    }
    #navMain ul {margin:0;padding: 0;display:block;list-style:none;}
    #navMain li a {
       padding: 8px 0 0 35px;
    	height:24px;
       text-decoration:none;
       background: url(../images/tableft.gif) no-repeat left top;
       color:#000;	
    }
    #navMain ul li a span {
       display:block;
       background: url(../images/tabright.gif) right top;
       padding:2px 15px 2px 6px;
       }
    #navMain ul li a:hover {background-position:0% -42px;}
    #navMain ul li a:hover span {padding:2px 15px 2px 6px;background-position:100% -42px;}
    This is what your modified tpl_header.php should look like:
    PHP Code:
    <div id="navMain">
        <ul>
    <?php if ($_SESSION['customer_id']) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF'''SSL'); ?>"><span><?php echo HEADER_TITLE_LOGOFF?></span></a></li>
    <?php
          
    } else {
            if (
    STORE_STATUS == '0') {
    ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN'''SSL'); ?>"><span><?php echo HEADER_TITLE_LOGIN?><span></a></li>
    <?php } } ?>

        <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT'''SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT?></a></li>

    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART'''NONSSL'); ?>"><span><?php echo HEADER_TITLE_CART_CONTENTS?></span></a></li>
    <?php }?>
    </ul>
    </div>
    save your sliding door tableft.gif and tabright.gif to
    includes/templates/YOUR_TEMPLATE/images

    Attachment 6460
    Attachment 6461
    Hi Clyde,

    Been working hard to change two files, but still does not work. Not sure what I am doing wrong.

  9. #19
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Buttons in main pg header

    Quote Originally Posted by kburner View Post
    Hi Clyde,

    Been working hard to change two files, but still does not work. Not sure what I am doing wrong.
    Try changing the css with the following:

    #navMain ul {margin:0;padding: 0;list-style:none;}
    #navMain li a {
    padding: 8px 0 0 35px;
    display:block;
    height:24px;
    text-decoration:none;
    background: url(../images/tableft.gif) no-repeat left top;
    color:#000;
    }

    You may need to adjust the padding somewhat also.

  10. #20
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Buttons in main pg header

    Quote Originally Posted by clydejones View Post
    Try changing the css with the following:

    #navMain ul {margin:0;padding: 0;list-style:none;}
    #navMain li a {
    padding: 8px 0 0 35px;
    display:block;
    height:24px;
    text-decoration:none;
    background: url(../images/tableft.gif) no-repeat left top;
    color:#000;
    }

    You may need to adjust the padding somewhat also.
    Don't forget to include the <span> </span> tags.
    PHP Code:
    <div id="navMain">
        <ul>
    <?php if ($_SESSION['customer_id']) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF'''SSL'); ?>"><span><?php echo HEADER_TITLE_LOGOFF?></span></a></li>
    <?php
          
    } else {
            if (
    STORE_STATUS == '0') {
    ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN'''SSL'); ?>"><span><?php echo HEADER_TITLE_LOGIN?></span></a></li>
    <?php } } ?>

        <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT'''SSL'); ?>"><soan><?php echo HEADER_TITLE_MY_ACCOUNT?></span></a></li>

    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART'''NONSSL'); ?>"><span><?php echo HEADER_TITLE_CART_CONTENTS?></span></a></li>
    <?php }?>
    </ul>
    </div>

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. header buttons
    By typoe in forum General Questions
    Replies: 4
    Last Post: 1 Feb 2011, 06:44 PM
  2. Backround buttons on main page category
    By hengxi in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 3 Apr 2010, 11:36 AM
  3. header buttons
    By TheBuz in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 15 May 2009, 05:09 PM
  4. Detaching header from main page - how to get main section and header size differently
    By guls_guys in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Apr 2008, 06:07 PM
  5. Buttons in the main page area
    By ellis200200 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Jul 2006, 03:58 PM

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