-
Repeating item in a sidebar
I am creating my first “from scratch” website, although I have edited and used html on several others. I have one elementary problem.
This has been my process. I used a template for a home page and it is called index.html. So this file is what I call up to view my current linked pages. I worked hard to make this page look good, and it has a logo banner on top (with horizontal menu) and two columns underneath: a “sidebar” on the left and wider
“content” on the right, and this is finally followed by a footer at the same width as the logo that simply copyrights the client and gives credit to the template author. Now I’ve created a dozen further pages
and they look great and all is well. However, I built each of these subsequent pages by copying the original index.html page. So of course, all the text for the logo, sidebar and footer appear as I first wrote it.Suppose I want to change an item on the lefthand sidebar occasionally so it appears the same on every page and, for example, announces current events? As I see it now, I would have to go to each page to change the text because there is no place in the css for text. The css is for spacing and positioning and naming. Is there a way to create a spot in the css so my client can access it and make one change that affects text and would apply throughout all the pages?
There must be a common solution to this, maybe even many ways to approach it. (The site is not launched yet, so I can’t point you to it.) Is this a css issue or coding for the index.html file? Can I just stick a paragraph in the css with text in it? Is there some other code that I don’t know about yet? Would I need some javascript?
I am hoping I can get pointed in a good direction instead of taking the time to re-invent the wheel. I’ve been reading articles and haven’t found anything that answers this yet. I appreciate any ideas!
Susan