Changing background color of a frameset

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

    Changing background color of a frameset

    I'm trying to set the background color of a frameset to black. The
    following code doesn't work in either IE 6.0 or Firefox. Any ideas why?

    <frameset bgcolor="#00000 0" frameborder="0" border="0" cols="240,*">

    <frame name="links" scrolling="no" noresize target="content s" src="">

    <frameset bgcolor="#00000 0" frameborder="0" border="0" rows="135,*">

    <frame name="topbanner " scrolling="no" src="">

    <frame name="main" scrolling="auto " src="">

    </frameset>

    I know some people don't like framesets, but I need them for this particular
    page. Thanks for any ideas on why.



  • David Dorward

    #2
    Re: Changing background color of a frameset

    Nancy Carter wrote:
    [color=blue]
    > I'm trying to set the background color of a frameset to black. The
    > following code doesn't work in either IE 6.0 or Firefox. Any ideas why?
    >
    > <frameset bgcolor="#00000 0" frameborder="0" border="0" cols="240,*">[/color]

    Well:

    (a) Your markup is invalid


    and:
    (b) Frames don't have background colours, they contain documents, elements
    of which may have background colours.
    [color=blue]
    > I know some people don't like framesets, but I need them for this
    > particular page.[/color]

    Given that one of your frames is named "topbanner" , that seems rather
    unlikely (at least from the point of view of the end user).

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

    Comment

    • Nancy Carter

      #3
      Re: Changing background color of a frameset

      I have seen the bgcolor attribute used with framesets, as I did; perhaps
      this is legacy now. The reason I need the frameset to have its own
      background color is because the background color of the pages is set to
      black. That means the user sees a disconcerting field of gray (in IE) or
      white (in Firefox) before the other pages load. If I can set the background
      color of the frameset to black, then the user sees a field of black, rather
      than the disconcerting gray or white background.

      Any other ideas would be most appreciated.



      "David Dorward" <dorward@yahoo. com> wrote in message
      news:d8v3i1$75$ 1$8300dec7@news .demon.co.uk...[color=blue]
      > Nancy Carter wrote:
      >[color=green]
      >> I'm trying to set the background color of a frameset to black. The
      >> following code doesn't work in either IE 6.0 or Firefox. Any ideas why?
      >>
      >> <frameset bgcolor="#00000 0" frameborder="0" border="0" cols="240,*">[/color]
      >
      > Well:
      >
      > (a) Your markup is invalid
      > http://www.w3.org/TR/html4/present/frames.html#h-16.2.1
      >
      > and:
      > (b) Frames don't have background colours, they contain documents, elements
      > of which may have background colours.
      >[color=green]
      >> I know some people don't like framesets, but I need them for this
      >> particular page.[/color]
      >
      > Given that one of your frames is named "topbanner" , that seems rather
      > unlikely (at least from the point of view of the end user).
      >
      > --
      > David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
      > Home is where the ~/.bashrc is[/color]


      Comment

      • David Dorward

        #4
        Re: Changing background color of a frameset

        Nancy Carter wrote:

        Please don't top post.


        [color=blue]
        > I have seen the bgcolor attribute used with framesets, as I did; perhaps
        > this is legacy now.[/color]

        No, just non-standard rubbish.

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

        Comment

        • Nancy Carter

          #5
          Re: Changing background color of a frameset

          If it's non-standard but still viable, then how do I make it work? My
          problem is that I've inherited a very large, very old website with a lot of
          framesets, and we don't have the resources right now to replace all of them,
          so I'm trying to make do with what I've inherited. If I can set the frame
          background to black, then it will help while we transition all the pages to
          CSS.

          Thanks again for any help.


          "David Dorward" <dorward@yahoo. com> wrote in message
          news:d8vaoh$sdr $1$830fa7a5@new s.demon.co.uk.. .[color=blue]
          > Nancy Carter wrote:
          >
          > Please don't top post.
          > http://www.faqs.org/rfcs/rfc1855.html
          > http://www.allmyfaqs.com/faq.pl?How_to_post
          >[color=green]
          >> I have seen the bgcolor attribute used with framesets, as I did; perhaps
          >> this is legacy now.[/color]
          >
          > No, just non-standard rubbish.
          >
          > --
          > David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
          > Home is where the ~/.bashrc is[/color]


          Comment

          • Andy Dingley

            #6
            Re: Changing background color of a frameset

            On Fri, 17 Jun 2005 16:29:16 -0400, "Nancy Carter"
            <ncarter@spamfr ee.com> wrote:
            [color=blue]
            >If it's non-standard but still viable, then how do I make it work?[/color]

            Just make up some random attributes and use them.
            Or sacrifice a chicken to it. Do whatever you want - if you aren't
            interested in doing it right, then your new random rubbish is as good as
            old legacy random rubbish.

            Comment

            • Andrew Glasgow

              #7
              Re: Changing background color of a frameset



              Nancy Carter wrote:[color=blue]
              > I have seen the bgcolor attribute used with framesets, as I did; perhaps
              > this is legacy now. The reason I need the frameset to have its own
              > background color is because the background color of the pages is set to
              > black. That means the user sees a disconcerting field of gray (in IE) or
              > white (in Firefox) before the other pages load. If I can set the background
              > color of the frameset to black, then the user sees a field of black, rather
              > than the disconcerting gray or white background.
              >
              > Any other ideas would be most appreciated.[/color]


              How is seeing a neutral color prior to the page loading disconcerting,
              considering that this is normal behavior for web browsers?

              I think you may be using 'disconcerting' to mean 'offends my personal
              sense of aesthetics' or 'fails to fill my obsessive need to control
              every aspect of the user's brower's presentation of my page'. Have any
              *users* of the page reported that they find the momentary appearance of
              a white or grey field 'disconcerting' ? Or do they recognize it for a
              normal step in the loading of a webpage, which is what I would expect
              from any user who had used a web browser regularly.

              A problem that causes no one any problems, is no problem at all.

              Andrew

              Comment

              Working...