How to Make a Page with No Margins in Opera

Opera is easy to access the Internet and absolutely secure, which has powerful extensions, covers the basics with tabbed browsing, mouse-over previews, a customizable search bar, advanced bookmarking tools, and simple integration with e-mail and chat clients.

scr-opera-browser

 

But during the process of making pages in Opera, you may have come across this kind of situation: You want to remove the margins of a page, and the following CSS code works fine with most browsers, and removes the borders just fine:
<style type=”text/css”>
body { margin: 0px;}
</style>

But it doesn’t work in Opera. So, the following code removes the margins for that browser, but there’s a problem:

<body marginheight=”0″ marginwidth=”0″>

With this code, the validation of the page in W3C fails. It says there’s no such thing as ‘margin height’ or ‘margin width’.

 

This doesn’t mean Opera browser isn’t good enough for you. It’s just a little problem. How to make a page with no margins in Opera, with no W3C errors? Here is the solution for you:

 

Add padding:0px as well

<style type=”text/css”>
body { margin: 0px; padding: 0px; }
</style>

 

Then your problem should be solved!