Ok, I changed the style of the website I was working on, and it's like THIS now. The sidebar, which is the "News" section, I don't want to edit 6 different pages, save them and transfer them to the server. (this used to be a "links" area, but I have links up top in the tabs). Can I add it to the css stylesheet so when I change it on the stylesheet, it changes it automatically on all the pages?
Here is my code:
/* Sidebar */
#sidebar {
width: 190px;
float: right;
clear: none;
margin-top: 15px;
}
Ok, I changed the style of the website I was working on, and it's like THIS now. The sidebar, which is the "News" section, I don't want to edit 6 different pages, save them and transfer them to the server. (this used to be a "links" area, but I have links up top in the tabs). Can I add it to the css stylesheet so when I change it on the stylesheet, it changes it automatically on all the pages?
You can style the news section in your style sheet so you don't have to edit the style in 6 different pages but the content can't be included via CSS. You can change your pages to use SSI or PHP and then use includes so you're only editing one page of content.
I have my stylesheet already, and that's an excerpt from it. Is there something that I can add into that excerpt, a way to change the different quips from the "NEWS" section?
In each page for each section (i.e. index, schedule, etc) There's a list for the quips from the NEWS section.
Quip 1
Quip 2
Quip 3
Can I add that little snippet into the stylesheet?
Ok, I changed the style of the website I was working on, and it's like THIS now. The sidebar, which is the "News" section, I don't want to edit 6 different pages, save them and transfer them to the server. (this used to be a "links" area, but I have links up top in the tabs). Can I add it to the css stylesheet so when I change it on the stylesheet, it changes it automatically on all the pages?
You can style the news section in your style sheet so you don't have to edit the style in 6 different pages but the content can't be included via CSS. You can change your pages to use SSI or PHP and then use includes so you're only editing one page of content.
Ah dernit. I don't know squat about PHP. Guess I'll just be changing it manually. Thanks, though.
It's simple. You just create a page named for example news.htm. In that you would have your snippet...
Quip 1
Quip 2
Quip 3
On the pages you want the snippet to appear you would put this code where you wanted it to appear
If the server is already parsing the files you're done. Wherever you include that code the news.htm file will be inserted into the page. If the server isn't parsing the files you can add the following line to your .htaccess file...
You could rename the page you want the snippet to appear on with a .shtml extension. That's the standard extension to let the server know you want it parsed. If that doesn't work then SSI isn't enabled and you'd have to have rain enable it for you in the server configuration.
You could rename the page you want the snippet to appear on with a .shtml extension. That's the standard extension to let the server know you want it parsed. If that doesn't work then SSI isn't enabled and you'd have to have rain enable it for you in the server configuration.