Results 1 to 10 of 27

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    283
    Plugin Contributions
    0

    Default Re: Replicating this with CSS? -> Shadow, Roundcorner, Gradient

    OK I did that but do i need to change the path that is in the stylesheet to something like /includes/templates/custom/images/cornbg-l ? Or leave it the way it is. Because I am still getting no images?

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

    Default Re: Replicating this with CSS? -> Shadow, Roundcorner, Gradient

    The correct method for describing image files (which are saved like
    /includes/templates/your_template/images/cornbg-l.gif) is url(../images/cornbg-l.gif).
    If it is not working for you, there is something else wrong.

  3. #3
    Join Date
    Apr 2008
    Posts
    283
    Plugin Contributions
    0

    Default Re: Replicating this with CSS? -> Shadow, Roundcorner, Gradient

    Well I don't doubt that I am very new so I am having lots of problems. Here is what I have right now.

    my stylesheet.css


    Code:
    
    h2.centerBoxHeading {
        background-image: url(../images/cornbg-l.gif);
        background-position: top left;
        background-repeat: no-repeat;
        }
    
    .centerBoxHeadingWrapper {
        background-image: url(../images/cornbg-r.gif);
        background-position: top right;
        background-repeat: no-repeat;
        /*display: block;*/ /*this might be needed to make the span fill the heading*/
        }
    
    and this is what i have for my /includes/modules/your_template/new_products.php

    if (isset($new_products_category_id) && $new_products_category_id != 0) {
    $category_title = zen_get_categories_name((int)$new_products_category_id);
    $title = '<h2 class="centerBoxHeading">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . ($category_title != '' ? ' - ' . $category_title : '' ) . '</h2>';
    } else {
    $title = '<h2 class="centerBoxHeading">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . '</h2>';
    }

    [/code]


    Any thoughts on what could be wrong? I haven't done anything but edit the stylesheet with this information and edit the new product page with the code listed in this post. I also created and named the two image files. Other than that nothing else has been done.

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

    Default Re: Replicating this with CSS? -> Shadow, Roundcorner, Gradient

    The New Products heading text is there, white on white, but the wrapper span is not in the output, nor in the PHP file. Put in the code indicated in post 13.

    You aren't actually using "your_template" for a folder name, are you? In your case, it should be "arch_shoppe".
    Last edited by gjh42; 2 Sep 2008 at 06:01 AM.

  5. #5
    Join Date
    Apr 2008
    Posts
    283
    Plugin Contributions
    0

    Default Re: Replicating this with CSS? -> Shadow, Roundcorner, Gradient

    OK I think I am understanding the problem. I read through the code and it is still using the centerboxheadnew gif image which I renamed to make sure things were working. So i changed it back to the way it was and I do see behind my original header a piece of another one. So I must have missed something. Does the centerboxhead need to be blank or something. Also the image behind it looks a little weird. What are your thoughts on this. Here is the site again..

    http://www.wpc-consulting.com/~stxmill/

    By the way i did see the text which was the white on white. Nice observation on that one. Thanks for that.

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

    Default Re: Replicating this with CSS? -> Shadow, Roundcorner, Gradient

    You have a lot of white space around the image in cornbg-l.gif. That's why you see the little corner of the image. You need to crop that to just the image. (Same with cornbg-r.gif, most likely.)

    Also, you do need to uncomment the display: block;
    Code:
        /*display: block;*/ /*this might be needed to make the span fill the heading*/
    You need to change centerboxhead-new.gif to just the text on a transparent background, so you can see the cornbg images behind it.

  7. #7
    Join Date
    Apr 2008
    Posts
    283
    Plugin Contributions
    0

    Default Re: Replicating this with CSS? -> Shadow, Roundcorner, Gradient

    Well that post was very helpful thank you for that. I am still having a little issues with it but it is looking better. It seems like the cornbg-l.gif is working just the way it should. Touches the left side just perfectly and looks great. However the cornbg-r.gif still looks like something is wrong in firefox. However in ie it looks much better but I can see where the two pieces meet with a line and it doesn't stretch all the way to the end. I then made it longer and still the same effect. Cornbg-l is most wider so is there a way to maybe to shift the right piece more the the left or at least where it meets the left piece more in the middle? I did uncomment what you said and cropped both images as well. I also made the centerboxehead image with just text and all of that seems to be working correctly. Just need better alignment and to work in firefox. Any thoughts on this.

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

    Default Re: Replicating this with CSS? -> Shadow, Roundcorner, Gradient

    Your stylesheet as well as the page display show that you have not uncommented the display: block;
    Make it like this:
    Code:
    .centerBoxHeadingWrapper {
        background-image: url(../images/cornbg-r.gif);
        background-position: top right;
        background-repeat: no-repeat;
        display: block;
        }
    It seems that somehow .centerBoxHeadingWrapper is getting a strangely squeezed version of cornbg-l instead of cornbg-r.

    And also, cornbg-r does not need to be so long - 100px or so should be enough.

 

 

Similar Threads

  1. v154 Not sure how to go about this - "replicating shop"
    By samisoaps in forum General Questions
    Replies: 2
    Last Post: 23 Jan 2016, 01:20 PM
  2. v151 CSS button problem: gradient background with IE
    By su35 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Jun 2013, 09:36 PM
  3. Can I do this with CSS
    By ThePatch in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 May 2007, 09:32 PM
  4. CSS drop shadow text
    By studeo in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 28 Jan 2007, 10:47 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