[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

alignment problem on submit in asp.net

Posted on 2011-09-28
6
Medium Priority
?
203 Views
Last Modified: 2012-05-12
Please see the difference between following 2 images.
These are the screenshots of my webpage. (designed in asp.net)
As shown in the images, after clicking the Send button on the webpage changes the alignment completely. Everything gets shifted towards left.

I have used a .css file for sytling.

Could someone please suggest something?

 original look of a webpage


 changed look of a webpage on form submit
0
Comment
Question by:Tina_Bhole
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 15

Expert Comment

by:Jagadishwor Dulal
ID: 36781062
Post your css file can suggest you
0
 

Author Comment

by:Tina_Bhole
ID: 36788723
Hello jagadishdulal,

Thanks for your response
Please see the attachments
Site-Master.txt
CourseEnquiry.txt
css.txt
0
 
LVL 15

Expert Comment

by:Jagadishwor Dulal
ID: 36813243
Change your css of line no 219 to
 
.smallform9
{
    border:solid .1em #121468;
    margin:0 auto;
    width:90%;
    padding-bottom:2em;
    padding-top:1em;
    padding-left:0;
    text-align:left;
    margin-bottom:1em;
    margin-top:1em;
}

Open in new window

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Tina_Bhole
ID: 36906589
Hi jagadishdulal ,

Thanks for your response.
I changed margin: auto to margin: 0 auto; but it still didn't fix the alignment problem.
0
 

Accepted Solution

by:
Tina_Bhole earned 0 total points
ID: 36960273
Finally I found a solution and a cause as well.
The reason it was happening was..I used Response.Write instead of Page.ClientScript.RegisterStartupScript to flash alert messages using javascript which for some reason changed the alignment of the controls on my web page.
After I made this particular change. everything is working fine.
0
 

Author Closing Comment

by:Tina_Bhole
ID: 36978286
The reason it was happening was..I used Response.Write instead of Page.ClientScript.RegisterStartupScript to flash alert messages using javascript which for some reason changed the alignment of the controls on my web page.
After I made this particular change. everything is working fine.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

656 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