Reply to Re: Centering

Your name:

Reply:


Posted by dorayme on 04/09/07 04:56

In article
<AEiSh.19700$PL.9488@newsread4.news.pas.earthlink.net>,
"BootNic" <bootnic@bounce.earthlink.net> wrote:

> > dorayme <doraymeRidThis@optusnet.com.au> wrote:
> > news: doraymeRidThis-3F37C7.12262309042007@news-vip.optusnet.com.au
> [snip]
> > Righto, I have now incorporated Bootnic's js into the design
> > because it looked promising on Bootnic's url in Window IE. When I
> > adapted it to my designs, it played up a bit with scroll bars
> > mysteriously appearing at the bottom of the window but in
> > addition to chrome ones in Safari. So I deleted the bits to do
> > with overflow. I have no idea yet whether this has now mucked up
> > its big saving grace for me, ie, working in Windows IE. This I
> > have not tested. But it seems fine to me in all my Mac browsers.
> > Mac IE is unfazed and ignores the centering js code. That's ok,
> > at least it floats things right.
>
> Does not work in win IE 5 either, its the margin auto thing.
>
> If you're not using a border the it should be fine without the overflow,
> or you could change it to hidden to remove the scroll bars.
>
> > But, interestingly enough, at least for me, was that it did not
> > at all seem difficult to maintain or adapt. If you go to:
> >
> > http://tinyurl.com/2a434t
> >
> > you can see the efforts. The actual linked js has not been
> > changed from page to page (there are three pages to demonstrate
> > different format thumbnails and can be gotten to by the very
> > bottom link on the above url).
> >
> > I would appreciate it to know if these pages look problmatic in
> > IE on Windows 6 or 7. I can test on 6 later.
>
> You need to give #wrapper a border-width, can be 0, but it has to be
> set to a number in px to avoid an error and script failure. With out being
> set, IE sends Medium, which returns NaN and mucks up everything.
>
> alert(parseInt('Medium'))
>
> Give #wrapper a small padding, say 3px, without the padding at my
> full screen (1280X800) IE 7 gives a horizontal scroll bar and hides just a
> bit of it to the right.
>
> With them two items added to the css, it works fine on winxp sp2 IE 6,
> IE 7, FireFox, Opera and SeaMonkey.

OK, thanks, what about now that I have added:

#wrapper {border: 1px solid #fff; padding:3px;}

to the css? Can the border be simply border:0 or do "px" have to
be mentioned for these popular browsers?

--
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

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