CSS Frameset Borders

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

    CSS Frameset Borders

    Hello,

    I am in the process of trying to make some existing web pages comply with
    W3C's HTML 4.01 Recommendation ('strict' where possible, 'loose' where
    not -- i.e. when using framesets and, hence, the 'target' attribute of the
    <a> tag...)

    I have so far been unsuccessful in finding a compliant equivalent of the
    'border' attribute of the <frameset> tag.

    <frameset border="0"....>
    <frame frameborder="0" ...>

    produces frames without borders, but W3C's validator says that there is no
    attribute 'border'.

    Attempting to use CSS instead, the following seem to have no effect:

    frameset
    {
    border-width: 0px; -AND/OR-
    border-style: none; -AND/OR-
    border-style: hidden; -AND/OR-
    border-collapse: collapse; -whatever THAT means-
    }

    but all leave me with a narrow two- or three-pixel (ish) border that can
    only be described as tenacious.

    Does anyone know how to achieve the equivalent of <frameset border="0"...>
    using CSS to produce something W3C compliant?

    If it makes any difference, I'm viewing my attempts using IE6.

    Thank you.
    A.


  • Peter Foti

    #2
    Re: CSS Frameset Borders

    "Andrew C." <remove.newsema il@andrewcornes .com.remove> wrote in message
    news:284d84b50a fd9c334053453f6 a3f777b@news.te ranews.com...[color=blue]
    > Hello,
    >
    > I am in the process of trying to make some existing web pages comply with
    > W3C's HTML 4.01 Recommendation ('strict' where possible, 'loose' where
    > not -- i.e. when using framesets and, hence, the 'target' attribute of the
    > <a> tag...)
    >
    > I have so far been unsuccessful in finding a compliant equivalent of the
    > 'border' attribute of the <frameset> tag.
    >
    > <frameset border="0"....>
    > <frame frameborder="0" ...>
    >
    > produces frames without borders, but W3C's validator says that there is no
    > attribute 'border'.[/color]

    <frameset>
    <frame frameborder="0" >
    </frameset>

    That should do it. Also, you'll probably want to be validating the page
    that contains the frameset with the Frameset DTD.

    Regards,
    Peter Foti


    Comment

    • Els

      #3
      Re: CSS Frameset Borders

      Andrew C. wrote:
      [color=blue]
      > Hello,
      >
      > I am in the process of trying to make some existing web pages comply with
      > W3C's HTML 4.01 Recommendation ('strict' where possible, 'loose' where
      > not -- i.e. when using framesets and, hence, the 'target' attribute of the
      > <a> tag...)
      >
      > I have so far been unsuccessful in finding a compliant equivalent of the
      > 'border' attribute of the <frameset> tag.
      >
      > <frameset border="0"....>
      > <frame frameborder="0" ...>
      >
      > produces frames without borders, but W3C's validator says that there is no
      > attribute 'border'.
      >
      > Attempting to use CSS instead, the following seem to have no effect:
      >
      > frameset
      > {
      > border-width: 0px; -AND/OR-
      > border-style: none; -AND/OR-
      > border-style: hidden; -AND/OR-
      > border-collapse: collapse; -whatever THAT means-
      > }
      >
      > but all leave me with a narrow two- or three-pixel (ish) border that can
      > only be described as tenacious.
      >
      > Does anyone know how to achieve the equivalent of <frameset border="0"...>
      > using CSS to produce something W3C compliant?
      >
      > If it makes any difference, I'm viewing my attempts using IE6.[/color]

      There is no attribute border for frameset, but you won't
      need it when using frameborder="0" on the frames, not the
      frameset.
      The white 'borders' you're still seeing, is the
      framespacing, which can be set to "0" and should be applied
      to the framesets, but unfortunately isn't valid under 4.01 :-(

      --
      Els

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

      Comment

      • Andrew C.

        #4
        Re: CSS Frameset Borders

        [color=blue]
        > <frameset>
        > <frame frameborder="0" >
        > </frameset>
        >
        > That should do it. Also, you'll probably want to be validating the page
        > that contains the frameset with the Frameset DTD.[/color]

        Unfortunately, this doesn't work -- I still get that two- or three-pixel
        border without a 'border=0' in the <frameset> tag.

        A.


        Comment

        • Andrew C.

          #5
          Re: CSS Frameset Borders

          [color=blue]
          > The white 'borders' you're still seeing, is the
          > framespacing, which can be set to "0" and should be applied
          > to the framesets, but unfortunately isn't valid under 4.01 :-([/color]

          As you say, using <frameset framespacing="0 "...> works as well as <frameset
          border="0"...> but neither of them are 4.01-compliant. So, unless I find an
          alternative that is compliant, I may as well stick with 'border': it's less
          typing! ;)

          A.


          Comment

          • Peter Foti

            #6
            Re: CSS Frameset Borders

            "Andrew C." <remove.newsema il@andrewcornes .com.remove> wrote in message
            news:d546010b90 81edfb655d6ef4a 893b305@news.te ranews.com...[color=blue]
            >[color=green]
            > > <frameset>
            > > <frame frameborder="0" >
            > > </frameset>
            > >
            > > That should do it. Also, you'll probably want to be validating the page
            > > that contains the frameset with the Frameset DTD.[/color]
            >
            > Unfortunately, this doesn't work -- I still get that two- or three-pixel
            > border without a 'border=0' in the <frameset> tag.[/color]

            Ah, correct you are. This seems to be the case in all of the major
            browsers, including Mozilla. My suggestion would be to avoid frames, but if
            that's not an option for you, then I would suggest letting your frameset
            document be invalid by adding the border="0" attribute to the frameset, and
            then making sure that all of the documents contained within frames are valid
            (note that the framespacing attribute does not seem to work for Netscape 4,
            which is why I suggest the border attribute). I don't *think* there is a
            CSS solution for this.

            Regards,
            Peter Foti


            Comment

            • Ivo

              #7
              Re: CSS Frameset Borders

              "Andrew C." <remove.newsema il@andrewcornes .com.remove> wrote in message
              news:19b6a010af 22a5ec16100319a bdddb6e@news.te ranews.com...[color=blue]
              >[color=green]
              > > The white 'borders' you're still seeing, is the
              > > framespacing, which can be set to "0" and should be applied
              > > to the framesets, but unfortunately isn't valid under 4.01 :-([/color]
              >
              > As you say, using <frameset framespacing="0 "...> works as well as[/color]
              <frameset[color=blue]
              > border="0"...> but neither of them are 4.01-compliant. So, unless I find[/color]
              an[color=blue]
              > alternative that is compliant, I may as well stick with 'border': it's[/color]
              less[color=blue]
              > typing! ;)
              >
              > A.
              >[/color]

              I still have to see the light why validation is so important, what the whole
              DOCTYPE circus is good for. If you want, you can add a few lines to a custom
              dtd defining border and frameborder and any other attributes you fancy, so
              that your frames *will* validate. See

              In my view, a site validates if a user can see it in his browser.
              HTH
              Ivo


              Comment

              • kaeli

                #8
                Re: CSS Frameset Borders

                In article <403f4b86$0$631 40$a344fe98@new s.wanadoo.nl>, no@thank.you
                enlightened us with...[color=blue]
                >
                > I still have to see the light why validation is so important, what the whole
                > DOCTYPE circus is good for.[/color]

                I think it's to make sure your site "behaves" in browsers other than the
                IE/Netscape popular browsers.
                There's a shitload of browsers out there I'd never even heard of until I
                saw them mentioned on Usenet.

                Then of course, there's the questions like "why doesn't my page work"
                and then you go validate it and the html is horrendous. :)

                --
                --
                ~kaeli~
                Is it true that cannibals don't eat clowns because they
                taste funny?



                Comment

                • Bertilo Wennergren

                  #9
                  Re: CSS Frameset Borders

                  Ivo:
                  [color=blue]
                  > In my view, a site validates if a user can see it in his browser.[/color]

                  Is it enough if all users _today_ can see the site in their browsers?

                  Or do you care about the users (and the browsers) of next year, and the
                  year after that, as well?

                  How do you know all users can see the site in their browsers?

                  --
                  Bertilo Wennergren <bertilow@gmx.n et> <http://www.bertilow.co m>

                  Comment

                  • Ivo

                    #10
                    Re: CSS Frameset Borders

                    "Bertilo Wennergren" <bertilow@gmx.n et> wrote in message
                    news:c1nl7g$qlc $04$3@news.t-online.com...[color=blue]
                    > Ivo:
                    >[color=green]
                    > > In my view, a site validates if a user can see it in his browser.[/color]
                    >
                    > Is it enough if all users _today_ can see the site in their browsers?
                    >
                    > Or do you care about the users (and the browsers) of next year, and the
                    > year after that, as well?[/color]

                    Yes, o very much. That 's exactly why all that "content" out in the open
                    must be looked after continuously and updated to reflect new standards or
                    become ...old.
                    Technology changes and I am convinced the browser of tomorrow will be able
                    to detect the type of document without a !DOCTYPE. Less is more. I also have
                    no doubt it will be able to render a font tag even though the standard tells
                    otherwise.
                    I am no enemy of standards, but have never understood what this
                    tag-to-end-all-tags was supposed to *do* except validate. As soon as soon as
                    browser sniffing was invented, browser spoofing was invented, as soon as
                    doctypes were invented, quirksmode was invented. I read on another
                    developer's site: suddenly twice as many browsers to test my pages in! That
                    's more or less the opposite effect of what a standard is supposed to
                    achieve, isn't it?
                    [color=blue]
                    > How do you know all users can see the site in their browsers?[/color]

                    A w3c standard is no guarantee. Being indexed by our friend the Googlebot
                    is, yet another kind of validation.
                    Yours conformisticall y,
                    Ivo
                    [color=blue]
                    > --
                    > Bertilo Wennergren <bertilow@gmx.n et> <http://www.bertilow.co m>[/color]




                    Comment

                    • Bertilo Wennergren

                      #11
                      Re: CSS Frameset Borders

                      Ivo:
                      [color=blue]
                      > "Bertilo Wennergren" <bertilow@gmx.n et> wrote in message
                      > news:c1nl7g$qlc $04$3@news.t-online.com...[/color]
                      [color=blue][color=green]
                      >> Ivo:[/color][/color]
                      [color=blue][color=green][color=darkred]
                      >> > In my view, a site validates if a user can see it in his browser.[/color][/color][/color]
                      [color=blue][color=green]
                      >> Is it enough if all users _today_ can see the site in their browsers?[/color][/color]
                      [color=blue][color=green]
                      >> Or do you care about the users (and the browsers) of next year, and the
                      >> year after that, as well?[/color][/color]
                      [color=blue]
                      > Yes, o very much. That 's exactly why all that "content" out in the open
                      > must be looked after continuously and updated to reflect new standards or
                      > become ...old.[/color]

                      Would it be better to make the content future safe without the need for
                      continuous maintenance - as far as possible? If you make sure you're
                      code is valid, there's much less risk that you'll have to redo the code
                      when new and better browsers appear. It's not fail-safe, but it's a very
                      good start.
                      [color=blue]
                      > Technology changes and I am convinced the browser of tomorrow will be able
                      > to detect the type of document without a !DOCTYPE. Less is more. I also have
                      > no doubt it will be able to render a font tag even though the standard tells
                      > otherwise.[/color]

                      Probably. But that does not go for each and every mistake that makes you
                      code invalid. It's has happend before that pages that used to work in
                      browsers, stopped working when a new and more standards compliant
                      version of a browser came out.
                      [color=blue]
                      > I am no enemy of standards, but have never understood what this
                      > tag-to-end-all-tags was supposed to *do* except validate. As soon as soon as
                      > browser sniffing was invented, browser spoofing was invented, as soon as
                      > doctypes were invented, quirksmode was invented. I read on another
                      > developer's site: suddenly twice as many browsers to test my pages in! That
                      > 's more or less the opposite effect of what a standard is supposed to
                      > achieve, isn't it?[/color]

                      I think you're mixing a lot of different things in the same pot in a
                      very confused way.

                      Don't sniff. Use the latest (and strictest) HTML version that works in
                      major browsers. Make sur you trigger standards mode. Validate. Test in
                      the major browsers (including Lynx). If anything gives problems,
                      simplify. Stay valid. What more do you want?
                      [color=blue][color=green]
                      >> How do you know all users can see the site in their browsers?[/color][/color]
                      [color=blue]
                      > A w3c standard is no guarantee.[/color]

                      Indeed. But using only valid code is the closest surrogate we have for
                      testing on tomorrows browsers. Using invalid code is very risky, even
                      when it happens to work in today's browsers.

                      --
                      Bertilo Wennergren <bertilow@gmx.n et> <http://www.bertilow.co m>

                      Comment

                      • Ivo

                        #12
                        Re: CSS Frameset Borders

                        "Bertilo Wennergren" <bertilow@gmx.n et> wrote in message
                        news:c1o2ro$3uo $07$1@news.t-online.com...[color=blue]
                        > Ivo:
                        >[color=green]
                        > > "Bertilo Wennergren" <bertilow@gmx.n et> wrote in message
                        > > news:c1nl7g$qlc $04$3@news.t-online.com...[/color]
                        >[color=green][color=darkred]
                        > >> Ivo:[/color]
                        > > Technology changes and I am convinced the browser of tomorrow will be
                        > > able to detect the type of document without a !DOCTYPE. Less is more.
                        > > I also have no doubt it will be able to render a font tag even though
                        > > the standard tells otherwise.[/color]
                        >
                        > Probably. But that does not go for each and every mistake that makes
                        > you code invalid. It's has happend before that pages that used to work in
                        > browsers, stopped working when a new and more standards compliant
                        > version of a browser came out.[/color]

                        Mistakes in the code are made. Some mistakes make a page not pass 'the
                        validation test', some mistakes leave a page blank for the human eye, some
                        mistakes cause a search engine spider to misinterpret a site, and the common
                        goal is to make those mistakes overlap eachother more and more in our
                        understanding, defining and engineering of an Internet technology as
                        undemanding as possible, where even the most messy markup can be accessed
                        and interpreted.[color=blue][color=green]
                        > > I am no enemy of standards, but have never understood what this
                        > > tag-to-end-all-tags was supposed to *do* except validate.[/color][/color]
                        (...)[color=blue]
                        > Use the latest (and strictest) HTML version that works in
                        > major browsers. Make sur you trigger standards mode. Validate. Test in
                        > the major browsers (including Lynx). If anything gives problems,
                        > simplify. Stay valid. What more do you want?[/color]

                        I want to be able to fill my HTML with embeds, bgcolors and -like the OP-
                        frameborders, and other stuff that is simply ignored by browsers unless it
                        understands it and when I am happy with the result, seeing that the page
                        gets visited by both bots and humans, be able to say that my code is valid.
                        My point is merely I find the Validation thing often overrated in
                        discussions here as it has restricted our freedom more than anything else
                        and it will never replace that final test: the real validation does not take
                        place until a human sees the page. If it is a ten year old document, the
                        human (and a good browser) will be prepared for some old-fashioned wording.
                        Ivo
                        [color=blue]
                        > --
                        > Bertilo Wennergren <bertilow@gmx.n et> <http://www.bertilow.co m>[/color]


                        Comment

                        • Bertilo Wennergren

                          #13
                          Re: CSS Frameset Borders

                          Ivo:
                          [color=blue]
                          > "Bertilo Wennergren"[/color]
                          [color=blue][color=green]
                          >> Use the latest (and strictest) HTML version that works in
                          >> major browsers. Make sur you trigger standards mode. Validate. Test in
                          >> the major browsers (including Lynx). If anything gives problems,
                          >> simplify. Stay valid. What more do you want?[/color][/color]
                          [color=blue]
                          > I want to be able to fill my HTML with embeds, bgcolors and -like the OP-
                          > frameborders, and other stuff that is simply ignored by browsers unless it
                          > understands it and when I am happy with the result, seeing that the page
                          > gets visited by both bots and humans, be able to say that my code is valid.[/color]

                          Then make a carefully crafted custom DTD that includes the additional
                          stuff you need, and use the validator to control that you've correctly
                          followed the rules you've set up for yourself.
                          [color=blue]
                          > My point is merely I find the Validation thing often overrated in
                          > discussions here as it has restricted our freedom more than anything else
                          > and it will never replace that final test: the real validation does not take
                          > place until a human sees the page.[/color]

                          Of course validation can't replace testing in actual browsers, and with
                          actual humans. I don't think anyone seriously advocates anything else.

                          --
                          Bertilo Wennergren <bertilow@gmx.n et> <http://www.bertilow.co m>

                          Comment

                          • Bertilo Wennergren

                            #14
                            Re: CSS Frameset Borders

                            I just wrote:
                            [color=blue]
                            > Ivo:[/color]
                            [color=blue][color=green]
                            >> My point is merely I find the Validation thing often overrated in
                            >> discussions here as it has restricted our freedom more than anything else
                            >> and it will never replace that final test: the real validation does not take
                            >> place until a human sees the page.[/color][/color]
                            [color=blue]
                            > Of course validation can't replace testing in actual browsers, and with
                            > actual humans. I don't think anyone seriously advocates anything else.[/color]

                            Well, that didn't come out right. I meant:

                            Of course validation can't replace testing in actual browsers, and with
                            actual humans. I don't think anyone seriously advocates that it can.

                            --
                            Bertilo Wennergren <bertilow@gmx.n et> <http://www.bertilow.co m>

                            Comment

                            Working...