Checkboxes moving on float:right

CrazyPrince

New Member
I've been having this issue for the past few days. I am attempting to move my checkboxes to the right side of the pane in my window. But, whenever I use float:right to move them they also move down about 20-30px, which means they are no longer properly lined up with their labels.Here is the code for the pane with the labels/images/checkboxes that I want to all be aligned:\[code\]<div id="leftPane" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region: 'left'"> <div id="sealDiv" style="padding-top:0px;vertical-align:middle;"><a href="http://google.com"><img src="http://stackoverflow.com/questions/15556751/images/seal.png" alt="countySeal" style="width:150px;height:150px; "/></a></div> <h3 style="vertical-align:middle;"><u> Live Layers </u></h3> <div id="layerLabels"> <img src="http://stackoverflow.com/questions/15556751/images/stateParkIcon.png" alt="stateParksIcon" style="height:20px; width:20px"/> <label>State Parks <input id="stateParks" class="lyrCB" data-dojo-type="dijit.form.CheckBox" onChange="stateChanged()"></label> <br/> <img src="http://stackoverflow.com/questions/15556751/images/countyParksIcon.png" alt="countyParksIcon" style="height:20px; width:20px;"/> <label>County Parks <input id="countyParks" class="lyrCB" data-dojo-type="dijit.form.CheckBox" onChange="countyChanged()"></label> <br/> <img src="http://stackoverflow.com/questions/15556751/images/countyOpenSpaceIcon.png" alt="countyOpenSpaceIcon" style="height:20px; width:20px"/> <label>County Open Spaces <input id="countyOpenSpace" class="lyrCB" data-dojo-type="dijit.form.CheckBox" onChange="countyOpenChanged()"></label> <br/> <img src="http://stackoverflow.com/questions/15556751/images/localParksIcon.png" alt="localParksIcon" style="height:20px; width:20px"/> <label>Local Parks <input id="localParks" class="lyrCB" data-dojo-type="dijit.form.CheckBox" onChange="localChanged()"></label> <br/> <img src="http://stackoverflow.com/questions/15556751/images/golfCourse.png" alt="imgGolf" style="height:20px; width:20px"/> <label>Golf Courses <input id="golfCourses" class="lyrCB" data-dojo-type="dijit.form.CheckBox" onChange="golfCoursesChanged()"></label> <br/> <img src="http://stackoverflow.com/questions/15556751/images/beach.png" alt="imgBeach" style="height:20px; width:20px"/> <label>Beaches <input id="beaches" class="lyrCB" data-dojo-type="dijit.form.CheckBox" onChange="beachesChanged()"></label> <br/> <img src="http://stackoverflow.com/questions/15556751/images/iceRink.png" alt="imgIce" style="height:20px; width:20px"/> <label>Ice Rinks <input id="iceRinks" class="lyrCB" data-dojo-type="dijit.form.CheckBox" onChange="iceRinksChanged()"></label> <br/> <img src="http://stackoverflow.com/questions/15556751/images/swimming.png" alt="imgSwim" style="height:20px; width:20px"/> <label>Indoor Pools <input id="indoorPools" class="lyrCB" data-dojo-type="dijit.form.CheckBox" onChange="indoorPoolsChanged()"></label> <br/> <img src="http://stackoverflow.com/questions/15556751/images/campgrounds.png" alt="imgCamp" style="height:20px; width:20px"/> <label>Campgrounds <input id="campgrounds" class="lyrCB" data-dojo-type="dijit.form.CheckBox" onChange="campgroundsChanged()"></label> <br/> <img src="http://stackoverflow.com/questions/15556751/images/boatLaunches.png" alt="imgBoat" style="height:20px; width:20px"/> <label>Boat Launches <input id="boatLaunches" class="lyrCB" data-dojo-type="dijit.form.CheckBox" onChange="boatLaunchesChanged()"></label> <br/> <img src="http://stackoverflow.com/questions/15556751/images/marinas.png" alt="imgMarinas" style="height:20px; width:20px"/> <label>Marinas <input id="marinas" class="lyrCB" data-dojo-type="dijit.form.CheckBox" onChange="marinasChanged()"></label> <br/> <img src="http://stackoverflow.com/questions/15556751/images/playgrounds.png" alt="imgPlaygronds" style="height:20px; width:20px"/> <label>Playgrounds <input id="playgrounds" class="lyrCB" data-dojo-type="dijit.form.CheckBox" onChange="playgroundsChanged()"></label> <br/> <img src="http://stackoverflow.com/questions/15556751/images/bikepath.png" alt="imgBike" style="height:20px; width:20px"/> <label>Bike Paths <input id="bikePaths" class="lyrCB" data-dojo-type="dijit.form.CheckBox" onChange="bikePathsChanged()"></label> <br/> <img src="http://stackoverflow.com/questions/15556751/images/boardwalksIcon.png" alt="boardwalkIcon" style="height:20px; width:20px"/> <label>Boardwalks <input id="boardwalks" class="lyrCB" data-dojo-type="dijit.form.CheckBox" onChange="boardwalksChanged()"></label> <br/> <img src="http://stackoverflow.com/questions/15556751/images/hikingIcon.png" alt="hikingIcon" style="height:20px; width:20px"/> <label>Hiking Trails <input id="hikingTrails" class="lyrCB" data-dojo-type="dijit.form.CheckBox" onChange="hikingTrailsChanged()"></label> <br/> <img src="http://stackoverflow.com/questions/15556751/images/crosswalksIcon.png" alt="crosswalksIcon" style="height:20px; width:20px"/> <label>Crosswalks <input id="crosswalks" class="lyrCB" data-dojo-type="dijit.form.CheckBox" onChange="crosswalksChanged()"></label> <br/> <img src="http://stackoverflow.com/questions/15556751/images/sidewalksIcon.png" alt="sidewalkIcon" style="height:20px; width:20px;"/> <label>Sidewalks <input id="sidewalks" class="lyrCB" data-dojo-type="dijit.form.CheckBox" onChange="sidewalksChanged()"></label> </div> </div>\[/code\]Is there a "quick fix" to this, either CSS or Javasript OR have I created the pane in such a way that it needs to be redone to work properly?Thanks!
 
Back
Top