37 users online (1 members and 36 guests)  


  Results 1 to 3 of 3

Related

  1. I can't see the top border    Forum: CSS Forum
    Replies: 2
  2. Table border help    Forum: HTML Forum
    Replies: 6
  3. border shows but I set no border?    Forum: HTML Forum
    Replies: 2
  4. Replies: 1
  1. #1
    lasko's Avatar
    New User

    Status
    Offline
    Join Date
    Jun 2011
    Posts
    16

    CSS Frame Border in Firefox

    My layout uses CSS #frame coding, but there are borders around them in Firefox. What can I add to the following code to remove them?

    Code:
    This is in the HEAD of my page:
    
    <style type="text/css">
    	#frame1 {
    		width:1000px;
    		margin-right:auto;
    		margin-left:auto;
    		margin-top:0px;
    		padding:0px;
    		text-align:center;
    		}
    </style>
    
    Then this is in the BODY:
    
    <div id="frame1">
    CONTENT
    </div>
    Is there a border or frameborder attribute I can add to the code to eliminate the lines in Firefox?

  2. #2
    lasko's Avatar
    New User

    Status
    Offline
    Join Date
    Jun 2011
    Posts
    16

    Re: CSS Frame Border in Firefox

    Nevermind. I found the problem. I had inserted my CSS container in a traditional HTML frame without realizing it and Firefox showed the border of THAT frame, and not the CSS frame. I just removed the HTML frame and the problem was solved.

  3. #3
    csxkiddman's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2008
    Posts
    11

    Re: CSS Frame Border in Firefox

    Glad you fixed it, but at any rate, you could always use set the border to "none" like so:

    #frame1 {
    border: none; }