Generating digital certificate - Visual studio 2010 Ultimate

Last Reply 15 days ago By dharmendr

Posted 16 days ago

Hey guys,

We have a web application where we capture our students. And we need to create a page where they can generate their certificates but we need to do that using CSS. I know there are classes that already define the size of the A4 paper but the ones I found leave a margin below the certificate and we need the certificate image to cover the entire page. You know of a class that adjusts the layout of the page throughout without the margins.

The CSS class I'm using is this:

body {
    background: rgb(204,204,204);
}
page[size="A4"] {
    background: white;
    width:21cm;
    height:29.7cm;
    display: block;
    margin:0auto;
    margin-bottom:0.5cm;
    box-shadow:000.5cm rgba(0,0,0,0.5);
}
@mediaprint {
    body, page[size="A4"] {
        margin:0;
        box-shadow:0;
    }
}

Grateful,

ilano

You are viewing reply posted by: dharmendr 15 days ago.
Posted 15 days ago