how to place check boxes

on the form http://www.nethealthinteractive.com/pqrs/ParticipantDetails.aspx

we have two check boxes that should align left in the right hand column.  I can get one to align but not both.  How can I do this?  Note that this is a asp.net page, so the checkbox code is generated by .net

Preferred Email Address *
(Please indicate which email address you'd         __  Participant Email Address
prefer us to use for contacting your office.)        __Administrator Email Address
d2foxAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SSupremeCommented:
The first solution which comes on the mind is to apply clear:left; to element, but unfortunately there is no border where it should stop. I modified html and added some style to it which can be replaced to style-sheet later if needed, so instead of <span> you need to have <div> like this one:
<div style="position: relative;width:500px;float:right;">
<input type="checkbox" id="ctl00_ContentPlaceHolder1_ContactParticipantByEmail" name="ctl00$ContentPlaceHolder1$ContactParticipantByEmail">
<label for="ctl00_ContentPlaceHolder1_ContactParticipantByEmail">Participant Email Address</label>
<input type="checkbox" id="ctl00_ContentPlaceHolder1_ContactAdministrationByEmail" name="ctl00$ContentPlaceHolder1$ContactAdministrationByEmail" style="clear:left;">
<label for="ctl00_ContentPlaceHolder1_ContactAdministrationByEmail">Administrator Email Address</label>
</div>

Open in new window

replace it and have a look at it.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
EyalCommented:
in Firefox it's looks good

not relevant to the answer but when I go directly to the page I get error:

Server Error in '/pqrs' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 


Line 18:         if (!IsPostBack)
Line 19:         {
Line 20:             HFURL.Value = Request.UrlReferrer.ToString();
Line 21: 
Line 22:             if (
 

Source File: c:\inetpub\nethealth\PQRS\ParticipantDetails.aspx.cs    Line: 20 

Stack Trace: 


[NullReferenceException: Object reference not set to an instance of an object.]
   ParticipantDetails.Page_Load(Object sender, EventArgs e) in c:\inetpub\nethealth\PQRS\ParticipantDetails.aspx.cs:20
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4211; ASP.NET Version:2.0.50727.4209 

Open in new window

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.