|
|
 |
December 26th, 2006, 04:47 AM
|
#1
|
|
New Member
Join Date: Dec 2006
Location: Philippines
Age: 22
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
just want to center this
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!!!! 
|
|
|
December 26th, 2006, 07:53 AM
|
#2
|
|
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,941
Thanks: 0
Thanked 0 Times in 0 Posts
|
Re: just want to center this
Code:
#boundary{
text-align:left;
font-size:.8em;
border:1px solid #999;
background:#fff;
padding:20px;
width:700px;
margin:0 auto;
try
text-align: center;
|
|
|
December 26th, 2006, 08:15 AM
|
#3
|
|
New Member
Join Date: Dec 2006
Location: Philippines
Age: 22
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
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.. 
|
|
|
December 26th, 2006, 09:40 AM
|
#4
|
|
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,941
Thanks: 0
Thanked 0 Times in 0 Posts
|
Re: just want to center this
Code:
#nav{
clear:both;
font-weight:bold;
color:#666;
margin-left:4px;
float:left;
list-style-type:none;
background:url(navshadow.gif) no-repeat 8px 100% #fff;
padding-bottom:21px;
}
try
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.
|
|
|
December 26th, 2006, 09:59 AM
|
#5
|
|
New Member
Join Date: Dec 2006
Location: Philippines
Age: 22
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: just want to center this
tnx again...
i tried it. but nothing changed..

|
|
|
December 27th, 2006, 08:15 AM
|
#6
|
|
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,307
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
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.
|
|
|
December 27th, 2006, 08:25 AM
|
#7
|
|
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,941
Thanks: 0
Thanked 0 Times in 0 Posts
|
Re: just want to center this
Code:
#nav{
clear:both;
font-weight:bold;
color:#666;
margin-left:4px;
float:left;
list-style-type:none;
background:url(navshadow.gif) no-repeat 8px 100% #fff;
padding-bottom:21px;
Isn't the margin-left: 4 px; where your problem lies? Wouldn't you want that to be margin: 0 auto; ? or delete that and text-align: center; ?
|
|
|
December 27th, 2006, 08:45 AM
|
#8
|
|
New Member
Join Date: Dec 2006
Location: Philippines
Age: 22
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
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!!! 
|
|
|
December 27th, 2006, 11:37 AM
|
#9
|
|
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,081
Thanks: 0
Thanked 37 Times in 37 Posts
Rep Altering Power: 0
|
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/
|
|
|
December 29th, 2006, 02:07 PM
|
#10
|
|
New Member
Join Date: Dec 2006
Location: Philippines
Age: 22
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: just want to center this
OoOh!! tnx to the link..
I'll read and study this one. 
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
Div bg images..will not center?
|
jahphill |
HTML, XHTML and CSS |
5 |
June 2nd, 2008 05:03 AM |
|
how can i center this?
|
djcritch |
HTML, XHTML and CSS |
6 |
February 25th, 2008 03:06 AM |
|
center
|
alexgeek |
HTML, XHTML and CSS |
1 |
August 1st, 2007 11:30 PM |
|
Why Cant i center
|
Innes |
HTML, XHTML and CSS |
7 |
June 20th, 2007 04:37 PM |
|
Center a Swf Help??
|
nutbolt |
HTML, XHTML and CSS |
20 |
April 9th, 2007 06:21 AM |
|