What you are suggesting is that the page would have some logic for determining what to display. Client side logic for web pages is done primarily via javascript, this is what you want for something you described. You have the right idea, you might want to look into something like jQuery, it's very newbie friendly and it will allow you to do something simple like:
Code:
$('#button').click(function(){
$('#result').load('path/to/txt');
});
Which should be pretty self explanatory.
People in this thread aren't even using the terms AJAX and CSS properly. CSS is a styling language, unless you're worried about making it look pretty you do not need to concern yourself with 'CSS'. AJAX is a pattern, it's not even a language, it's just a web development patterns that's risen in popularity involving making asynchronous (to the rest of the javascript execution) http requests.
That having been said, javascript is pretty complex and writing good javascript takes lots of skill. The good news, however, is that anybody can hack together javascript that will likely work and if you have trouble just post and if I happen to stumble into Tech again I'll help you debug. It's great that you're showing initiative in doing something you are completely unfamiliar with but you are so unfamiliar you might want to start with something simpler and learn slowly instead of trying to hack together something for this assignment which it isn't required for.