Join 137,369 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,861 people online right now. Registration is fast and FREE... Join Now!
Thanks but I don't wish to put it on every page, that's the point.
Or, wait... you mean I just put the div on the pages, and then keep the text in the common css file?
That sounds like a smart solution. Is that what you mean?
Make a master page, this is what get loaded. This will have all you sections, which you will create with frames. Make sure to name them. Then have your pages load into those areas. And specify which area each link will load into.
Then you won't have to have the code on every page. The only place it'll be evident will the links themselves.
Did you understand that?
This post has been edited by MacAnimeGirl: 8 Oct, 2008 - 09:18 AM
You could also use a server side language like PHP. This would allow you to write a function which returns the menu or ad code and insert it with a call to that function and the best part is, no frames.
You put the text inside div tags in your html. then you use the CSS to position and style that text where ever and however you like.
I understand what you're saying, but I don't think you're understanding the question.
QUOTE
I would like each page on my site to have the same content ... import a piece of html from a separate file
It isn't about making it look the same, it's about having the same content on multiple pages without duplicating code, I believe. Like having a menu, header and footer content created from an include instead of copying and pasting.
CSS is for styling code, not for inserting it.
This post has been edited by William_Wilson: 8 Oct, 2008 - 10:19 AM
You put the text inside div tags in your html. then you use the CSS to position and style that text where ever and however you like.
I understand what you're saying, but I don't think you're understanding the question.
QUOTE
I would like each page on my site to have the same content ... import a piece of html from a separate file
It isn't about making it look the same, it's about having the same content on multiple pages without duplicating code, I believe. Like having a menu, header and footer content created from an include instead of copying and pasting.
CSS is for styling code, not for inserting it.
I apologize William, that was not directed at you.
I should have quoted the post i was responding too.
If you're using classic ASP just use an Include File, then all the text for your navigation resides in a single file. If you're using ASP.NET use a Master Page
i would just use a java frame. its faster for slower internet connections. this way they dont have to load the same info twice. its hard to do this using just notepad i would use dreamweaver or a program like it. hope it helps