html - The div size did not count in the float right element -


i have content this

news event title                     11.11.2015 ----------------------------------------------- news event title 2345 news event title 2345                                       11.11.2015 ----------------------------------------------- news event title news event title news event ti tle                                  11.11.2015 

but turn out this

news event title                     11.11.2015 ----------------------------------------------- news event title 2345 news event title 2345 -----------------------------------------------                                       11.11.2015 news event title news event title news event ti tle                                  11.11.2015 

notice second title in actual result. because date float: right , not count div size.

how fix that? helping

the code like

<div style="border-bottom:1px dotted #000000;"> <p>news event title<span style="float:right;">11.11.2015</span></p> </div>  

update:

please have @ demo site, left bottom corner

update

overflow:hidden solve problem. lot

you can add overflow: hidden; on parent div.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -