View Full Version : Margin


Jared
11-03-2003, 05:22 AM
I need help with my margin code. Here is my code:

<STYLE type="text/css">
<!--
BODY {

scrollbar-face-color: 000000;
scrollbar-highlight-color: 000000;
scrollbar-3dlight-color: 0000FF;
scrollbar-darkshadow-color: 000000;
scrollbar-shadow-color: 000000;
scrollbar-arrow-color: FFFFFF;
scrollbar-track-color: 000033;


margin-top: 2%;
margin-bottom: 1;
margin-left: 15%;
margin-right: 1;
padding-top: 1;
padding-bottom: 1;
padding-left: 1;
padding-right: 1;
}

body { font-family: [font]; font-size: [font_size]pt; color: [text_color]; margin: 0px;}
form { margin: 2px;}
.head { font-family: [font]; font-size: [th_font_size]pt; color: [th_text_color]; background-color: [table_color_one];}
.one { font-family: [font]; font-size: [td_font_size]pt; color: [td_text_color]; background-color: [table_color_two];}
.two { font-family: [font]; font-size: [td_font_size]pt; color: [td_text_color]; background-color: [table_color_three];}
.onesmall { font-family: [font]; font-size: [small_font_size]pt; color: [td_text_color]; background-color: [table_color_two];}
.twosmall { font-family: [font]; font-size: [small_font_size]pt; color: [td_text_color]; background-color: [table_color_three];}
th { font-weight: bold; font-family: [font]; font-size: [font_size]pt; color: [text_color];}
select { font-size: [small_font_size]pt;}
td { font-family: [font]; font-size: [font_size]pt; color: [text_color];}
select { font-size: [small_font_size]pt;}
h1 { font-size: [h1_font_size]pt; font-weight: normal; margin-top: 2px; margin-bottom: 2px;}
h2 { font-size: [h2_font_size]pt; font-weight: normal; margin-top: 2px; margin-bottom: 2px;}
h3 { font-size: [h3_font_size]pt; font-weight: normal; margin-top: 2px; margin-bottom: 2px;}
small { font-size: [small_font_size]pt; }
A:link, A:visited { color: [link_color]; text-decoration: none;}
A:active, A:hover { color: [active_link_color]; text-decoration: none;}
.visit:visited { color: [visited_link_color]; text-decoration: none;}
</style>

Yes, its on a php site.

pb&j
11-03-2003, 07:25 AM
you have to specify a measurement type.

example...

1px

having just 1 is not enough information for the browser to work properly.

also, please explain exactly the problem you are having. thanks.

Jared
11-04-2003, 06:13 AM
Ok, I used the advice you gave me, and the page still won't scoot to the right!

ya, thats the problem.

pb&j
11-04-2003, 02:20 PM
can you post a link to your page in action? thanks.

Jared
11-06-2003, 02:42 AM
Chaos Realm (http://avidgamers.com/chrm)

Login using guest for pass and name.

pb&j
11-06-2003, 04:13 AM
you have a second BODY css specified which is cancelling out your first margin settings...

body { font-family: Verdana, Helvetica, Arial; font-size: 10pt; color: #FFFFFF; margin: 0px;}

Jared
11-08-2003, 12:20 AM
Thank you. It is working now.