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.
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.
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 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;
}
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