• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 772
  • Last Modified:

ASP.NET Body Sylye Conversion Question (leftmargin)

Can someone tell me the best way to convert the body style to ASP.NET css supported style code?

<body style=leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0"

Is it better just put these in a css link or use margin-left, margin-top statements?  Can someone show we coding suggestions?   I am trying to convert some HTML to a aspx and getting css validation errors.  
0
Hojoformo
Asked:
Hojoformo
1 Solution
 
Bob LearnedCommented:
Here is an example of an inline CSS style block that you can use in the <HEAD> section to apply CSS styles to the body:

<STYLE TYPE="text/css" MEDIA=screen>
<!--
  BODY  { background: url(foo.gif) red; color: black }
  P EM  { background: yellow; color: black }
  .note { margin-left: 5em; margin-right: 5em }
-->
</STYLE>

Bob
0
 
Sam_JayanderCommented:
Here is the css,

<STYLE TYPE="text/css">
body
{
  margin-Left:0;
  margin-top:0;
  margin-right:0;
  margin-bottom:0;
}
</STYLE>

Regards,
--Sam
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now