Bug 13249 - webkit adds margin when setting frame border to 0.
Summary: webkit adds margin when setting frame border to 0.
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Frames (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://www.quackit.com/html/tutorial/...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-31 17:58 PDT by Jacob Rus
Modified: 2022-07-07 12:10 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob Rus 2007-03-31 17:58:34 PDT
I couldn't get webkit to render a frame with no borders and no margin in WebKit, so I assumed I was doing something wrong, and went looking for some online reference.  I found a [frames tutorial][1] that explained how a web designer should get around this problem:

  > You can get rid of the borders if you like. Officially,
  > you do this using frameborder="0". I say, officially
  > because this is what the HTML specification specifies.
  > Having said that, different browsers support different
  > attributes, so for maximum browser support, use the
  > frameborder, border, and framespacing attributes.

[1]: http://www.quackit.com/html/tutorial/html_frames.cfm

Unfortunately, even setting all of these leaves an unsightly white margin in WebKit (though not in Gecko).  The tutorial's minimal test case is [here](http://www.quackit.com/html/tutorial/frame_example_frameset_3.html).

Interestingly, setting a 1 pixel border eliminates this margin.
Comment 1 Brent Fulgham 2022-07-07 12:10:15 PDT
The sample page appears to work properly now.