Cubic, change columns using CSS
-
Hi
I need help with CSS on my Cubic theme
I want to have 4 columns instead of 3 (which is the original number)
Anyone out there who could help with this huge problem please?My Site: http://ansatt.ringerike.kommune.no/
-
Ditto. That would be absolutely great to find out. 4 columns on a 1900 wide screen would be much better.
-
Pfff.. AS AN IT PRO I FOUND OUT MYSELF!!!
Thanks alot Forum….
Let me tell you how I found out.
/*————————————————————–
7.3 x <= 1024px
————————————————————–*/
@media screen and (min-width: 1024px) {
/* Content */
.archive .hentry,
.blog .hentry,
.search-results .hentry {
padding-bottom: 33.3333%;
width: 33.3333%;
}
.archive .hentry:nth-of-type(2n+3),
.blog .hentry:nth-of-type(2n+3),
.search-results .hentry:nth-of-type(2n+3) {
clear: none;
}
.archive .hentry:nth-of-type(3n+4),
.blog .hentry:nth-of-type(3n+4),
.search-results .hentry:nth-of-type(3n+4) {
clear: left;
}
}This is copied right out of the “Editor” or the original code, whatever you call it.
Mess a little about this.
1. Change “Clear: left” to “None”
2. Change padding-bottom and width to a smaller scale
3. and some more stuff.This is my result and I got 6×2 columns
/*————————————————————–
7.3 x <= 1024px
————————————————————–*/
@media screen and (min-width: 1024px) {
/* Content */
.archive .hentry,
.blog .hentry,
.search-results .hentry {
padding-bottom: 15%;
width: 15%;
padding-right: 16.665%;}
.archive .hentry:nth-of-type(2n+0),
.blog .hentry:nth-of-type(2n+0),
.search-results .hentry:nth-of-type(2n+0) {
clear: none;
}
.archive .hentry:nth-of-type(4n+0),
.blog .hentry:nth-of-type(4n+0),
.search-results .hentry:nth-of-type(4n+0) {
clear: none;
}
} -
- The topic ‘Cubic, change columns using CSS’ is closed to new replies.