This is a discussion on "just want to center this" within the Web Page Design section. This forum, and the thread "just want to center this are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
just want to center this
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
I'm just a newbie in CSS.
In this site. http://icant.co.uk/articles/flexible-css-menu/index.html I just want to center the navigation (Start/Images,The HTML,The CSS,etc.). How do I do it?? pls pls pls help.. tnx in advance!!!! |
|
|
|
|||
|
Re: just want to center this
text-align: center; |
|
|||
|
Re: just want to center this
tnx so much for the help..
but the navigation bars still won't go to the center.. all the text goes to the center because of the ~text-align: center;~ i'm still working on this.. |
|
|||
|
Re: just want to center this
text-align: center; I'm kind of a newbie at CSS too.. but I'm trying! I'm sure once the regular CSS guru's get back from Christmas, they'll have the answer. |
|
|||
|
Re: just want to center this
tnx again...
i tried it. but nothing changed.. |
|
|||
|
Re: just want to center this
If you want to centre the navigation, then you need to centre the containing element, in this case the <ul> containing the navigation list.
You could attempt this either by applying margin: 0, auto to the ul itself or by text-align: center on the ul's parent element. Whichever best suits your design. Is this site you are producing meant to be for public consumption or is it just one you are using to educate yourself? If it's meant to be for public enlightenment, then I think you need to develop your own skill set somewhat before producing such a site. |
|
|||
|
Re: just want to center this
|
|
|||
|
Re: just want to center this
tnx so much for the help.. I'll try it now..
well I'm making a site, it is a project in school. No one can teach me how to use CSS there, so I'm just learning on my own. tnx again!!! |
|
||||
|
Re: just want to center this
the UL won't center if he is using floats for the li's.
BTW you could do those tabs with 2 images and they don't needto be 3000px wide and you won't need js for IE. 1 corner on the li, the right corner/background on the li a. The tabs will expand/contract etc etc.. Read this if you want a good example: http://www.alistapart.com/articles/slidingdoors/
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
![]() |
| Tags |
| center |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Div bg images..will not center? | jahphill | Web Page Design | 5 | Jun 2nd, 2008 09:03 |
| how can i center this? | djcritch | Web Page Design | 6 | Feb 25th, 2008 07:06 |
| center | alexgeek | Web Page Design | 1 | Aug 2nd, 2007 03:30 |
| Why Cant i center | Innes | Web Page Design | 7 | Jun 20th, 2007 20:37 |
| Center a Swf Help?? | nutbolt | Web Page Design | 20 | Apr 9th, 2007 10:21 |