Closed Thread Icon

Topic awaiting preservation: css, default 10 pixel boder for netscape/opera Pages that link to <a href="https://ozoneasylum.com/backlink?for=8064" title="Pages that link to Topic awaiting preservation: css, default 10 pixel boder for netscape/opera" rel="nofollow" >Topic awaiting preservation: css, default 10 pixel boder for netscape/opera\

 
Author Thread
jive
Paranoid (IV) Inmate

From: Greenville, SC, USA
Insane since: Jan 2002

posted posted 02-02-2002 22:20

hey for some reason I'm having problems getting rid of the default 10 (or 5) pixel space on html tables using css. This is what I have in my css:

BODY {background: black; font-family: times new roman; color: silver;
margin-left: 0; margin-right: 0; margin-top: 0; margin-height: 0;
margin-bottom:0; top-border-width: 0; }

its working in IE but not at all in navigator or opera. Is there code that I'm missing?

jive
Paranoid (IV) Inmate

From: Greenville, SC, USA
Insane since: Jan 2002

posted posted 02-02-2002 22:25

I've even used this in the body of the actual page:

leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"

any clues??

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 02-02-2002 22:29

jive, are you talking about the border on the page itself or the borders within tables?

jive
Paranoid (IV) Inmate

From: Greenville, SC, USA
Insane since: Jan 2002

posted posted 02-02-2002 22:51

on the page itself. the very top and the left has a default space of I think 5 or 10 pixels.....

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 02-02-2002 23:03

Did you try using nothing but body { margin: 0px; } ? That's how I'm doing it, and it works just fine ...

jive
Paranoid (IV) Inmate

From: Greenville, SC, USA
Insane since: Jan 2002

posted posted 02-02-2002 23:50

does it work for you in opera or navigator. Its working for me in ie. check out this page: lore. Try looking at it in all three browsers. The chain borders double over in netscape and opera because of this. Notice in opera and netscape the 10 pixel default borders on the top and left margins of the page.

Dracusis
Maniac (V) Inmate

From: Brisbane, Australia
Insane since: Apr 2001

posted posted 02-03-2002 00:06

I'm getting a broken link.

However, like everyone else, margin: 0px; works for me too.

If your using
leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
then you definatly shouldn''t be having a problem.

Maybe the elements that you have your content in have margins or padding values of their own. If it's a table you should set it's margins and padding to 0 as well.



Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 02-03-2002 01:32

jive,

You are confusing the margins on the page with margins within your tables. I took a look at your code and cleaned it up and got the chains to appear more or less intact for IE, OP, and NN. Take a look at what I did and see if it clears things up a bit: http://bugimus.com/gurus/jive/tables.html

(I hope you don't mind me saving some of your page locally but it was the only way for me to easily debug your code)

jive
Paranoid (IV) Inmate

From: Greenville, SC, USA
Insane since: Jan 2002

posted posted 02-03-2002 03:54

thanks, that helps. I was so busy looking at the margins that I wasn't thinking about the tables. Do you mind if I take Blank.gif?

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 02-03-2002 04:21

Not at all. I'm glad that made sense

jive
Paranoid (IV) Inmate

From: Greenville, SC, USA
Insane since: Jan 2002

posted posted 02-03-2002 07:17

ok one other prob. I want there to be a 5 pixle space inside the a actual table. (so that the words aren't hugging the chain. If I cellspace or pad by 5 it messes up the chains. How do I get the space between the words and chain (border) on the left margin?

jive
Paranoid (IV) Inmate

From: Greenville, SC, USA
Insane since: Jan 2002

posted posted 02-03-2002 07:26

never mind, figured it out. Bugimus thanks for the help. I ended up copying and pasting the source code. instead of having to retype everything. cool site by the way.

« BackwardsOnwards »

Show Forum Drop Down Menu