Jump to content

Text content loading / resizing


kuran

Recommended Posts

Hi everyone,Is there a way to have a page with simple text in it, where the text would show the next sentence when clicked, without having to make a seperate .html for each line?Also, but this might be CSS related.. is there a posibility to have text on a page always stretch/resize to the max width of the user's browser window?I'd like to thank everyone for their previous help in my questions.

Link to comment
Share on other sites

yep..using hidden divs and a bit of javascript.this has been touched on before in this forum. Do a search for "hidden divs"and for your other question, use percentages to make the page stretch to the users browser window size. although, thats easier said than done, as it has to look good and not mess up the layout.:)

Link to comment
Share on other sites

Is there a way to have a page with simple text in it, where the text would show the next sentence when clicked, without having to make a seperate .html for each line?
<p onclick="myspan.style.display='inline'">Click me to see more text <span id="myspan" style="display:none;color:red">I am more text<span></p>

Also, but this might be CSS related.. is there a posibility to have text on a page always stretch/resize to the max width of the user's browser window?
This is the default setting for browsers, is it not :) something like width:100%
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...