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

Recommended Answers

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.

Be a part of the DaniWeb community

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