Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Category listing not alligned

    Hi, I have used the forum and found the code for my stylesheet to adjust the catagory listing. I needed to move them all in by 40 px so on the margin line i entered 40px. All the category descriptions moved in as required apart from the first one. any ideas?
    A.category-top {
    color: #0C147E !important;
    width: 80%;
    font-size: 1.1em;
    margin: 0px 5px 0px 40px

    www.forestjoinery.co.uk/shop


    Only just started on this one so appologies that it not looking good yet

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Category listing not alligned

    Looks fine in Firefox ????

  3. #3
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: Category listing not alligned

    Hmmmm ok got firefox and ie8 now but ie7 still screws it up any ideas as there are so many ie7 users still out there

  4. #4
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Category listing not alligned

    yes weird one.

    Here's a guess.
    The widths are causing a problem. 80% plus 40px may be more than the containing width.

    What I would do next ( as I say I am on my laptop so don't have full access to IE) is add the following to the bottom of the stylesheet and see what it does:


    Code:
    #categoriesContent{border:1px solid red;position:relative;}
    a.category-top{border:1px solid purple;width:130px;}
    It adds some borders in so we can see more easily, reduces the width of the <a> and makes the containing element position relative just to be on the safe side.

    Leave it up like this if it doesn't have a good effect so I can see the results in IE.

  5. #5
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: Category listing not alligned

    Thanks for your time so far. Have put that code in style sheet to be viewed.

  6. #6
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Category listing not alligned

    Well, I think that is truly bizarre, but nothing surprises me about internet explorer.

    How about this as a work around. Remove the left margin from .category-top. Then add a left margin to #categoriesContent.

    Works in firefox but you will have to add it in to see if it works in IE.

  7. #7
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: Category listing not alligned

    That appears to of worked, many thanks for your time and imput.
    Could I ask you one more little thing, There is a line under the category listings that was there when the all products button was active. I selected not to show all products button in admin but the seperator line remained. Where do i turn the line off or delete it.

  8. #8
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Category listing not alligned

    Well you could take it out of the php file that creates the category sidebox but again the quick and easy css fix is:
    Code:
    hr#catBoxDivider{display:none;}

  9. #9
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Category listing not alligned

    Yes that seems to work in IE back as far as IE6 which is good news. Take out the coloured borders if you want - unless you like the look

  10. #10
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: Category listing not alligned

    Thank you Thank you, think I really should buy the book all about Zen

    I know I taken a lot of your time but, last one I promise, can I use the same css code that I used for the catagory layout to make the delivery, privacy, contact etc look the same. The code is
    A.category-top {
    color: #0C147E !important;
    width: 80%;
    font-size: 1.1em;
    /*margin: 0px 5px 0px 0px !important;*/
    /*background-color: #ddd !important;*/
    padding: 7px 0px 7px 0px;
    /*border: 1px solid #fff;*/
    background: url(http://www.forestjoinery.co.uk/images/sideboxbg.gif) no-repeat right;
    background-position:right;
    display: block; text-decoration: none;
    }
    A.category-top:hover {
    background: url(http://www.forestjoinery.co.uk/shop/..._top_hover.gif) no-repeat right !important;
    color:#8A4A26 !important;
    /*border: 1px outset #f00;*/
    }

    I am hoping i just have to change the A category top bit to something else.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 FreeShipping image in category but not showing in listing?
    By JacobBushnell in forum Customization from the Admin
    Replies: 12
    Last Post: 2 Jun 2012, 02:53 AM
  2. New Products Not Showing in Category Product Listing
    By lndlyb4 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 3 Jul 2009, 05:03 PM
  3. Featured Product Images Not Alligned
    By bishop08 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 Mar 2009, 10:29 PM
  4. Link to first product in category, NOT listing
    By thomasharding in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 27 May 2008, 02:57 PM
  5. Photos left alligned on mac/safari
    By shannda in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 2 Jan 2007, 05:48 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