jquery - Split div into pieces using the text -
i working on site. , have menu. have problem put information on right way on screen.
i have navigation wrapper width: 970px. in wrapper have 4 different zone's
- navigation
- language switcher
- style switcher
- search box
i can give 4 last items fixed width , float right. can give navigation fixed width.
but have problem. in navigation div. have structure of every menu.
<ul id="mainmenu"> <li class="level1"> <ul> ... subitems ... </ul> <a>item 1</a> </li> <li class="level1"> <ul> ... subitems ... </ul> <a>item2 longer</a> </li> </ul> on following screen see mean. first 4 items navigation.
there need split, menu items on width over. see, it's split in 4 pieces. each li have border. , text should in middle of each li. how can devide depending on text use.
i have solved problem.
i used padding properties. because know items come in menu. normaly don't change. way. should better dynamic things. it's solved.
Comments
Post a Comment