I'm working on a design with justified text-alignment. In order for it to work on the last row I use this hack:
p:after
{content: "";
display: inline-block;
width: 100%;}
It works for alignment, but the problem is that it adds an extra empty line at the end of each p-element. I have come up with the solution
p{
margin-bottom: -1em;
}
But this won't not make it possible to set a margin to the p element in pixels, wich I would like to. Is there any way to set p:after height to 0? I have tired line-height, negative margins and height, none seem to have any effect.