Thread: template help

Results 1 to 10 of 17

Hybrid View

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

    Default Re: template help

    Well, that's my point. The container divs are just not there at all.

    So, we do not exactly know how the bottom corner was intended to be there. It seems like the structure for it is just not there which is a bit mystifying as it comes from a downloaded template. (or maybe not) Perhaps I am missing something....

    What I would try is to create a container div to put it in. To go back to where we were:

    Code:
    <div id="centerHeaderBackground"></div>
    <?php
     /**
      * prepares and displays center column
      *
      */
     require($body_code); ?>
    I would either do what i said and try and use #centerHeaderBackground. The disadvantage of this is that I do not really know for sure that it is doing nothing special. So, instead let's add a new div.

    Code:
    <div id="centerHeaderBackground"></div>
    <div id="newDiv">
    <?php
     /**
      * prepares and displays center column
      *
      */
     require($body_code); ?>
    </div>
    The create a css rule that puts the correct image in the bottom left corner of this new div. Something like the rule that is hanging around loose in the css file:

    Code:
    { background-image: URL(../images/MenuRightFooter.gif);
            background-repeat: no-repeat;
    }
    So make it:

    Code:
    #newDiv{
    background-image: URL(../images/MenuRightFooter.gif);
    background-repeat: no-repeat;
    background-position: bottom left;
    }
    You may have issues with padding, margins and borders so that may need to be tweaked.

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

    Default Re: template help

    After a cup of coffee here is an afterthought.

    If you do try this then you may have to re-arrange the order in which the images are applied. You are creating nested <div>s. You want the corners to be applied to the innermost <div>s other wise they may not be visible.

  3. #3
    Join Date
    Jan 2010
    Posts
    35
    Plugin Contributions
    1

    Default Re: template help

    Quote Originally Posted by niccol View Post
    After a cup of coffee here is an afterthought.

    If you do try this then you may have to re-arrange the order in which the images are applied. You are creating nested <div>s. You want the corners to be applied to the innermost <div>s other wise they may not be visible.
    Nick,

    I used the nested div you suggested...
    Code:
    <div id="centerHeaderBackground">
    <div id="newDiv">
    <?php
     /**
      * prepares and displays center column
      *
      */
     require($body_code); ?>
    </div>
    </div>
    and tweaked padding in the css as well...

    Code:
    .centerColumn {
    	background-image: URL(../images/MenuRightHeader.gif);
    	background-repeat: no-repeat;
    	padding-top:10px;
            background-position: top left;
    }
    
    #centerBackground {
    	background-image: URL(../images/MenuRightBackground.gif);
    	background-repeat: repeat-y;
            background-position: top left;
    }
    
    #newDiv{
    background-image: URL(../images/MenuRightFooter.gif);
    background-repeat: no-repeat;
    background-position: bottom left;
    padding-bottom: 100%;
    }
    and i got this,
    Click image for larger version. 

Name:	template_padding.jpg 
Views:	127 
Size:	5.3 KB 
ID:	6931

    which seems ok.

    But without the padding the MenuRightFooter.gif is directly under whatever products are in the center.
    Click image for larger version. 

Name:	template_no_padding.jpg 
Views:	183 
Size:	14.9 KB 
ID:	6932

    The new challenge is to find a way to permanently align the MenuRightFooter.gif image to the bottom of the left column, since the center column's length seems to be dictated by how much content is displaying in the LEFT COLUMN.

    Now THAT would be perfect!

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

    Default Re: template help

    OK. Well the answer might be to put the bottom left corner into the <td> and the top left corner into the div. So #centerBackground is the one that needs to have the bottom left corner.

    Basically, the <td> will be full height but the div inside it might not be.

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

    Default Re: template help

    Since you have a fixed-width #mainWrapper at 900px wide, you can know exactly how wide the center column will be.
    Thus, you can make one bg with the entire top(TL & TR rounded corners) and another with the entire middle and bottom (BL & BR rounded corners). If you want a border, make the second gif taller than you will ever have a page so there will always be side borders.

    Assign the bottom gif to the <td>, positioned at the bottom center, and the top gif to the first <div>, positioned at top center. This will always fill the column from top to bottom.

    There is an alternate version of this method using three gifs, including one for the middle bg and side borders that repeats vertically so none of the gifs needs to be tall. That would not work so well for the "keep it full height" requirement.

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

    Default Re: template help

    Judging by the the original design there are no TR and BR rounded corners.

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

    Default Re: template help

    OK, then make those corners of the gifs square:) The principle and the advice remains the same.

 

 

Similar Threads

  1. Replies: 8
    Last Post: 29 Apr 2011, 07:53 PM
  2. Purchased template from Template Monster ... need help.
    By dragonimpact in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Nov 2010, 04:07 PM
  3. Template Coding / CSS template location help please?
    By ttac in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 16 Jun 2010, 06:37 AM
  4. Need help modifying a Template Monster template
    By liquidpictures in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 Oct 2007, 05:59 PM
  5. Help About New Template Install Please Help
    By mboley370 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 25 Jun 2007, 06:52 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