Bug fix & html tidy

fixes bug #1236995 which necessitates CSS changes. Also restructure
module
Family navigator CSS - RTL not mirroring LTR
Family navigator submenus overlap page margins and break layout, especially on RTL