Reply to Re: Move Table to Extreme Top of Page

Your name:

Reply:


Posted by Beauregard T. Shagnasty on 12/20/05 21:48

Tha RagMan wrote:

> On Tue, 20 Dec 2005 16:51:29 GMT, "Beauregard T. Shagnasty"
> <a.nony.mous@example.invalid> wrote:
<snippage>
>>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.

Depends on the browser. Real conforming browsers have the option to
ignore any incorrect rules. Some others attempt to guess at what you
really meant.

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

This should work:

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

I just did that to your page, and it looks ok. 'Course I don't know why
you want to do this, or if that is eggzactly what you want.

How did I do it to your page? The Firefox Web Developer's Toolbar.
http://chrispederick.com/work/webdeveloper/
and while viewing your page, I typed Control+Shift+E
and .. my gosh .. I can play with your CSS! [1]

> Thanks again for your response and help.

Am I gonna be a HERO again? :-D

[1] Just in my own browser, of course.

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

[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

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