Reply to Re: How to properly center this menu

Your name:

Reply:


Posted by dorayme on 11/29/06 02:49

In article <96ydnW5l5NlVcPHYnZ2dnUVZ_vCdnZ2d@comcast.com>,
"Yogi_Bear_79" <nospam@spamsux.com> wrote:

> "dorayme" <doraymeRidThis@optusnet.com.au> wrote in message
> news:doraymeRidThis-CEC0CE.12441629112006@news-vip.optusnet.com.au...
> > In article <xYqdnTHE-dkNf_HYnZ2dnUVZ_vWdnZ2d@comcast.com>,
> > "Yogi_Bear_79" <nospam@spamsux.com> wrote:
> >
> >> http://314rcsspouses.homedns.org/hollywoodoil/index.shtml
> >
> > Still no go. Once it loaded as plain html and was struggling to
> > get the rest, probably - now that Jonathan mentions it - the css
> > sheet...
> >
> > Ah now it has loaded, phew, took it's time in Safari. In FF it
> > simply times out (must have a setting set somewhere, a reasonable
> > one!)
> >
> > What is the problem about centering, I have forgotten? The nav
> > list?
> >
> > <ul style="width:11em;margin:auto;"> etc might do it. Tweak the
> > em based on your longest text link. Move my example inline style
> > to the navlist id.
> >
> > I am sure you don't need all those div wrappers here? But maybe
> > you have your reasons. navcontainer and menu and ul?
> >
> > --
> > dorayme
>
> I tried <ul style="width:11em;margin:auto;"> like so:
>
> #navcontainer ul
> {
> background-color:#006699;
> color: White;
> float: left;
> font-family: arial, helvetica, sans-serif;
> font-size: 0.7em;
> width:11em;
> margin:auto;
> }
>
> It turned it into a vertical list instead.


Not on the basis of my suggestion alone. You are obviously doing
something elsewhere to make the list inline (which is not
default). You don't say whether this is good or bad for you. It
certainly looks more appropriate for the snippet of site I am
seeing.

OK, it is centred now, what more do you want?

I can't get into the complex stuff you have in the html and
scripts and everything. I cannot imagine why you are floating
header left and millions of other things like this? I can just
suggest here to be rid of the first left border in the inline
list as this is not needed for a separator between links.

If you do not want it in line then why have you got


#navcontainer ul li { display: inline; }

in your css?

Want some advice? Stop now! And start again with something you
can control. Remove all floats, all positioning altogether, and
overflows and every goddamn fancy pants thing you can think of.
Don't use .7 em, normal people are not teenagers.



> BTW, I have been able to get rid
> of at least one more set of div tags (thanks for the tip!)

--
dorayme

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация