Advertisement:

Author Topic: Categories is NOT lining correctly in the homepage  (Read 1544 times)

exichlo

  • Jr. Member
  • **
  • Posts: 54
Categories is NOT lining correctly in the homepage
« on: February 15, 2014, 06:36:39 pm »
Does anyone know how to fix this issue?

My site is http://beta.lemmikkiporssi.fi

I wish to have it corrected like in the image attached.
« Last Edit: February 15, 2014, 09:02:46 pm by exichlo »

exichlo

  • Jr. Member
  • **
  • Posts: 54
Re: Categories is NOT lining correctly in the homepage
« Reply #1 on: February 17, 2014, 10:17:23 pm »
I have searched the forum looking for answer to this and found out that this is some sort of coding issue. Users have been complaining about this "bug" in the bender theme. I believe that this will not be fixed anytime soon so...

Can anyone show me how/where can I manually input the codes for the categories in the homepage?

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: Categories is NOT lining correctly in the homepage
« Reply #2 on: February 17, 2014, 10:34:08 pm »
hi,

take a look at the minimalist theme, in main.php there's the code which creates the categories almost similar to those in Bender. You can find the free theme here: http://osclass-demo.classibase.com/minimalist/?clb_theme_preset=light


Regards,
Eric

aide2001

  • Guest
Re: Categories is NOT lining correctly in the homepage
« Reply #3 on: February 17, 2014, 10:52:18 pm »
this is a css issue.
goto your red theme css and change this bit
.r-list {
    display: none;
    margin: 0px 40px 0 0;
    padding: 0;
    list-style: none;
}
to

.r-list {
    display: none;
    margin: 0px 30px 0 0;
    padding: 0;
    list-style: none;
}

and this bit
.r-list li {
    float: left;
    width: 30%;
    margin-right: 3%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

ul.r-list li h1 {
    margin: 25px 0 10px 0;
    padding: 0;
    font-size: 1em;
}
to this
.r-list li {
    float: left;
    width: 30%;
    margin-right: 1%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.r-list li li {
    float: none;
    width: 100%}
.r-list>li:nth-child(4n), .clear {
    clear: both;
}
ul.r-list li h1 {
    margin: 15px 0 10px 0;
    padding: 0;
    font-size: 1em;
}
and see how you get on ;-)

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: Categories is NOT lining correctly in the homepage
« Reply #4 on: February 17, 2014, 11:08:32 pm »
Or it is a simple CSS issue ;D

aide2001

  • Guest
Re: Categories is NOT lining correctly in the homepage
« Reply #5 on: February 18, 2014, 11:41:48 am »
yes my friend it is a css issue, see above

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: Categories is NOT lining correctly in the homepage
« Reply #6 on: February 18, 2014, 11:45:35 am »
Reason for my remark was your reply aide2001  ;)
I was thrown off guard by 'bug' and 'codes'

aide2001

  • Guest
Re: Categories is NOT lining correctly in the homepage
« Reply #7 on: February 18, 2014, 11:47:03 am »
Cool, i have upto 10 tabs open at a time, and sometimes, the post I do gets mixed up with the post I've already done!
Too much multi-tasking I guess

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: Categories is NOT lining correctly in the homepage
« Reply #8 on: February 18, 2014, 11:50:02 am »
No complaints here, you keep those 10 tabs open please :)

exichlo

  • Jr. Member
  • **
  • Posts: 54
Re: Categories is NOT lining correctly in the homepage
« Reply #9 on: February 18, 2014, 07:59:18 pm »
You guys are hilarious!

I couldn't get it working with the code above. But by getting rid of this code line works for me.

Code: [Select]
.r-list>li:nth-child(4n), .clear {
clear: both;

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: Categories is NOT lining correctly in the homepage
« Reply #10 on: February 18, 2014, 09:32:55 pm »
Hehe if it works it works!

+++ for aide2001 and two more for yourself ;)

aide2001

  • Guest
Re: Categories is NOT lining correctly in the homepage
« Reply #11 on: February 19, 2014, 12:06:46 am »
cool about sorting it, i think that must be down to some sort of setting that you can do in the main.php file on how many sections you can have, but if it works dont break it
And cheers @exichlo dont mean to be hilarious, it must be the high i get when helping people