You are here: Re: Move Table to Extreme Top of Page « HTML « IT news, forums, messages
Re: Move Table to Extreme Top of Page

Posted by Beauregard T. Shagnasty on 12/20/05 18:51

Tha RagMan wrote:

> On Tue, 20 Dec 2005 14:40:19 GMT, "Beauregard T. Shagnasty"
> <a.nony.mous@example.invalid> wrote:
>
>>Tha RagMan wrote:
>>
>>> Up front let me once again admit to being far behind the learning
>>> curve and still using tables with Netscape Composer to handle my
>>> little web sites. I know that I should get up to speed with CSS but
>>> just haven't made it yet. My problem is when I create a page and add
>>> a table that I want at the extreme top of the page I always end up
>>> with a pretty good space at the top of the page that I seem not to be
>>> able to overcome. Take a look at one of my sights and you can see the
>>> space I am talking about at the top of the page.
>>> http://www.BRPPISAFETY.COM What can I do to move my table to the
>>> extreme top of page in place of this default space I always get?
>>
>>Add this in the <head> section:
>>
>><style type="text/css">
>>body,table { margin: 0; padding: 0; }
>></style>
>>
>>and remove that errant &nbsp; between the <body> and the <table>.
>
> Beauregard T. Shagnasty;
> You are my absolute HERO for the day! Your suggestion worked perfectly
> and solved my space problem. Many Many thanks for taking the time to
> offer up the solution.
> Happy Holidays and thanks again for the helping hand.
> Tha RagMan

Oh, but wait!

I just had another look at your page. Bad boy, no donut. You have:

body,table { margin: 0; padding: 4; }

4 what? Donuts? Automobiles? [Hobnobs?]

You said you wanted to remove all the space above the table, so that
would be zero. Anything other than zero requires units. 4px ... 4em ...
and "padding: 4px;" will add it all 'round. If you only want it on the
sides, use: "padding-left: 4px; padding-right: 4px;"

(Yeah, I know the shorter way, but I don't want to confuse Ragman.)

See: http://htmldog.com/guides/cssbeginner/

--
-bts
-Warning: I brake for lawn deer

 

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

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