Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default CenterBox-Main Pg- I want borders

    My main page center column images do not line up or center across section. I tried using stylesheet to center, but keeps doing entire area.

    I would like to add dotted line or solid and center images/info. inside the box. I am not very good at css. I have been trying for several days.

    Help.

    Kim

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

    Default Re: CenterBox-Main Pg- I want borders

    Part of the problem is that the system will change settings based on your telling it how many images across. In this case, you have it set to four. The system gives each item a width of 25%. This would be fine if it were not for padding that also effects it.

    Around line 902 of your stylesheet.css, the margin-left adds enough to the overall total that 100% is exceeded and one item is moved to the next line.
    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
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: CenterBox-Main Pg- I want borders

    You can trick the system into allowing enough room for borders by giving the elements negative side margins:
    Code:
    .centerBoxContents, .specialsListBoxContents, .additionalImages,
     .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew {
    	margin-top: 1em;
    	margin-bottom: 1em;
    	margin-left: -0.4em;
    	margin-right: -0.4em;
    	border-left: 1px dotted #aaaaaa;
    	border-right: 1px dotted #aaaaaa;
    	}
    Adjust to taste.

    Notice that some of the borders are shorter than others - this cannot be overcome without some PHP coding.
    You might want to try the Column Divider Pro mod, as it compensates for different height products in a row, at the cost of a bunch of HTML table markup.

  4. #4
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: CenterBox-Main Pg- I want borders

    Quote Originally Posted by gjh42 View Post
    You can trick the system into allowing enough room for borders by giving the elements negative side margins:
    Code:
    .centerBoxContents, .specialsListBoxContents, .additionalImages,
     .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew {
    	margin-top: 1em;
    	margin-bottom: 1em;
    	margin-left: -0.4em;
    	margin-right: -0.4em;
    	border-left: 1px dotted #aaaaaa;
    	border-right: 1px dotted #aaaaaa;
    	}
    Adjust to taste.

    Notice that some of the borders are shorter than others - this cannot be overcome without some PHP coding.
    You might want to try the Column Divider Pro mod, as it compensates for different height products in a row, at the cost of a bunch of HTML table markup.
    Thank you so much for the information! I will try the column divider pro mod.
    Kim

  5. #5
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: CenterBox-Main Pg- I want borders

    I loaded the Column Divider Pro and went great! But....I have noticed that many people (potential customers) do not like the dotted grid......how do I change to solid line.

    Kim

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

    Default Re: CenterBox-Main Pg- I want borders

    stylesheet_dotline.css shows that a background image is being used. Presumably you could replace that with your own, or style .vDotLine and .hDotLine with solid borders.
    Code:
    .vDotLine
    {
        background-color: transparent;
        background-image: url(../images/delim_v.gif);
        background-repeat: repeat-y;
        background-attachment: scroll;
        width: 20px;
        font-size: 1px;
    }
    
    .hDotLine
    {
        background-image: url(../images/delim_v.gif);
        padding:1px 0;
    }

 

 

Similar Threads

  1. Adding "All Products" as a main tab on the main page centerbox?
    By JohnnyScience in forum Addon Templates
    Replies: 1
    Last Post: 1 May 2013, 08:25 AM
  2. v139h Main Page CenterBox Issues
    By traytray in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 2 Nov 2012, 07:20 PM
  3. Centerbox on main page
    By mmnord in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 9 Sep 2008, 03:53 AM
  4. Need Help With The Main Borders
    By 1der_dog in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Jul 2007, 02:46 PM
  5. Borders on main page
    By AvieLF in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Dec 2006, 07:43 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