Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Posts
    286
    Plugin Contributions
    0

    Default Category image and category name text align problem.

    Hi, I am trying to get the category name to align centered to the category image on my category listing page - here

    http://jurassiclures.com.au/index.ph...=index&cPath=1

    I want them to look the same as i have them on the product info pages

    http://jurassiclures.com.au/index.ph...&products_id=9

    It uses <div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?></div>

    Anyone know how to fix this one?

    Thanks

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,688
    Plugin Contributions
    11

    Default Re: Category image and category name text align problem.

    Well, first of all, it got listed in the css as div.categoryImg versus .categoryImg.
    You will probably need to add .categoryImg img to the css to control the image and the text differently.
    You are aware that not everybody has the bangers font installed on there machine. This could affect the look no matter what you do.

    Also, you seem to have built your template by editing files in the classic folders. This will come back to haunt you on upgrade. The classic is there to not only show what a basic cart looks like but, also, it gives a safety net you can use to test your cart if you have problems down the road. The template_default files are used if files of the same name are not found in the custom template. Classic and default aren't really designed to "talk" to each other as you are doing. It's not a huge project to correct that, but it WILL be a huge project at upgrade time.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Oct 2005
    Posts
    286
    Plugin Contributions
    0

    Default Re: Category image and category name text align problem.

    Thanks, yeh I know I'll need to sort the templates out but I inherited this and need to get it up quickly. I'll come back later and sort the templates. Bangers is a google web font and so doesn't need to be installed on the users machine.

    I have this in my css. Are you saying it needs something else?


    .categoryImg {
    font-size: 3.6em;
    color: #0f70a8;
    align: middle;
    font-family: bangers;

    }

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,688
    Plugin Contributions
    11

    Default Re: Category image and category name text align problem.

    That only controls the text. If you want to control the text and the image, you'll need to add the .categoryIMG img call which will control the images in the .categroyIMG area.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  5. #5
    Join Date
    Oct 2005
    Posts
    286
    Plugin Contributions
    0

    Default Re: Category image and category name text align problem.

    OK thanks. So i need to add this?
    .categoryIMG img {

    }

  6. #6
    Join Date
    Oct 2005
    Posts
    286
    Plugin Contributions
    0

    Default Re: Category image and category name text align problem.

    What would I need to add to .categoryIMG img so the text and image aligns?

 

 

Similar Threads

  1. Main and Sub-Category button name/text position
    By danielosko in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 7 Oct 2013, 02:45 PM
  2. v150 Category Rows align text with image
    By SPH in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 29 Sep 2012, 08:51 AM
  3. Bottom Align Sub Category Text & Image on Category Page
    By yorkshiregc in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Aug 2011, 02:01 AM
  4. Border Problem and Text under main page category image problem
    By bigc90210 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 7 Feb 2007, 02:40 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