You are here: Re: CSS simple question? « HTML « IT news, forums, messages
Re: CSS simple question?

Posted by dorayme on 11/21/07 21:17

In article
<XRY0j.126749$kj1.59112@bgtnsc04-news.ops.worldnet.att.net>,
"Beauregard T. Shagnasty" <a.nony.mous@example.invalid> wrote:

> Travis Newbury wrote:
>
> > <celof...@gmail.com> wrote:
> >> Using CSS I want to center a DIV on the page and always keep it 3px
> >> from the top. Seems simple but I cannot find a cross-browser
> >> solution to this problem. I can get to work in IE or FF but not both
> >> w/o relaxing the 3px from the top constraint. Can someone offer a
> >> solution to this problem?
> >
> > With out a URL to see what you are doing I will just have to guess
> > what you code looks like. So I say you are missing a ":" in the CSS.
> >
> > Any one else want to take a guess?
>
> Three pixels, eh?
> http://www.positioniseverything.net/explorer/threepxtest.html ?
>
> But as you say, Travis, without a URL to the page, everything is a
> guess.

I'll bite. If it is a vertical margin, I would say to make sure
you zero margins and paddings, up to but not necessarily as
drastic as

* {margin: 0; padding:0;}

and then set explicit margins and that way you will increase your
chances of browsers behaving similarly.

--
dorayme

 

Navigation:

[Reply to this 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

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