Floated items with trailing whitespace lose padding-right

Safari will omit the right padding of an element in a floated container if that element has trailing whitespace. Workaround is to ensure any elements with padding have no whitespace before the closing tag.

(ppknote: The test page is a mess in IE Mac, but the bug is not the same)

Test page Workaround is included
Reported by: Alan Harder.

Safari | Reported on 1 August 2005.

This site is no longer maintained. I’m sorry, but it’s just too much work for too little return. You can continue to browse old bug reports, though.

Search reports by browser:

Atom RSS


(Add your own)

1 Posted by Brian Willliams on 27 February 2008 | Permalink

Where padding-right was being ignored by Safari, display:inline-block solved the problem for me, with no adverse affects in other browsers. May work in most cases.