Simple way to avoid repetative work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • themadjester
    New Member
    • Mar 2008
    • 37

    Simple way to avoid repetative work

    Simple newb question here.

    Ok, so I am making a simple site. I wrote some HTML and made a CSS for it.

    Now, I know the point of the style sheets is to save me work re-doing all of the styles for each page.

    Now heres my newb problem. If I change the HTML for the page I am starting with (lets say index) how do I keep myself from having to update every page?

    Some simple suggestions for me to look into would be awesome. I can look it up.

    I have a few ideas and I am sure I could figure something out but I doubt it would be the best way.

    Feel free to include the following in your responses: "LAWL n00b","HTML PWNS j0" etc al.
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    When you change HTML in it, what would you change?

    If you are converting a table layout to div, or some major change, then of course you would need to do more work.

    But if your layout is already done, then it won't be a big problem if you would change HTML.

    Define styles for classes or simply tags, which would be used in many pages.

    eg. for "a" tag, once you define its style, you won't need to look back to it before making any HTML change.

    I think you are defining style by ids and some of your elements are not same throughout the site. If that's the case, for few elements which are not repeated in other pages of the site, you can make a separate CSS for that particular page only.

    Comment

    • themadjester
      New Member
      • Mar 2008
      • 37

      #3
      Mostly I meant something like a link side bar. The links are all small divs in one large div going up the side.

      If add/remove a link... it could be alot of work to change them all!

      I somewhat remember that one can have two or more different code segments load in one window (like some kind of partition). should I make the links for example their own page?

      Am I right that I can make a page display in a div like this then I could make the parts that are common among all the pages actually pages in themselves contained in div in a main page?
      Last edited by themadjester; May 29 '08, 09:42 AM. Reason: question

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        you may use frames/iframes for such purposes ... they have a src attrib and so may load a html-page as their content :)

        kind regards

        Comment

        • themadjester
          New Member
          • Mar 2008
          • 37

          #5
          Thanks! I will look into that :)

          Comment

          Working...