Sebastian Starke Sebastian Starke - 1 year ago 151
CSS Question

CSS force new line

I have something like this:

<li>Post by <a>Author</a></li>

And I want to display the link in a new line, like this

Post by

How can I achieve this? Clear:left doesn't work.

Answer Source

Use the display property

    display: block;

This will make the link to display in new line

If you want to remove list styling, use

    list-style: none;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download