I’m not quite sure what you want, since you didn’t explain what you wanted to do with the "actions" div, but if you wanted the "actions" div to float next to the "Test" div, I just tried to make a separate the .floatr class, or it will also work if you just apply the style directly to the div.
.floatr { float: right; }
with the .floatr class, apply this to the div action:
<div class="actions floatr"></div>
I don’t know why, but it seems to me that the "actions" of the div ignore the float parameter in the class that you set this way. I personally prefer to apply several classes to the div, which allows me to reuse this class over other divs for which I want this effect, but I heard that some browsers will ignore any classes declared after the first. Well, I have not yet encountered this problem with major browsers ...
Oh wait.
I looked at the code again and I think you had a problem with how you set your classes. Your "action" div was not in action, try adding a comma in CSS:
#journal .title_bar, .actions { float: right; }
I suppose that sometimes, in order to understand something, you have to apply the effect directly, to make sure that it can behave as you expect, and perhaps draw it like some kind of syntax error if it works. heh.
Insanekitten
source share