0
Welcome Guest! Login
0 items Join Now

CSS - How to avoid squeezing of column when using percentage

  • Re: CSS - How to avoid squeezing of column when using percentage

    Posted 14 years 1 month ago
    • My pleasure, Although your solution fixed the issue, it broke list/grid effect, at first I wanted to release the theme to the community that is why decided to use percentage but now I opted for fixed width don't have time to troubleshoot.
    • VirtueShop
  • Re: CSS - How to avoid squeezing of column when using percentage

    Posted 14 years 2 weeks ago
    • I have another issue.

      I have width of header section set 100% but for some reason it going outside of the main body/content area, (see image) any help fixing this issue is appreciated, direct link to site

      This image is hidden for guests.
      Please log in or register to see it.
    • VirtueShop
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: CSS - How to avoid squeezing of column when using percentage

    Posted 14 years 2 weeks ago
    • .browseParamContainer {
      background-color:#F2F2F2;
      border:1px solid #E3E3E3;
      display:inline;
      float:right;
      margin-bottom:10px;
      padding:10px;
      width:92%; <-used to be 100%
      }
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: CSS - How to avoid squeezing of column when using percentage

    Posted 14 years 2 weeks ago
    • Tho Pär answer isn't wrong, I would add this instead:

      div.browseParamContainer {padding: 0;}
      div.browseSortByFormContainer form > div {padding: 10px;}

      You are adding the padding at the wrong place. If you have a width of 100% the padding will be added. So you have to add it to a child item that is a block element but no width attached.
      www.w3.org/TR/CSS2/box.html

      btw that is why RT has the class .rt-block in its gantry templates ...
  • Re: CSS - How to avoid squeezing of column when using percentage

    Posted 14 years 2 weeks ago
    • Henning, you are the man, thank you.

      If you need any of the extensions from my site please let me know.
    • VirtueShop
  • Re: CSS - How to avoid squeezing of column when using percentage

    Posted 14 years 6 days ago
    • I have come back with another question, I have the following
      td#maincol ul li {
        padding-left: 20px;
      }

      Which gives 20px padding to ul and li however I don't want the padding to apply to ul and li that are in a specific class named 'pagination'.
    • VirtueShop
    • David Goode's Avatar
    • David Goode
    • Preeminent Rocketeer
    • Posts: 17058
    • Thanks: 890
    • Web Designer and Host

    Re: CSS - How to avoid squeezing of column when using percentage

    Posted 14 years 6 days ago
    • Hi Peter,

      Try adding the following line as well as keeping the line you ...
      .pagination td#maincol ul li {
        padding-left: 0;
      }

      May need to play with size and path a bit. I always use Firefox and Firebug to test before saving files to server.

      Hope this helps.

    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information
  • Re: CSS - How to avoid squeezing of column when using percentage

    Posted 14 years 5 days ago
    • Thank you, the code you wrote is the first thing I tried, it didn't work, however the following code with a comma works somewhat, I say somewhat because it effects even td#maincol ul li that aren't in pagination class.
      .pagination, td#maincol ul li {
        padding-left: 0;
      }
    • VirtueShop
    • David Goode's Avatar
    • David Goode
    • Preeminent Rocketeer
    • Posts: 17058
    • Thanks: 890
    • Web Designer and Host

    Re: CSS - How to avoid squeezing of column when using percentage

    Posted 14 years 5 days ago
    • Hi Peter,

      OK - although it sounds a bit unusual try the code as...
      .pagination { padding-left: 0;}
      ...and see what happens.

    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: CSS - How to avoid squeezing of column when using percentage

    Posted 14 years 5 days ago
    • add this and clear your cache
      td#maincol ul.pagination li { padding-left: 0px; }
      :cheesy:

Time to create page: 0.069 seconds