Topic: I set margins in a stylesheet and they are ignored? Pages that link to <a href="https://ozoneasylum.com/backlink?for=9552" title="Pages that link to Topic: I set margins in a stylesheet and they are ignored?" rel="nofollow" >Topic: I set margins in a stylesheet and they are ignored?\

 
Author Thread
Shifter
Bipolar (III) Inmate

From: Mesquite, TX 75149
Insane since: Aug 2000

IP logged posted posted 11-03-2002 19:30 Edit Quote

I cannot figure out why the margins I set for a cell in a stylesheet are ignored.

The page is here http://www.theatalans.com

The margin is supposed to be in the content cell where the text is..the cell is set to class MyTD2 and in the stylesheet i have margin-left:10px set but it ignores that..Im guess it has something to do with my whole table or something..but I am not sure :\

also if I set the style for the margins in the Cell tag it messes the tables all up and makes them overlap the others.. >,<


[This message has been edited by Shifter (edited 11-03-2002).]

HZR
Bipolar (III) Inmate

From: Cold Sweden
Insane since: Jul 2002

IP logged posted posted 11-03-2002 20:13 Edit Quote

You should use padding-left: 10px;

BTW, you can group your CSS like this:

.mytd {
padding-left: 10px;
margin: 2px;
etc
}

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

IP logged posted posted 11-03-2002 20:15 Edit Quote

Yup. Margins are for space *outside* the border of the element, while padding is for space *inside* it.

Shifter
Bipolar (III) Inmate

From: Mesquite, TX 75149
Insane since: Aug 2000

IP logged posted posted 11-03-2002 20:18 Edit Quote

OMG am I stupid. Thank you so much =D

I tried that before but I had an invisible spacer that was causing problems..just found it..lol.

[This message has been edited by Shifter (edited 11-03-2002).]

[This message has been edited by Shifter (edited 11-03-2002).]



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu