"Ian Hickson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Sun, 3 Jun 2001, StOo wrote: > > > > the problem is Netscape seems to be adding tons of padding (or something) to > > tables, seemingly from absolutely nowhere.. check the following page for > > example: > > > > http://www.sineadandjohn.com/main.asp > > > > the page renders "correctly" or, more accurately "as i would like and expect > > it to" in IE 5.5 and Oprah.. however, NS 6 takes all my tables and adds > > *loads* of padding, which makes it look very bloated and strange.. > > That's because the paragraph in the table is being given margins. Add the > folowing to your stylesheet to fix it: > > td p { margin: 0; } thanks for your speedy reply.. i really do appreciate it. unfortunately, that change, although it kinda fixed my problem, knocked all my paragraphs within <td> together (i.e. no space between *any* table paragraphs) and made the site look very messy (it had this effect in all browsers). i've reverted to the previous stylesheet until i can find a way to fix it. i'll prolly end up having to apply a 0 margin to specific tables/cells instead of across the site. *sigh* > > also, more specifically.. on that page i linked to above there's a box for > > logging into a web-based e-mail service.. in IE it's centred but in NS and > > Oprah it's left-aligned.. i'm assuming this is my mistake so can anyone tell > > me why this is the case and what i can do to fix it without breaking > > standards? > > "text-align: center" means "align text to the center". What you want to do > is tell it to align the _block_ to the center. Replace the "text-align: > center" part of your rule for ".center" and replace it with "margin: 0 > auto". That should center it in any standard compliant browser. > > HTH, > -- > Ian Hickson )\ _. - ._.) fL > Netscape, Standards Compliance QA /. `- ' ( `--' > +1 650 937 6593 `- , ) - > ) \ > irc.mozilla.org:Hixie _________________________ (.' \) (.' -' __________ hmm.. ok, can you explain to me why "margin: 0 auto" *will* centralise a table if the modified "center" class is called within the <table> tag but it *won't* centralise a paragraph with an image in it if the "center" class is called within the <p> tag or the <img> tag? what elements does "margin: 0 auto" work with and what is a suitable compliant alternative to use to center this image? jeez, sorry about all the n00b questions.. feel free to say "look it up yourself!" :) thanks in advance! stoo.. (one step closer to standards compliance :)
