www.webdeveloper.com
Results 1 to 11 of 11

Thread: Changing Frame Colors

  1. #1
    Join Date
    Mar 2006
    Location
    Canada
    Posts
    1,197

    Changing Frame Colors

    Hi,

    Is it possible to use CSS to change the frame color from the standard grey to something esle. I have done some looking but cannot find anything specific to formating frame borders

    thank you
    Kevin

  2. #2
    Join Date
    Jan 2006
    Location
    Stafford, England
    Posts
    565
    If you dont use CSS
    HTML Code:
    <frameset rows="50%,50%" bordercolor="#0000FF">
    If you use CSS
    HTML Code:
    <style type="text/css">
    <!--
    frameset {
    	border: #F00;
    }
    -->
    </style>
    Heres a tutorial.
    http://www.activejump.com/k-2.shtml
    Last edited by johneva; 03-05-2006 at 09:34 AM.

  3. #3
    Join Date
    Mar 2006
    Location
    Canada
    Posts
    1,197
    Thank your help, easier then I thought. I have the frameborder set to 1. I can still see the grey, is there anyway to make the frame thinner. and for some reason the code for CSS is not working
    Last edited by kproc; 03-05-2006 at 09:57 AM.
    Kevin

  4. #4
    Join Date
    Jan 2006
    Location
    Stafford, England
    Posts
    565
    Yeah I was not sure that it would work using that CSS it was something I have never tryed.

    Not sure this will work either never tryed I always turned of the border when using frames, but that is how you change the width of your border.
    HTML Code:
    <frameset rows="50%,50%" border="0.1">
    I dont use frames anymore anyways either. I dont like them myself.

  5. #5
    Join Date
    Mar 2006
    Location
    Canada
    Posts
    1,197
    Do you mind me asking why you don't like frames. I'm very new to all of this
    Kevin

  6. #6
    Join Date
    Jan 2006
    Location
    Stafford, England
    Posts
    565
    Well I have just had a quick play around and I see what you mean now it colors the main face of the borded but not he side bits to give it the rised effect.

    I dont know how to do it or even if it can be done sorry.
    Last edited by johneva; 03-05-2006 at 10:28 AM.

  7. #7
    Join Date
    Jan 2006
    Location
    Stafford, England
    Posts
    565
    Quote Originally Posted by kproc
    Do you mind me asking why you don't like frames. I'm very new to all of this
    Here is one of many many articles that explain the drawbacks of frames.
    http://www.karlcore.com/articles/article.php?id=2

  8. #8
    Join Date
    Mar 2006
    Location
    Canada
    Posts
    1,197
    Thanks for the link. This has made me rethink the design of my web page. The reason that I'm using frames is so that my navidation bar on the left and the header remain static. Would using a table be a better alternative.
    Kevin

  9. #9
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,407
    The general consensus now is that the "best practice" for page layout is to use CSS rather than frames or tables to control the visual layout of a page.

    http://www.w3.org/MarkUp/Guide/Style
    http://www.htmldog.com/guides/cssbeginner/
    http://www.hotdesign.com/seybold/
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  10. #10
    Join Date
    Mar 2006
    Location
    Canada
    Posts
    1,197
    I have an easy question, I've reviewed the web sites explaining CSS, how Do I put it together to set up a page that has a column for links and a header.
    Kevin

  11. #11
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,407
    Quote Originally Posted by kproc
    I have an easy question, I've reviewed the web sites explaining CSS, how Do I put it together to set up a page that has a column for links and a header.
    http://www.bluerobot.com/web/layouts/
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles