Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Posts
    166
    Plugin Contributions
    0

    Default Increase Width of Model Column

    Hi,

    I have changed the title of my Model Column to Available in. However this is on two lines which means the data is not aligned to the price. See: http://bestpriceaccessories.com/inde...ndex&cPath=1_5

    How do I change the width of the whole column.

    ZC 1.3.8a

  2. #2
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Increase Width of Model Column

    in your stylesheet.css around line 554 there are lots of Class and div Id selector .. with only one entry ..

    text-align:center;

    add the following and see if that would help

    vertical-align:top;

    i can only test one page , so i can not tell the effect on other pages. as this will effect any class and div selectors.

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

    Default Re: Increase Width of Model Column

    Add to your stylesheet

    #listCell0-3 {width: 70px;}

  4. #4
    Join Date
    Dec 2008
    Posts
    166
    Plugin Contributions
    0

    Default Re: Increase Width of Model Column

    Worked like a treat thanks. However, the timeframe is still pushed down a line. Any ideas?

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

    Default Re: Increase Width of Model Column

    It's not that the timeframe is pushed down, it's that the price is artificially high. The table-cell contents are all vertically centered by default, but the price cell has four invisible <br /> and one <a> element as well as the price; all of those take up space, and what you can see is the price at the top of the stack.

    To get rid of the display of those, add this to your stylesheet:

    .productListing-data br {display: none;}

    There are no other breaks within the listing cells, so this should not have any negative effects.


    Alternatively, you could set the vertical alignment for all listing cells:

    .productListing-data {vertical-align: top;}

    but this looks awkward to my eye. Adding

    padding-top: 0.8em;

    would increase the height of the listings, which might or might not be ok, and still leaves the price and timeline higher than the title. You would then have to pull the title back up like this:

    h3.itemTitle {margin-top: -0.8em;}

  6. #6
    Join Date
    Dec 2008
    Posts
    166
    Plugin Contributions
    0

    Default Re: Increase Width of Model Column

    gjh42: Thank you so much. Worked perfectly.

 

 

Similar Threads

  1. v154 Disabling column width and box width
    By mesnitu in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Sep 2015, 04:58 PM
  2. v150 How can I increase the width of the display so my text area has more width.
    By westdh in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Aug 2012, 12:50 PM
  3. Increase centerbox width
    By pageblair in forum Addon Templates
    Replies: 18
    Last Post: 15 Dec 2010, 09:39 PM
  4. Remove Right column on front page only - increase centercolumn width
    By ikernbecauseicare in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 7 Oct 2010, 07:46 AM
  5. Column Width and Sidebox Width not working
    By khopek in forum Customization from the Admin
    Replies: 11
    Last Post: 8 Jan 2010, 06:22 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