How to give margin both side in left or right and as well as up and down in asp.net?

Recommended Answers

You can use CSS:

body
{
    margin: 10px 10px 10px 10px; /* top left bottom right */
}
Jump to Post

All 4 Replies

You can use CSS:

body
{
    margin: 10px 10px 10px 10px; /* top left bottom right */
}

In asp.net, you can assign values to specific properties to style the controls, but the asp.net engine will convert all of it to HTML and CSS.

I'd also recommend using basic CSS as well. For margin, as pretaeas suggested..

 margin {top right bottom left}

how to create frame page in asp.net that show border around page.

Use the CSS border property.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.