Same CSS style in php segments.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Garry Jones

    Same CSS style in php segments.

    I have several seperate individual php segment which make up my website. To
    check what each segment actuallt displays I am linking my css style to each
    and every segment in a wysiwyg program.

    This results in a website with the same css file being called about 20
    times. Of course I can delete all but one of these "link css rows" and then
    add them again as and when a segment needs to be edited.

    This seems to be a round about way of doing things even if it gets the job
    done. Is there a more effective way?

    Garry Jones
    Sweden


  • Rik

    #2
    Re: Same CSS style in php segments.

    Garry Jones wrote:
    I have several seperate individual php segment which make up my
    website. To check what each segment actuallt displays I am linking my
    css style to each and every segment in a wysiwyg program.
    >
    This results in a website with the same css file being called about 20
    times. Of course I can delete all but one of these "link css rows"
    and then add them again as and when a segment needs to be edited.
    >
    This seems to be a round about way of doing things even if it gets
    the job done. Is there a more effective way?
    In a normal wysiwys program you can tell it which stylesheet to use, without
    linking it in your actual segments. What program do you use?

    Grtz,
    --
    Rik Wasmus


    Comment

    • boclair

      #3
      Re: Same CSS style in php segments.

      Garry Jones wrote:
      I have several seperate individual php segment which make up my website. To
      check what each segment actuallt displays I am linking my css style to each
      and every segment in a wysiwyg program.
      >
      This results in a website with the same css file being called about 20
      times. Of course I can delete all but one of these "link css rows" and then
      add them again as and when a segment needs to be edited.
      >
      This seems to be a round about way of doing things even if it gets the job
      done. Is there a more effective way?


      I am unsure what you mean by php segments making up your web site, I am
      assuming you mean web pages; these pages need a head; however included
      files must not include a head, (except a file included in a document for
      this purpose).

      The <linkattribut e must only be placed in the <head>..</headof the
      document.

      Any Editor worth its salt will only enable link style sheets to
      documents that have a head.

      To preview the contents of an included file, it must be seen as part of
      a pre-processed document.

      If I have misunderstood, please ignore.

      Louise

      Comment

      Working...