CSS beginner requests advice

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

    #16
    Re: background-color:transpare nt (Re: CSS beginner requests advice)

    Stan Brown wrote:[color=blue]
    >
    > I want links to be the same color in different regions of the
    > pages, but the different regions have different background colors.
    > So I have a:link, a:visited, a:hover, a:active, and a[name]
    > selectors with color and background, then the same five selectors
    > as descendants of .maintitle, then the same five as descendants of
    > h1, etc etc etc. I could sweep all that away and just have the five
    > plain selectors for a, if "transparen t" were safe, but I think I
    > read somwehere that it's not.[/color]

    Correct, it is not safe. Using transparent can lead to the same
    problems as not setting a background color at all.

    --
    Brian (follow directions in my address to email me)


    Comment

    • Chris Morris

      #17
      Re: background-color:transpare nt (Re: CSS beginner requests advice)

      Neal <neal413@spamrc n.com> writes:[color=blue]
      > On Thu, 29 Jan 2004 16:51:13 +0000, Michael Rozdoba[color=green]
      > > Chris Morris wrote:[color=darkred]
      > >> Netscape 4 interprets [transparent] as #0a000a and 'inherit' as
      > >> #00e000 if you count that as a problem. I laughed/cried a lot
      > >> when I worked out why.[/color]
      > >
      > > It wouldn't be parsing the first seven characters, ignoring/zeroing
      > > any non-hex digits, would it? I wonder if anyone's tried to find a
      > > word which generates an appropriate colour?[/color][/color]

      Well, I thought so. However...
      [color=blue]
      > If your theory is true, in Netscape 'color: souffle;' would be awfully
      > green. I don't think I'm ordering that at the Netscape Cafe...[/color]

      Well, I tested this


      Souffle appears to be a shade of cyan, closer to souffff, I think.
      Obviously this isn't solely what's going on...

      --
      Chris

      Comment

      • Steve Pugh

        #18
        Re: background-color:transpare nt (Re: CSS beginner requests advice)

        Chris Morris <c.i.morris@dur ham.ac.uk> wrote:[color=blue]
        >Neal <neal413@spamrc n.com> writes:[/color]
        [color=blue][color=green]
        >> If your theory is true, in Netscape 'color: souffle;' would be awfully
        >> green. I don't think I'm ordering that at the Netscape Cafe...[/color]
        >
        >Well, I tested this
        >http://www.dur.ac.uk/c.i.morris/ns4.html
        >
        >Souffle appears to be a shade of cyan, closer to souffff, I think.[/color]

        Comes out as #00FFE0 (yes E0 not 0E, so cyan like Chris reports) for
        me. Odd that.

        Steve

        --
        "My theories appal you, my heresies outrage you,
        I never answer letters and you don't like my tie." - The Doctor

        Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>

        Comment

        • Brian

          #19
          Re: background-color:transpare nt (Re: CSS beginner requests advice)

          Chris Morris wrote:[color=blue]
          >
          > Netscape 4 interprets it as #0a000a and 'inherit' as #00e000 if you
          > count that as a problem. I laughed/cried a lot when I worked out
          > why.[/color]

          I keep trying to work this out, but cannot (despite reading followups
          to the post I quoted here). Care to share?

          --
          Brian (follow directions in my address to email me)


          Comment

          • Chris Morris

            #20
            Re: background-color:transpare nt (Re: CSS beginner requests advice)

            Brian <usenet3@juliet remblay.com.inv alid-remove-this-part> writes:[color=blue]
            > Chris Morris wrote:[color=green]
            > > Netscape 4 interprets it as #0a000a and 'inherit' as #00e000 if you
            > > count that as a problem. I laughed/cried a lot when I worked out
            > > why.[/color]
            >
            > I keep trying to work this out, but cannot (despite reading followups
            > to the post I quoted here). Care to share?[/color]

            The rule that works for these (though acts unexpectedly for souffle,
            so perhaps it's not the whole story) is

            inherit =:
            i Well, it must be a hash, colours start with hashes
            n Not a hex digit, call it 0
            h Not a hex digit, call it 0
            e E
            r Call it 0
            i Call it 0
            t Call it 0
            inherit = #00e000

            transparent
            #0a000a
            (and ignore the rest, colour codes are seven characters)

            --
            Chris

            Comment

            • Brian

              #21
              Re: background-color:transpare nt (Re: CSS beginner requests advice)

              Chris Morris wrote:[color=blue]
              >[color=green][color=darkred]
              >>> Netscape 4 interprets it as #0a000a and 'inherit' as #00e000 if
              >>> you count that as a problem. I laughed/cried a lot when I
              >>> worked out why.[/color][/color][/color]

              I laughed so hard, I nearly cried! ;-)
              [color=blue]
              > inherit =:
              > i Well, it must be a hash, colours start with hashes
              > n Not a hex digit, call it 0
              > h Not a hex digit, call it 0
              > e E
              > r Call it 0
              > i Call it 0
              > t Call it 0
              > inherit = #00e000
              >
              > transparent
              > #0a000a
              > (and ignore the rest, colour codes are seven characters)[/color]

              rotfl. Wow, I almost pity the clown who wrote that code!

              --
              Brian (follow directions in my address to email me)


              Comment

              Working...