[css-d] Get around this Safari bug that pushes text outside of its box?

2018-03-17 Thread John Beales
I have an issue in Safari when a floated image is immediately followed by a non-floated , and that has a drop-cap using the -webkit-initial-letter CSS declaration. The drop-cap pushes the rest of the line of text to the right, but it doesn’t always wrap at the right location, so the end of the

Re: [css-d] Get around this Safari bug that pushes text outside of its box?

2018-03-17 Thread Philippe Wittenbergh
> On Mar 18, 2018, at 8:24, John Beales wrote: > > I have an issue in Safari when a floated image is immediately followed by a > non-floated , and that has a drop-cap using the -webkit-initial-letter > CSS declaration. The drop-cap pushes the rest of the line of text to the > right, but it

Re: [css-d] Get around this Safari bug that pushes text outside of its box?

2018-03-17 Thread John Beales
I forgot to mention why I wasn’t doing that ;) In real life, the top block is an image in a blog post coming from a CMS, so it can be any width. It’s Flores right, and if the image is narrow, or the screen is wide, the is beside the image. I’ve been trying to figure out a better way to lay thing

Re: [css-d] Get around this Safari bug that pushes text outside of its box?

2018-03-17 Thread Tom Livingston
Just trying to follow this. Sorry if I’m not. Would clear:right/left/both on the help? -- Tom Livingston | Senior Front End Developer | Media Logic | ph: 518.456.3015x231 | fx: 518.456.4279 | medialogic.com #663399 __ css-di

Re: [css-d] Get around this Safari bug that pushes text outside of its box?

2018-03-17 Thread John Beales
It would, but then the will be below the image when there’s space beside the image. In this case the float is used as they were originally intended - to let content slide up beside the block, if possible - not just to put the first block over to the right. On Sat, Mar 17, 2018 at 9:24 PM Tom Livi

Re: [css-d] Get around this Safari bug that pushes text outside of its box?

2018-03-17 Thread Philippe Wittenbergh
> On Mar 18, 2018, at 10:14, John Beales wrote: > > I forgot to mention why I wasn’t doing that ;) > > In real life, the top block is an image in a blog post coming from a CMS, > so it can be any width. It’s Flores right, and if the image is narrow, or > the screen is wide, the is beside the

Re: [css-d] Get around this Safari bug that pushes text outside of its box?

2018-03-17 Thread Tom Livingston
A media query then? No clear when they fit side by side? On Sat, Mar 17, 2018 at 9:27 PM John Beales wrote: > It would, but then the will be below the image when there’s space > beside the image. > > In this case the float is used as they were originally intended - to let > content slide up be

Re: [css-d] Get around this Safari bug that pushes text outside of its box?

2018-03-17 Thread John Beales
The image is coming from the CMS and isn’t a set width, otherwise I that’s what I would be doing. Too bad I there’s no media query equivalent to “ if the image is more than half the width of the containing block” On Sat, Mar 17, 2018 at 11:38 PM Tom Livingston wrote: > A media query then? No cle

Re: [css-d] Get around this Safari bug that pushes text outside of its box?

2018-03-17 Thread Karl DeSaulniers
You might have better luck putting the first letter in a span inside the paragraph. No floats needed, just clear:left; and the paragraph contains it all. You can then add float left or right to your span if desired. Best, Karl DeSaulniers Design Drumm http://designdrumm.com > On Mar 17, 2018