Html Style sheet help

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

    Html Style sheet help

    Is there any way to have two style sheets applied to my web page
    without using frames? ex. having them apply to individual frames
    within a menu?

    Thanks
  • Harlan Messinger

    #2
    Re: Html Style sheet help

    nikelz@aol.com (Ryan) wrote:
    [color=blue]
    >Is there any way to have two style sheets applied to my web page
    >without using frames? ex. having them apply to individual frames
    >within a menu?[/color]

    You're being unclear. Are you asking about "without using frames" or
    are you asking about "apply[ing] to individual frames"? What does
    "frames within a menu" mean?

    You can apply as many style sheets to a page as you want, with
    multiple <LINK> tags, and frames have nothing to do with it.

    --
    Harlan Messinger
    Remove the first dot from my e-mail address.
    Veuillez ôter le premier point de mon adresse de courriel.

    Comment

    • Neal

      #3
      Re: Html Style sheet help

      On Mon, 19 Jan 2004 19:43:47 -0500, Harlan Messinger
      <hmessinger.rem ovethis@comcast .net> wrote:
      [color=blue]
      > nikelz@aol.com (Ryan) wrote:
      >[color=green]
      >> Is there any way to have two style sheets applied to my web page
      >> without using frames? ex. having them apply to individual frames
      >> within a menu?[/color]
      >
      > You're being unclear. Are you asking about "without using frames" or
      > are you asking about "apply[ing] to individual frames"? What does
      > "frames within a menu" mean?
      >
      > You can apply as many style sheets to a page as you want, with
      > multiple <LINK> tags, and frames have nothing to do with it.
      >[/color]

      Or does he mean having separate style for a navigation area, a content
      area, a sidebar area? That's a big yes.

      Ryan, let us know what effect you're after. Detail.

      Comment

      • Ryan

        #4
        Re: Html Style sheet help

        Sorry typo....
        [color=blue][color=green][color=darkred]
        > >> Is there any way to have two style sheets applied to my web page
        > >> without using frames? ex. having them apply to individual cells
        > >> within a table?[/color][/color][/color]

        Thanks a lot

        Comment

        • Neal

          #5
          Re: Html Style sheet help

          On 20 Jan 2004 06:18:15 -0800, Ryan <nikelz@aol.com > wrote:
          [color=blue]
          > Sorry typo....
          >[color=green][color=darkred]
          >> >> Is there any way to have two style sheets applied to my web page
          >> >> without using frames? ex. having them apply to individual cells
          >> >> within a table?[/color][/color]
          >
          > Thanks a lot[/color]


          Ok.

          If you want to have a region of your page have totally different styling
          from another, use ids or classes.

          Example. I have a content area and a navigation list. I want the nav list
          to stand out, so different colors, different font, everything. In my HTML
          I could add <div id="nav"> and </div> around my navigation stuff and style
          it like:

          #nav {
          color: olive;
          background-color: yellow;
          font-family: 'Broken Hand', Shaky, cursive;
          }

          and there you go.

          If you are doing a table (and I hope your table is really a tabular table)
          you could assign an id to a single <td> but here I'd use a class, so you
          can repeat the style in other cells.

          <table>
          <tr><th></th><th>John</th><th>Mary</th><th>Joan</th><tr>
          <tr><th>Gende r</th><td class="male">Ma le</td><td
          class="female"> Female</td><td class="female"> Female</td></tr>
          <tr><th>Age</th><td>42</td><td>24</td><td>86</td></tr>
          </table>

          and the style might be

          ..male {
          color: blue;
          }

          ..female {
          color: #f7b;
          }

          Here, I could have styled the <th> elements separately from the <td>
          elements too.

          I hope that answers your question.

          Comment

          • Ryan

            #6
            Re: Html Style sheet help

            Neal <neal413@spamrc n.com> wrote in message news:<opr137u01 sdvhyks@news.rc n.com>...[color=blue]
            > On 20 Jan 2004 06:18:15 -0800, Ryan <nikelz@aol.com > wrote:
            >[color=green]
            > > Sorry typo....
            > >[color=darkred]
            > >> >> Is there any way to have two style sheets applied to my web page
            > >> >> without using frames? ex. having them apply to individual cells
            > >> >> within a table?[/color]
            > >
            > > Thanks a lot[/color]
            >
            >
            > Ok.
            >
            > If you want to have a region of your page have totally different styling
            > from another, use ids or classes.
            >
            > Example. I have a content area and a navigation list. I want the nav list
            > to stand out, so different colors, different font, everything. In my HTML
            > I could add <div id="nav"> and </div> around my navigation stuff and style
            > it like:
            >
            > #nav {
            > color: olive;
            > background-color: yellow;
            > font-family: 'Broken Hand', Shaky, cursive;
            > }
            >
            > and there you go.
            >
            > If you are doing a table (and I hope your table is really a tabular table)
            > you could assign an id to a single <td> but here I'd use a class, so you
            > can repeat the style in other cells.
            >
            > <table>
            > <tr><th></th><th>John</th><th>Mary</th><th>Joan</th><tr>
            > <tr><th>Gende r</th><td class="male">Ma le</td><td
            > class="female"> Female</td><td class="female"> Female</td></tr>
            > <tr><th>Age</th><td>42</td><td>24</td><td>86</td></tr>
            > </table>
            >
            > and the style might be
            >
            > .male {
            > color: blue;
            > }
            >
            > .female {
            > color: #f7b;
            > }
            >
            > Here, I could have styled the <th> elements separately from the <td>
            > elements too.
            >
            > I hope that answers your question.[/color]

            You are SOOO awesome, I have been trying to figure that one out for
            ever.... I knew there had to be a way to do it. Thank you so much
            !!!!

            Comment

            • Neal

              #7
              Re: Html Style sheet help

              On 21 Jan 2004 21:45:58 -0800, Ryan <nikelz@aol.com > wrote:

              [color=blue]
              > You are SOOO awesome, I have been trying to figure that one out for
              > ever.... I knew there had to be a way to do it. Thank you so much
              > !!!![/color]


              Head... getting... bigger...

              Seriously, check out http://www.htmldog.com - you'll explode with glee.

              Comment

              Working...