jaipai — 2010-06-07T12:52:33-04:00 — #1
Hi, I'm trying to create a certain navigation for a site of mine however, I'm having trouble in creating it. I've tried various things however, it hasn't been working. Could anyone shed some light on how to do a navigation with some subtext which are both aligned as center? The following is what I'm trying to accomplish.
If anyone would help me out with this, it would be amazing!
Thank you in advance!
jaipai — 2010-06-07T13:38:17-04:00 — #2
I'm having trouble with the LI having the subtext. would it be just another il, and separate the tabs as a differnt UL? I'm really having trouble with the organization of this.
You've been really helpful so far thanks!
jaipai — 2010-06-07T13:47:43-04:00 — #3
I've finally figured it out! Thank you!
tommichi — 2010-06-07T13:23:50-04:00 — #4
If you are nesting your menu items inside LI elements, then you have to make the LI an inline-block and let it float left. This should solve you problem
jaipai — 2010-06-07T13:05:01-04:00 — #5
So I wouldn't be using the list method to get this done?
tommichi — 2010-06-07T13:11:14-04:00 — #6
You can if you want to. The point is that the container can be anything you like; a floated DIV, and inline-block SPAN, a LI item. All you need to remember is that if you set the text-align to center on the container element, then all children will be centered unless explicitely defined
jaipai — 2010-06-07T13:11:48-04:00 — #7
I tried to do that, it worked. However I'm having trouble to get the containers to be inline... one next to the other...
tommichi — 2010-06-07T13:02:07-04:00 — #8
Each section would have a container element. You should set text-align:center for this element. The container should contain to child elements, that would both be centered due to what was set at the parent level....