|
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 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
[Back to original message]
|