Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Jan 2010
    Location
    Broome
    Posts
    325
    Plugin Contributions
    0

    Default Breadcrumb Nav 100%

    Hi I have googled and searched forum to find out how to make the navbarBreadcrumb fit 100% of the page and sit above the left and right sideboxes.

    I did find one mention of customising tpl_main_page.php and have looked at this file but most of it I cant understand.

    Site ishttp://www.fusionherbsorganics.com.a...=index&cPath=1

    I am also trying to get the images in the left sidebox to be centred.
    I understand that I am meant to target .sideBoxContentItem a img and this class does not exist in stylesheet .. so should I make it up/add it? I use firefox developers toolkit with the outline>current element to find the names of the various elements.

    Is this the convention for styling in the stylesheet when the class does not exist? Have I confused myself .. it wouldnt be the first time lol.

    Also if I want to move the log in from the top of the page to one of the sideboxes do I install this mod login_box_1.6.

    Thanks!

    PS have zen cart 1.3.9h and have template override system in place.
    [FONT="Verdana"]Amanda McInerney
    Kimberley Web Design[/FONT]

    http://www.kimberleywebdesign.com.au/

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Breadcrumb Nav 100%

    You can get CSS to adjust the breadcrumbs. It's an "untidy" way of doing it, but it gets the result you want and is easier than code edits to PHP files.

    Put this at the BOTTOM of your stylesheet.css

    /* - - - BREADCRUMB POSITION OVERRIDE - - -*/
    #navBreadCrumb {margin-left: -150px; margin-right: 5px;}

    (or: #navBreadCrumb {margin: 0px 5px 0px -150px;}

    ------------------------------------------------------------

    Your column pics ARE centered, but as they are quite WIDE, and the column width is 150px, they are nudging up to the RIGHT HAND SIDE of the column. There are also padding and margin settings for the sideboxes in the CSS. These also need to be taken into account.

    You need to make size adjustments to your column and your images. These are done in the configuration menu, under LAYOUT SETTINGS and IMAGES.

    Play around until you get the size you want.

    -----------------------------------------------------------

    If you see an ELEMENT ID (such as a css class or id) appearing in the HTML, it means that the software is applying the ID (or CLASS) to an element.

    In a lot of cases, elements are not styled individually, because they can just "inherit" a parent style, or a collective" style. So you won't see any declaration for them in the stylesheet.

    But you can add these in as and when you need to. Just follow CSS rules and protocols and it will be OK.
    20 years a Zencart User

  3. #3
    Join Date
    Jan 2010
    Location
    Broome
    Posts
    325
    Plugin Contributions
    0

    Default Re: Breadcrumb Nav 100%

    Thanks so much. You guys moderating this forum are AWSOME!

    I did have one part of this post that was not answered and that was the bit about moving the log in at the top of the page to one of the sideboxes.

    Also is it possible to add products without an image .. so that the no picture available is not there either. I know you are thinking why would you want to but I have client who wants exactly that.

    Thanks again
    [FONT="Verdana"]Amanda McInerney
    Kimberley Web Design[/FONT]

    http://www.kimberleywebdesign.com.au/

  4. #4
    Join Date
    Jan 2010
    Location
    Broome
    Posts
    325
    Plugin Contributions
    0

    Default Re: Breadcrumb Nav 100%

    Sorry your css breadcrumb worked for it to go left but I still cant get it to go right across the page. Thx
    [FONT="Verdana"]Amanda McInerney
    Kimberley Web Design[/FONT]

    http://www.kimberleywebdesign.com.au/

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Breadcrumb Nav 100%

    Quote Originally Posted by wotnow View Post
    Sorry your css breadcrumb worked for it to go left but I still cant get it to go right across the page. Thx
    Apply the same principles as you have done for the LEFT side, to the RIGHT side.

    Nudge the right column down (like yiu did with the left), then give the breadcrumb element an absolute width in the css declaration, where that width stretches it across the content area.
    20 years a Zencart User

  6. #6
    Join Date
    Jan 2010
    Location
    Broome
    Posts
    325
    Plugin Contributions
    0

    Default Re: Breadcrumb Nav 100%

    Hi Thanks for your response. I already tried that. If you apply the same css to the right as to the left .. the right content box gets shifted out to the right. I tried adding a right margin to the right content. I can find no float properties for this sidebox.
    [FONT="Verdana"]Amanda McInerney
    Kimberley Web Design[/FONT]

    http://www.kimberleywebdesign.com.au/

  7. #7
    Join Date
    Jan 2010
    Location
    Broome
    Posts
    325
    Plugin Contributions
    0

    Default Re: Breadcrumb Nav 100%

    Hi I am still waiting to find out how to make the breadcrumb fit 100% across the page.

    All my attempts have pushed the whole right side bar across. Any suggestions would be much appreciated. Thanks.
    [FONT="Verdana"]Amanda McInerney
    Kimberley Web Design[/FONT]

    http://www.kimberleywebdesign.com.au/

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Breadcrumb Nav 100%

    There are a couple of factors you need to account for. Change your stylesheet rules like this:
    Code:
    /* - - - BREADCRUMB POSITION OVERRIDE - - -*/
    #navBreadCrumb {
    	margin: 0px -180px 0px -180px;
    	background-color:#9a8e7e;}
    
    /* top padding on side boxes  */
    
    #navColumnTwo.columnRight {
    	padding: 3.8em 0 0 0;
    	margin: 0;
    	background: none;}
    You need negative margins on both left and right sides of the breadcrumbs. Also, the right sidebar has a background color which hides the breadcrumbs when the bar stretches to the right, so you have to neutralize that.


    By the way, you have a whole bunch of rules setting the same properties for #navBreadCrumb, which could cause confusion. Best to consolidate all of them into one rule.

  9. #9
    Join Date
    Jan 2010
    Location
    Broome
    Posts
    325
    Plugin Contributions
    0

    Default Re: Breadcrumb Nav 100%

    Wow thank you so much that has been bugging me for ages. Would you mind explaining to me how I can get my images to display centre.

    I have used the find and replace in dreamweaver and from what I can see all img tags are set align-text:center

    and I tried

    #productMainImage.centredContentback a img {
    margin:0auto;
    text-align:center;
    padding: 1em 0 0 0;}

    I cant seem to get the h1 tag and the image centred. Thanks
    [FONT="Verdana"]Amanda McInerney
    Kimberley Web Design[/FONT]

    http://www.kimberleywebdesign.com.au/

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Breadcrumb Nav 100%

    I can only see the down for maintenance page, so can't diagnose the image styling now.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Option to show Category 0 in the breadcrumb nav bar?
    By mi16chap in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 16 Apr 2012, 08:34 PM
  2. Breadcrumb Nav Problem?
    By rjharris37 in forum General Questions
    Replies: 1
    Last Post: 11 Oct 2009, 07:07 PM
  3. Breadcrumb nav line showing up twice
    By littleturtlemama in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Feb 2009, 07:25 PM
  4. Breadcrumb 'header' is not 100% width.. please help.
    By rcrosier in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 26 Dec 2006, 11:34 PM
  5. move breadcrumb trail into nav...
    By khopek in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 16 Sep 2006, 08:57 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR