www.webdeveloper.com
Results 1 to 2 of 2

Thread: frameset border

  1. #1
    Join Date
    Sep 2007
    Posts
    1

    Arrow frameset border

    hi, i have an ugly white line between my frames. can anybody help?

    my code
    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
       <title>WastedTime.NET</title>
       <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
       <link rel="shortcut icon" href="/favicon.ico" />
       <link rel="stylesheet" type="text/css" href="/bg/style.css" />
    </head>
    <frameset cols="300,*">
       <frame frameborder="0" name="nav" noresize="noresize" scrolling="no" src="/nav.php" />
       <frame frameborder="0" name="home" noresize="noresize" src="/home.php" />
    </frameset>
    </html>
    
    <!-- Frank Mazzarella (c) -->

  2. #2
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,208
    Try adding the below to your frameset as IE 6 and IE 7 have a problem with just the frameborder="0" as well as some other browsers:

    Code:
    border="0" framespacing="0"
    If you have a CSS stylesheet, also include at the very top the Universal selector:

    * { border: 0; padding: 0; margin: 0; }

    Usually it's very hard to eliminate the line unless you put in a background color to match it or put in a border color to make it obvious. Don't know if setting marginheight="0" in the frameset code would help, but you can try that too. Some will tell you not to use frames, but they're just fine if you know how to use them. IFrames are good too.

    Ron
    Last edited by Major Payne; 09-05-2007 at 10:06 PM.

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