html - why print screen takes default value -
I need to print the value of the date in millimeters, while I print the default head value on the screen but I can do padding and Set margin top too to value 0 So the top value is different than I absolutely need. IE, 12.7mm from the top will be printed on 31/7/14.
& lt; Html & gt; & Lt; Body & gt; & Lt; Div style = "margin: 0 mm; padding: 0 mm;" & Gt; & Lt; Table & gt; & Lt; Tbody & gt; & Lt; TR & gt; & Lt; Td style = "padding-top: 12mm;" & Gt; 31/3/14 & lt; / Td> & Lt; / TR & gt; & Lt; / Tbody & gt; & Lt; / Table & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;
Leaves default padding for the body and table elements of the code you give ; Throwing Your Space There is no need for table elements. Using "*" in the CSS matches all the elements to remove margins and padding.
& lt; Html & gt; For this, a square can be used to set up from 12 to 12 meters. & Lt; Style & gt; * {Margin: 0; Padding: 0; } .top12mm {padding-top: 12mm; } & Lt; / Style & gt; & Lt; Body & gt; & Lt; Div class = "top 12 mm" & gt; 31/3/14 & lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;
Comments
Post a Comment