Forum:Navbox imported from wikipedia not behaving correctly

I imported http://religion.wikia.com/wiki/Template:Pharaohs?oldid=204091

from http://en.wikipedia.org/wiki/Template:Pharaohs

and it was all messed up

so I imported http://en.wikipedia.org/w/index.php?title=MediaWiki:Common.css

to our sitewide css and that took care of everything except one thing.

The navbox should have a set width of 100% and all lines should break when they get too long but they dont.

The navbox just keeps getting bigger.

I've looked at the css and frankly I dont understand it at all.

The really strange thing here is that in the raw text of the template the lists are bulleted list.

An example of the html looks like this:

Cambyses II Darius I Xerxes Artaxerxes I

Yet it displays inline.

I dont understand it at all

Granpa (talk) 18:35, September 22, 2012 (UTC)