Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please may someone help me please.
I just created one of my first sites since i started my Html css project. but now i discovered that the content of the home page is being too long. so i wanted to make it in such a way that i have to click on Read More or still better anything to expand the remaining text that hides to make the page shorter.

I have had other codes in research but my problem is that i want to hide and expand a particular area not the whole page.
Posted
Comments
Richard C Bishop 27-Feb-13 11:52am    
You cannot achieve this using just HTML and CSS. This could be done using AJAX, jQuery, and other means or using ASP.Net.
vbmike 27-Feb-13 11:52am    
go to the jquery site and look for the toggle command for starts. there are good examples there.

using jquery is probably going to be the easiest way. If not, you can always make a scrollable div that hides content?

Jquery plugin[^]

stack overflow question where the plugin link came from[^]

A good implementation manually[^]
 
Share this answer
 
Comments
RdNard 27-Feb-13 12:29pm    
thanks for the answers, i got at least one thing from that, though i am still in trouble. i have not really gotten fully into Js and Jquery issue, so i find it even difficult to bring the code together. i dont know where to put the codes as given separately. that is, i dont know how to call it to work in my html.
thanks for the answers, i got at least one thing from that, though i am still in trouble. i have not really gotten fully into Js and Jquery issue, so i find it even difficult to bring the code together. i dont know where to put the codes as given separately. that is, i dont know how to call it to work in my html.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900