Welcome to Gaia! ::

Reply CSS/Graphic/Profile help/resources (With tutorials, FAQs and general tips and hints)
Comment Section question

Quick Reply

Enter both words below, separated by a space:

Can't read the text? Click here

Submit

Alucard highwind

PostPosted: Mon Dec 25, 2006 12:42 pm


Is there way to make the comment section to only show 5 comments instead of 10 comments?
PostPosted: Mon Dec 25, 2006 1:22 pm


There are tricks you can do to hide the extra comments with CSS, but as far as actually changing that, no, you can't.

If you would like to hide the number of comments, your best option is to set a height for each comment, having them scroll if the comments get too long, and then hiding the extra comments.


    #comments .caption, #comments .caption2 {height: __px; overflow: auto; }
    #comments dl {height: __px; overflow: hidden; }


Set your height on the comments to what you'd like them to be. If you don't want to have the avatars cut off, then set the height to 150px or higher. Then, on #comments dl you'd want to set the height so that it will show only the five comments.

You may have to play around with the numbers until you're happy, but that would be the best way to do it.

Ava R.
Crew

3,500 Points
  • Gaian 50
  • Treasure Hunter 100
  • Hygienic 200
Reply
CSS/Graphic/Profile help/resources (With tutorials, FAQs and general tips and hints)

 
Manage Your Items
Other Stuff
Get GCash
Offers
Get Items
More Items
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games
Mini-Games
Play with GCash
Play with Platinum