?
Solved

ASP.NET - <body topmargin="0px;"... Doesn't work with Firefox

Posted on 2011-04-26
3
Medium Priority
?
542 Views
Last Modified: 2012-05-11
Hi Experts,

In my default.aspx page, I have the following wihich doesn't work with Firefox, works only with IE:

<body topmargin="0px;" bottommargin="0px;" leftmargin="0px;" rightmargin="0px;">
 
What do I use to ensure that it works across all browsers?
0
Comment
Question by:feesu
  • 2
3 Comments
 
LVL 17

Expert Comment

by:Carlos Villegas
ID: 35471395
This:
<body style="margin: 0px;">
0
 

Author Comment

by:feesu
ID: 35473165
This works across all browsers?
0
 
LVL 17

Accepted Solution

by:
Carlos Villegas earned 2000 total points
ID: 35474642
Yes, it is a standard level 1 cascading style sheet attribute, and I can guarantee that all browser will honor it.

Reference:
http://www.w3.org/TR/CSS1/#margin
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question