View Full Version : Sidebarissue

04-25-2012, 10:59 AM
Hi there,

I am formatting an epub with a sidebar at 30% of the page with the main body text wrapping around it. However, for one sidebar in particular, it is placed near the end of a subchapter. Depending on font size, the next subchapter may also wrap around the sidebar. Is there a way to prevent this next subchapter from wrapping around my sidebar? I cannot make it start on a new page because that is not what my client wants. But I'm a bit stuck. So you have some idea of code, I have

div element for the sidebar, floating right
div element for story text
p element that i want to wrap
p element that I DON'T want to wrap

04-25-2012, 11:21 AM
You might try P { clear: left }, legal values include left, right, both. I am showing CSS syntax.