?
Solved

Page Offset between HTML page and ASP.Net page

Posted on 2009-02-12
4
Medium Priority
?
469 Views
Last Modified: 2012-05-06
Hi Experts,

I have a series of HTMLpages with a menu bar across the top.
All the web pages had the menu bar in the same place.

I converted one of the pages to ASP.Net and while it is the same size, it is offset to the right by about 10 pixels compared to HTML pages.

I assume that this is due to the <Form> tag reuired by an ASP.Net page?

Is there a easy way round this?

Alternatively I could convert the other pages to ASP.Net

Regards

Andy
0
Comment
Question by:AndyCollinson
  • 2
  • 2
4 Comments
 
LVL 29

Expert Comment

by:David H.H.Lee
ID: 23620727
Hi AndyCollinson,
Perhaps you can set the offset margin property inside <body> tag.
<body leftMargin="0" topMargin="0" marginwidth="0" marginheight="0">
0
 

Author Comment

by:AndyCollinson
ID: 23621113
Do you know the number of pixels that an ASP.Net <Form> tag inserts? Then I would know how many pixels to put as the offset into the HTML pages?

Alternatively, Is there an ASP.Net way of stopping this offset? Is it the <form> tag anyway?

As I said the other option is to change the other pages into ASP.Net - which would be just as easy...
0
 
LVL 29

Accepted Solution

by:
David H.H.Lee earned 1500 total points
ID: 23630261
Hi AndyCollinson,
I'm not sure about the exact pixels that inserted in <form> tag. Perhaps you can use "JR Screen Ruler" to measure the design adjustment. Hope it helps.
http://www.download3k.com/Install-JR-Screen-Ruler.html
0
 

Author Closing Comment

by:AndyCollinson
ID: 31545973
Thanks xcom.
It was me being stupid!
There was an entry in the style section of the page overiding the external style sheet of the other pages.
Anyway problem solved.
Thanks anyway
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Question has a verified solution.

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

New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.
Suggested Courses
Course of the Month15 days, 2 hours left to enroll

840 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