There is no attribute "BACKGROUND" & "HEIGHT" + + +

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Torbjørn Pettersen

    There is no attribute "BACKGROUND" & "HEIGHT" + + +

    I've got a table where I want some of the cells to use
    a background image. The cells have variable height, so
    I am using an image with a rather small height to fill up
    the background of the cells, thus making I look like one
    high image in there.

    When validating it, I get this error:
    there is no attribute "BACKGROUND "

    The validators also tell me there are no "HEIGHT" or
    "TOPMARGIN" attributes. Where did they go? And
    what to use now?

    <grumble>Why on Earth do they have to remove the
    stuff that ::I:: use to make things nice and tidy?</grumble>

    And then there is the "ALT" attribute.... Do I really have
    to use that on ::all:: my images?

    Well, time to call it an evening anyway........

    --
    Torbjørn Pettersen
    Editor/Webmaster
    FantaFiction




  • Els

    #2
    Re: There is no attribute &quot;BACKGROUN D&quot; &amp; &quot;HEIGHT&qu ot; + + +

    Torbjørn Pettersen wrote:
    [color=blue]
    > I've got a table where I want some of the cells to use
    > a background image. The cells have variable height, so
    > I am using an image with a rather small height to fill up
    > the background of the cells, thus making I look like one
    > high image in there.
    >
    > When validating it, I get this error:
    > there is no attribute "BACKGROUND "
    >
    > The validators also tell me there are no "HEIGHT" or
    > "TOPMARGIN" attributes. Where did they go? And
    > what to use now?[/color]

    CSS:

    <style type="text/css">
    table{
    margin-top: 10px;
    }
    td{
    background-image:url(image .gif);
    background-repeat:repeat-y;
    height:30%;
    }
    </style>
    </head>


    [color=blue]
    > <grumble>Why on Earth do they have to remove the
    > stuff that ::I:: use to make things nice and tidy?</grumble>[/color]

    Using CSS (especially in seperate stylesheets) will only
    make things tidier and nicer :-)
    [color=blue]
    > And then there is the "ALT" attribute.... Do I really have
    > to use that on ::all:: my images?[/color]

    alt="" if the image really doesn't need a description
    (thinking of decorative gifs here)
    [color=blue]
    > Well, time to call it an evening anyway........[/color]

    Same side of the planet as where I am :-)

    --
    Els

    Sonhos vem. Sonhos vão. O resto é imperfeito.
    - Renato Russo -

    Comment

    • Els

      #3
      Re: There is no attribute &quot;BACKGROUN D&quot; &amp; &quot;HEIGHT&qu ot; + + +

      Torbjørn Pettersen wrote:
      [color=blue]
      > I've got a table where I want some of the cells to use
      > a background image. The cells have variable height, so
      > I am using an image with a rather small height to fill up
      > the background of the cells, thus making I look like one
      > high image in there.
      >
      > When validating it, I get this error:
      > there is no attribute "BACKGROUND "
      >
      > The validators also tell me there are no "HEIGHT" or
      > "TOPMARGIN" attributes. Where did they go? And
      > what to use now?[/color]

      CSS:

      <style type="text/css">
      table{
      margin-top: 10px;
      }
      td{
      background-image:url(image .gif);
      background-repeat:repeat-y;
      height:30%;
      }
      </style>
      </head>


      [color=blue]
      > <grumble>Why on Earth do they have to remove the
      > stuff that ::I:: use to make things nice and tidy?</grumble>[/color]

      Using CSS (especially in seperate stylesheets) will only
      make things tidier and nicer :-)
      [color=blue]
      > And then there is the "ALT" attribute.... Do I really have
      > to use that on ::all:: my images?[/color]

      alt="" if the image really doesn't need a description
      (thinking of decorative gifs here)
      [color=blue]
      > Well, time to call it an evening anyway........[/color]

      Same side of the planet as where I am :-)

      --
      Els

      Sonhos vem. Sonhos vão. O resto é imperfeito.
      - Renato Russo -

      Comment

      • DU

        #4
        Re: There is no attribute &quot;BACKGROUN D&quot; &amp; &quot;HEIGHT&qu ot; + + +

        Torbjørn Pettersen wrote:
        [color=blue]
        > I've got a table where I want some of the cells to use
        > a background image. The cells have variable height, so
        > I am using an image with a rather small height to fill up
        > the background of the cells, thus making I look like one
        > high image in there.
        >[/color]

        This is too specific and complex here. There is no way someone could
        actually understand the specificity of your web page. An url is best here.
        [color=blue]
        > When validating it, I get this error:
        > there is no attribute "BACKGROUND "
        >
        > The validators also tell me there are no "HEIGHT" or
        > "TOPMARGIN" attributes. Where did they go? And
        > what to use now?
        >
        > <grumble>Why on Earth do they have to remove the
        > stuff that ::I:: use to make things nice and tidy?</grumble>
        >[/color]

        Topmargin, marginheight, leftmargin, marginwidth, background were never
        part of the HTMl 4 specification and HTML 4 TR was released in 1999.
        [color=blue]
        > And then there is the "ALT" attribute.... Do I really have
        > to use that on ::all:: my images?[/color]

        Yes for text browsers, braille browsers. Remember that some people
        disable images to make download faster. MSIE 6, Netscape 7.1, Mozilla
        1.x and most browsers allow users to disable download of images.
        Anyway, sometimes the download of particular images is not completed or
        achieved: editing the alternate text for images is useful.

        DU
        [color=blue]
        >
        > Well, time to call it an evening anyway........
        >[/color]

        Comment

        • DU

          #5
          Re: There is no attribute &quot;BACKGROUN D&quot; &amp; &quot;HEIGHT&qu ot; + + +

          Torbjørn Pettersen wrote:
          [color=blue]
          > I've got a table where I want some of the cells to use
          > a background image. The cells have variable height, so
          > I am using an image with a rather small height to fill up
          > the background of the cells, thus making I look like one
          > high image in there.
          >[/color]

          This is too specific and complex here. There is no way someone could
          actually understand the specificity of your web page. An url is best here.
          [color=blue]
          > When validating it, I get this error:
          > there is no attribute "BACKGROUND "
          >
          > The validators also tell me there are no "HEIGHT" or
          > "TOPMARGIN" attributes. Where did they go? And
          > what to use now?
          >
          > <grumble>Why on Earth do they have to remove the
          > stuff that ::I:: use to make things nice and tidy?</grumble>
          >[/color]

          Topmargin, marginheight, leftmargin, marginwidth, background were never
          part of the HTMl 4 specification and HTML 4 TR was released in 1999.
          [color=blue]
          > And then there is the "ALT" attribute.... Do I really have
          > to use that on ::all:: my images?[/color]

          Yes for text browsers, braille browsers. Remember that some people
          disable images to make download faster. MSIE 6, Netscape 7.1, Mozilla
          1.x and most browsers allow users to disable download of images.
          Anyway, sometimes the download of particular images is not completed or
          achieved: editing the alternate text for images is useful.

          DU
          [color=blue]
          >
          > Well, time to call it an evening anyway........
          >[/color]

          Comment

          • Torbjørn Pettersen

            #6
            Re: There is no attribute &quot;BACKGROUN D&quot; &amp; &quot;HEIGHT&qu ot; + + +

            DU wrote...[color=blue][color=green]
            > > I've got a table where I want some of the cells to use
            > > a background image. The cells have variable height, so
            > > I am using an image with a rather small height to fill up
            > > the background of the cells, thus making I look like one
            > > high image in there.[/color]
            >
            > This is too specific and complex here. There is no way someone could
            > actually understand the specificity of your web page. An url is best here.[/color]

            As an example you can check out www.fantafiction.com/default.asp
            Look for the "sideruner. gif" image. When you look at the code you'll
            also understand why I'm rebuilding it. ;-)

            Torbjørn


            Comment

            • Torbjørn Pettersen

              #7
              Re: There is no attribute &quot;BACKGROUN D&quot; &amp; &quot;HEIGHT&qu ot; + + +

              DU wrote...[color=blue][color=green]
              > > I've got a table where I want some of the cells to use
              > > a background image. The cells have variable height, so
              > > I am using an image with a rather small height to fill up
              > > the background of the cells, thus making I look like one
              > > high image in there.[/color]
              >
              > This is too specific and complex here. There is no way someone could
              > actually understand the specificity of your web page. An url is best here.[/color]

              As an example you can check out www.fantafiction.com/default.asp
              Look for the "sideruner. gif" image. When you look at the code you'll
              also understand why I'm rebuilding it. ;-)

              Torbjørn


              Comment

              • C A Upsdell

                #8
                Re: There is no attribute &quot;BACKGROUN D&quot; &amp; &quot;HEIGHT&qu ot; + + +

                "Torbjørn Pettersen" <tpe AT broadpark DOT no> wrote in message
                news:407f0708@n ews.broadpark.n o...[color=blue]
                > I've got a table where I want some of the cells to use
                > a background image. The cells have variable height, so
                > I am using an image with a rather small height to fill up
                > the background of the cells, thus making I look like one
                > high image in there.
                >
                > When validating it, I get this error:
                > there is no attribute "BACKGROUND "
                >
                > The validators also tell me there are no "HEIGHT" or
                > "TOPMARGIN" attributes. Where did they go? And
                > what to use now?[/color]

                You only need the non-standard BACKGROUND and TOPMARGIN attributes for
                ancient, CSS-deprived browsers, e.g. NN4, and accept the validation errors.
                Use CSS instead for less antediluvian browsers.







                Comment

                • C A Upsdell

                  #9
                  Re: There is no attribute &quot;BACKGROUN D&quot; &amp; &quot;HEIGHT&qu ot; + + +

                  "Torbjørn Pettersen" <tpe AT broadpark DOT no> wrote in message
                  news:407f0708@n ews.broadpark.n o...[color=blue]
                  > I've got a table where I want some of the cells to use
                  > a background image. The cells have variable height, so
                  > I am using an image with a rather small height to fill up
                  > the background of the cells, thus making I look like one
                  > high image in there.
                  >
                  > When validating it, I get this error:
                  > there is no attribute "BACKGROUND "
                  >
                  > The validators also tell me there are no "HEIGHT" or
                  > "TOPMARGIN" attributes. Where did they go? And
                  > what to use now?[/color]

                  You only need the non-standard BACKGROUND and TOPMARGIN attributes for
                  ancient, CSS-deprived browsers, e.g. NN4, and accept the validation errors.
                  Use CSS instead for less antediluvian browsers.







                  Comment

                  • DU

                    #10
                    Re: There is no attribute &quot;BACKGROUN D&quot; &amp; &quot;HEIGHT&qu ot; + + +

                    Torbjørn Pettersen wrote:
                    [color=blue]
                    > DU wrote...
                    >[color=green][color=darkred]
                    >>>I've got a table where I want some of the cells to use
                    >>>a background image. The cells have variable height, so
                    >>>I am using an image with a rather small height to fill up
                    >>>the background of the cells, thus making I look like one
                    >>>high image in there.[/color]
                    >>
                    >>This is too specific and complex here. There is no way someone could
                    >>actually understand the specificity of your web page. An url is best here.[/color]
                    >
                    >
                    > As an example you can check out www.fantafiction.com/default.asp
                    > Look for the "sideruner. gif" image. When you look at the code you'll
                    > also understand why I'm rebuilding it. ;-)
                    >
                    > Torbjørn
                    >
                    >[/color]

                    Your page suffers from many design and coding problems.

                    I recommend that you avoid table design, specially nested tables. You
                    should also avoid <font> and center attributes since using CSS will
                    achieve a better job (code reusability, site maintenance).

                    You should start with a doctype declaration which will trigger standards
                    compliance rendering mode in MSIE 6 so that its implementation of the
                    CSS1 box model will be correct and will render like NS 7.x, Opera 7.x
                    and other standards compliant browsers.

                    More to read here:

                    Why tables for layout is stupid:
                    problems defined, solutions offered
                    Smart, high-quality digital design for teams that move fast. Web, email, campaigns, and brand creative delivered without drama — just results.


                    Tableless layout HOWTO


                    W3C Quality Assurance:
                    Tips for webmasters


                    W3C Quality Assurance:
                    Recommended Practices
                    Forget <font>, use CSS


                    If you want to center a block-level element, then use:
                    margin-left: auto; margin-right:auto;
                    to center the element within its immediate parent.

                    If you want to center inline elements, then use:
                    text-align: center;
                    to center text, images within a block-level element.

                    This is useful to know as you use 45 center attributes or elements and
                    those are deprecated.

                    List of valid DTDs you can use in your document:


                    Activating the Right Layout Mode Using the Doctype Declaration
                    Aalto University, Finland is a new multidisciplinary science and art community in the fields of science, business, and art and design.


                    I recommend you use HTMl 4.01 strict for the reasons I gave about MSIE 6
                    box model.

                    DU

                    Comment

                    • DU

                      #11
                      Re: There is no attribute &quot;BACKGROUN D&quot; &amp; &quot;HEIGHT&qu ot; + + +

                      Torbjørn Pettersen wrote:
                      [color=blue]
                      > DU wrote...
                      >[color=green][color=darkred]
                      >>>I've got a table where I want some of the cells to use
                      >>>a background image. The cells have variable height, so
                      >>>I am using an image with a rather small height to fill up
                      >>>the background of the cells, thus making I look like one
                      >>>high image in there.[/color]
                      >>
                      >>This is too specific and complex here. There is no way someone could
                      >>actually understand the specificity of your web page. An url is best here.[/color]
                      >
                      >
                      > As an example you can check out www.fantafiction.com/default.asp
                      > Look for the "sideruner. gif" image. When you look at the code you'll
                      > also understand why I'm rebuilding it. ;-)
                      >
                      > Torbjørn
                      >
                      >[/color]

                      Your page suffers from many design and coding problems.

                      I recommend that you avoid table design, specially nested tables. You
                      should also avoid <font> and center attributes since using CSS will
                      achieve a better job (code reusability, site maintenance).

                      You should start with a doctype declaration which will trigger standards
                      compliance rendering mode in MSIE 6 so that its implementation of the
                      CSS1 box model will be correct and will render like NS 7.x, Opera 7.x
                      and other standards compliant browsers.

                      More to read here:

                      Why tables for layout is stupid:
                      problems defined, solutions offered
                      Smart, high-quality digital design for teams that move fast. Web, email, campaigns, and brand creative delivered without drama — just results.


                      Tableless layout HOWTO


                      W3C Quality Assurance:
                      Tips for webmasters


                      W3C Quality Assurance:
                      Recommended Practices
                      Forget <font>, use CSS


                      If you want to center a block-level element, then use:
                      margin-left: auto; margin-right:auto;
                      to center the element within its immediate parent.

                      If you want to center inline elements, then use:
                      text-align: center;
                      to center text, images within a block-level element.

                      This is useful to know as you use 45 center attributes or elements and
                      those are deprecated.

                      List of valid DTDs you can use in your document:


                      Activating the Right Layout Mode Using the Doctype Declaration
                      Aalto University, Finland is a new multidisciplinary science and art community in the fields of science, business, and art and design.


                      I recommend you use HTMl 4.01 strict for the reasons I gave about MSIE 6
                      box model.

                      DU

                      Comment

                      • Alan J. Flavell

                        #12
                        Re: There is no attribute &quot;BACKGROUN D&quot; &amp; &quot;HEIGHT&qu ot; + + +

                        On Thu, 15 Apr 2004, DU wrote:
                        [color=blue]
                        > Topmargin, marginheight, leftmargin, marginwidth, background were never
                        > part of the HTMl 4 specification and HTML 4 TR was released in 1999.[/color]

                        HTML4 TR was complete in 1997. The 4.01 version, which I doubt has
                        any significant impact on the issues raised here, is the one that was
                        final in 1999.

                        Not much seems to have happened in the intervening 6-7 years. A few
                        specialists are now writing HTML4 "per se" - and more power to their
                        elbows, say I - while the vast majority are still writing something
                        that's in effect pseudo-HTML DTP a la Mosaic Communications
                        Corporation and HTML/3.2 - except that some misguided souls have
                        compounded the offence by translating their HTML/3.2 presentational
                        attributes into more-verbose quasi-CSS "style=" attributes, while
                        carefully missing the point of the separation of content and style.

                        Have I had a bad day? Yes, I have. But the facts are the same, no
                        matter.
                        [color=blue][color=green]
                        > > And then there is the "ALT" attribute.... Do I really have
                        > > to use that on ::all:: my images?[/color]
                        >
                        > Yes for text browsers, braille browsers.[/color]

                        The alt attribute is mandatory for HTML. It's not limited to specific
                        browsers. And remember, not all HTML client agents are browsers.

                        Good luck

                        Comment

                        • Alan J. Flavell

                          #13
                          Re: There is no attribute &quot;BACKGROUN D&quot; &amp; &quot;HEIGHT&qu ot; + + +

                          On Thu, 15 Apr 2004, DU wrote:
                          [color=blue]
                          > Topmargin, marginheight, leftmargin, marginwidth, background were never
                          > part of the HTMl 4 specification and HTML 4 TR was released in 1999.[/color]

                          HTML4 TR was complete in 1997. The 4.01 version, which I doubt has
                          any significant impact on the issues raised here, is the one that was
                          final in 1999.

                          Not much seems to have happened in the intervening 6-7 years. A few
                          specialists are now writing HTML4 "per se" - and more power to their
                          elbows, say I - while the vast majority are still writing something
                          that's in effect pseudo-HTML DTP a la Mosaic Communications
                          Corporation and HTML/3.2 - except that some misguided souls have
                          compounded the offence by translating their HTML/3.2 presentational
                          attributes into more-verbose quasi-CSS "style=" attributes, while
                          carefully missing the point of the separation of content and style.

                          Have I had a bad day? Yes, I have. But the facts are the same, no
                          matter.
                          [color=blue][color=green]
                          > > And then there is the "ALT" attribute.... Do I really have
                          > > to use that on ::all:: my images?[/color]
                          >
                          > Yes for text browsers, braille browsers.[/color]

                          The alt attribute is mandatory for HTML. It's not limited to specific
                          browsers. And remember, not all HTML client agents are browsers.

                          Good luck

                          Comment

                          • Torbjørn Pettersen

                            #14
                            Re: There is no attribute &quot;BACKGROUN D&quot; &amp; &quot;HEIGHT&qu ot; + + +

                            DU wrote...[color=blue]
                            > Torbjørn Pettersen wrote:[color=green]
                            > > As an example you can check out www.fantafiction.com/default.asp
                            > > Look for the "sideruner. gif" image. When you look at the code you'll
                            > > also understand why I'm rebuilding it. ;-)[/color]
                            >
                            > Your page suffers from many design and coding problems.[/color]

                            Try to read the last sentence in my post once more. ;-) Then you'll see
                            that the first web site you're pointing to "Why tables for layout is stupid:
                            problems defined, solutions offered" actually explains why tables are the
                            way to do things when you want to do what I want to do:
                            Smart, high-quality digital design for teams that move fast. Web, email, campaigns, and brand creative delivered without drama — just results.


                            But, there are are a lot of usefull information on the pages you point to,
                            but it did not answer my question. Thanks.

                            Torbjørn


                            Comment

                            • Torbjørn Pettersen

                              #15
                              Re: There is no attribute &quot;BACKGROUN D&quot; &amp; &quot;HEIGHT&qu ot; + + +

                              DU wrote...[color=blue]
                              > Torbjørn Pettersen wrote:[color=green]
                              > > As an example you can check out www.fantafiction.com/default.asp
                              > > Look for the "sideruner. gif" image. When you look at the code you'll
                              > > also understand why I'm rebuilding it. ;-)[/color]
                              >
                              > Your page suffers from many design and coding problems.[/color]

                              Try to read the last sentence in my post once more. ;-) Then you'll see
                              that the first web site you're pointing to "Why tables for layout is stupid:
                              problems defined, solutions offered" actually explains why tables are the
                              way to do things when you want to do what I want to do:
                              Smart, high-quality digital design for teams that move fast. Web, email, campaigns, and brand creative delivered without drama — just results.


                              But, there are are a lot of usefull information on the pages you point to,
                              but it did not answer my question. Thanks.

                              Torbjørn


                              Comment

                              Working...