|
Posted by Tha RagMan on 12/20/05 21:16
On Tue, 20 Dec 2005 16:51:29 GMT, "Beauregard T. Shagnasty"
<a.nony.mous@example.invalid> wrote:
>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;"
Shag;
Thanks for the heads up. I saw the 0 and just took it I could play
with any digit. I experimented a bit and found that 4 did pretty much
what I had in mind. I went back and added the px but I can't see where
it made any difference. I actually was not overly concerned with the
sides as much as I was the space at the top which your fix has cured.
I do have one question if you have the time. I noticed when I alter
both the margin and/or the padding it also effects the space between
the two tables I have. Is there a way to keep these butted against
each other and still be able to control how much space is displayed at
the top? It's not really a big deal but would be nice if I had that
control.
Thanks again for your response and help.
WR
[Back to original message]
|