alt attribute with css

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Québec

    alt attribute with css

    Hi,

    How can we mofdify the alt attribute with css?

    Jean Pierre


  • brucie

    #2
    Re: alt attribute with css

    In comp.infosystem s.www.authoring.stylesheets Québec said:
    [color=blue]
    > Hi,[/color]

    hello

    What is the accepted way to share a message across multiple newsgroups?



    --


    v o i c e s

    Comment

    • Johannes Koch

      #3
      Re: alt attribute with css

      Québec wrote:[color=blue]
      > How can we mofdify the alt attribute with css?[/color]

      alt attributes are content, not presentation.
      --
      Johannes Koch
      In te domine speravi; non confundar in aeternum.
      (Te Deum, 4th cent.)

      Comment

      • Harlan Messinger

        #4
        Re: alt attribute with css


        "Québec" <Once@WasEno.ug h> wrote in message
        news:HJ8ed.2416 9$J61.753005@wa gner.videotron. net...[color=blue]
        > Hi,
        >
        > How can we mofdify the alt attribute with css?[/color]

        CSS doesn't modify *any* HTML.

        Comment

        • Neal

          #5
          Re: alt attribute with css

          On Fri, 22 Oct 2004 10:22:40 -0400, Québec <Once@WasEno.ug h> wrote:
          [color=blue]
          > How can we mofdify the alt attribute with css?[/color]

          Try this.

          img {font-style; italic;}

          Then view the page without images.

          Comment

          • Québec

            #6
            Re: alt attribute with css

            a)I found back the group in my notes after writing to a first one.

            b)I dont argue. I know it is possible

            c)I want to modify the text, not the alt itself.

            d)img {font-style; italic;} or img {font-style: italic;} dont work.

            It was something related to that kind of css.
            IMG { content: attr(alt) }

            Maybe the alt was modified like <img .... alt [anothercolor]=" " >
            or ????

            Jean Pierre


            Comment

            • Lauri Raittila

              #7
              Re: alt attribute with css

              Québec wrote;[color=blue]
              > a)I found back the group in my notes after writing to a first one.[/color]

              Well, you should have said it.
              [color=blue]
              > b)I dont argue. I know it is possible[/color]

              Well, using some quite strange definition of possible, maybe...
              [color=blue]
              > c)I want to modify the text, not the alt itself.[/color]

              Why. That would be stupid, most times.
              [color=blue]
              > d)img {font-style; italic;} or img {font-style: italic;} dont work.[/color]

              Depends on browser.
              [color=blue]
              > It was something related to that kind of css.
              > IMG { content: attr(alt) }[/color]

              CSS3. Works on Opera 7. IE. Replaces image with alt text, so not
              doing what you want


              --
              Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>

              Comment

              • David Dorward

                #8
                Re: alt attribute with css

                Québec wrote:
                [color=blue]
                > c)I want to modify the text, not the alt itself.[/color]

                CSS is a _style_ language.

                Alternative content is _content_.

                Content has no place in a style language.


                --
                David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
                Home is where the ~/.bashrc is

                Comment

                • Québec

                  #9
                  Re: alt attribute with css

                  [color=blue][color=green]
                  > > c)I want to modify the text, not the alt itself.[/color]
                  >
                  > Why. That would be stupid, most times.[/color]

                  ????

                  Is it not the purpose of css? Making the text blue, or else, making it
                  oblique, changing the font size etc.

                  Jean
                  --

                  --



                  Comment

                  • Québec

                    #10
                    Re: alt attribute with css

                    [color=blue]
                    > Alternative content is _content_.
                    >
                    > Content has no place in a style language.[/color]

                    I agree.
                    The language frontier seems to be the cause of the misunderstandin g here.


                    Comment

                    • Dave Patton

                      #11
                      Re: alt attribute with css

                      "Québec" <Once@WasEno.ug h> wrote in
                      news:Kpued.5329 5$J61.1417055@w agner.videotron .net:
                      [color=blue][color=green][color=darkred]
                      >> > c)I want to modify the text, not the alt itself.[/color]
                      >>
                      >> Why. That would be stupid, most times.[/color]
                      >
                      > ????
                      >
                      > Is it not the purpose of css? Making the text blue, or else, making it
                      > oblique, changing the font size etc.[/color]

                      The issue may be caused by your use of language, which
                      could either be because french may be your native language,
                      or simply how you worded what you said.

                      "modify the text", to many people, means taking something
                      like "image of a flower" and changing it to "image of a duck".

                      "modify the appearance of the text" is what you are referring to,
                      such as changing "image of a flower" from a default of black
                      on white 10pt courier to blue on white 12pt italic Tahoma.

                      The former has nothing to do with CSS, while the latter
                      is what CSS is used for.

                      --
                      Dave Patton
                      Canadian Coordinator, Degree Confluence Project
                      The Degree Confluence Project contains photographs of the intersections of integer latitude and longitude degree lines.

                      My website: http://members.shaw.ca/davepatton/

                      Comment

                      • Lauri Raittila

                        #12
                        Re: alt attribute with css

                        Québec wrote;
                        [color=blue]
                        > Is it not the purpose of css? Making the text blue, or else, making it
                        > oblique, changing the font size etc.[/color]

                        Well, you was told it twice, even if people missunderstood you:

                        img {font-style: oblique;color:b lue}

                        oblique is not usually supported, replace it with italic.

                        Works on Opera at least, maybe on some other browser too. Does not work
                        on browsers not supporting CSS, of course.

                        Are you perhaps using alt text to get tooltips in MSIE? If so, you should
                        use title attribute instead, and styling tooltips is not possible using
                        current CSS.

                        --
                        Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>

                        Comment

                        • Alan J. Flavell

                          #13
                          Re: alt attribute with css

                          On Sat, 23 Oct 2004, Lauri Raittila wrote:
                          [color=blue]
                          > Does not work on browsers not supporting CSS, of course.[/color]
                          ^^^^^^^^

                          The fact that CSS does no harm on browsers which do not support it, is
                          part of the original design brief for CSS. So, in that sense, the
                          fact that a (properly-designed) web site can still be browsed for its
                          content, even when CSS is disabled or unimplemented, can IMHO properly
                          be categorised as "working".

                          Perhaps it would be more accurate to say that it "has no effect",
                          rather than that it "does not work".

                          best regards

                          --
                          "You cannot store 'The Internet' in the Recycle Bin" - M$

                          Comment

                          • Dave @ Seess

                            #14
                            Re: alt attribute with css

                            Québec wrote:[color=blue]
                            > Hi,
                            >
                            > How can we mofdify the alt attribute with css?
                            >
                            > Jean Pierre
                            >
                            >[/color]

                            How? With Internet Explorer Expressions!



                            Regards

                            Dave

                            Comment

                            Working...