SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Adding articles to all my pages.

  1. #1
    SitePoint Member
    Join Date
    Sep 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Adding articles to all my pages.

    Hi, Guy(s)! Got a question about adding something to my website via CSS.
    I have a left pane with a lot of articles...when I add an article or two, I have to make the change on about 70 pages. That's why I started studying the CSS...I was told that I could make the addition to one page and it would transfer that change to all the pages...is this true?

    Can I type all the articles onto the stylesheet1.css, then when I add one, just add it to the style sheet and save it, then upload it to the server? Will this make the addition on all the other pages? Please tell me I can and that it will!

  2. #2
    SitePoint Wizard silver trophybronze trophy
    Join Date
    Jul 2003
    Posts
    6,849
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello

    CSS is for styling HTML. It will not add content to your site, though it will style all the content of your site.

    For example you could control all the content between <p>This is a paragraph</p> tags with this:
    Code:
    p {
    color: #ff0000;
    font-weight: bold;
    }
    Then all paragraph text would be red and bold. On every page where you linked to an external stylesheet with this in the <head></head> section:
    Code:
    <link rel="stylesheet" type="text/css" src="styles/stylesheet.css" media="screen" />
    There is a bit more to CSS than just this but that is the brief intro.

    The good news is server side includes can help do what it sounds like you are after.

    Hope it helps.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •