Very nice. Should work well in Epub. I've never tried "avoid", but I see what you are trying to do. I also avoid (
) having the image on one page and the caption on the next. I solved the problem by incorporating the caption into the image.
Mobi does not recognize the CSS. Nor does it do tables well. I also avoid this by converting tables to images.
I like your thinking.
Charlie