Author |
Topic  |
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 13 June 2004 : 21:48:52
|
np's Alfred, I just didn't want to throw you a whole heap of URLs and hope you got the answer you wanted. Different approach, same result - it's all good  |
 |
|
Alfred
Senior Member
   
USA
1527 Posts |
Posted - 13 June 2004 : 22:56:14
|
Yeah, I know what you mean, and can appreciate. Too often I hope for a simple tip or correction when I need a fix now, and instead get wellmeaning suggestions of what to search or study. But this CSS stuff was on my back burner for a long while as something desirable to master, and I want to learn in general how "to fish" with it. |
Alfred The Battle Group CREDO
|
 |
|
Alfred
Senior Member
   
USA
1527 Posts |
Posted - 13 June 2004 : 23:37:39
|
After reading a bit more about it I realize that I had a totally wrong image of how they work. I had the naive view that one needs to write a regular htm page and save it as an external style sheet. And by linking to the external style sheet one would reproduce it, kind of like it works with templates. I guess what I was looking for IS a template. But that would not offer the code-saving qualities I had imagined, since a template repeats the code in every file. Isn't that exactly what we can do in ASP with the "include file" feature? Seems to me there should be something like it in htm as well - is there? Am I looking for the invention of the wheel? |
Alfred The Battle Group CREDO
|
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 13 June 2004 : 23:51:51
|
quote: Isn't that exactly what we can do in ASP with the "include file" feature?
Not really, the SSI (Server Side Include, or "include file" as you say) is for including the same code in numerous pages
quote: Seems to me there should be something like it in htm as well - is there?
well, the include statement is really HTML and not ASP, but as long as you're not thinking about CSS, it is the same thing.
What a CSS actually DOES do, is help to redefine HTML tags (among other things). So instead of having to do a font = red tag all the time, you can define that your normal text is red. You can also define classes and refer to those for longer formatting against any HTML tag you might want to change.
|
 |
|
Alfred
Senior Member
   
USA
1527 Posts |
Posted - 14 June 2004 : 00:09:09
|
quote: Not really, the SSI (Server Side Include, or "include file" as you say) is for including the same code in numerous pages
Well, I guess that is what I really was looking for - to be able to have the same basic page features in all the pages I chose to, without repeating the code each time. BUt I remember that it only works in ASP files. Which is no problem, really, is it? I just managed a couple of test files, pretending to be .asp, but really containing mostly htm only, and the SSI stuff works just pefect in it. So, did I reinvent the wheel now?  |
Alfred The Battle Group CREDO
|
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 14 June 2004 : 00:18:51
|
Not quite  |
 |
|
Alfred
Senior Member
   
USA
1527 Posts |
Posted - 14 June 2004 : 00:25:28
|
quote: Originally posted by laser
Not quite 
That probably means mine isn't as round, right? |
Alfred The Battle Group CREDO
|
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 21 June 2004 : 06:04:54
|
Alfred, if you still want to look into CSS (which I can highly recommend as you'll be able to make changes to part of the site, like font sizes, colors etc. by editing only one file) you should look at TopStyle ( http://www.bradsoft.com/topstyle/index.asp ). It's the best CSS editor I've seen, and quite easy to get the hang of to.
Also, look at the different websites you frequent to see if they use CSS files. Download them, open them and see what they've done. It'll be way too much at first, but it'll give a good impression of what can be done with CSS. |
 |
|
Topic  |
|