Friday, December 8, 2017

Space between lable and checkbox

When you create a CheckBox or CheckBoxList control, there will be no space or hardly any between label and input control like this..

 

to increase the space between label and input control use following stylesheet..

input[type="checkbox"]{margin-right: 5px;}

After using this stylesheet control will look like now..

  

After using this snippet it will alter spaces off all CheckBoxes and CheckBoxList control automatically.

Thursday, October 26, 2017

Update First N records is Sql Server table

For selecting first N records we simply has query..

SELECT TOP N * FROM TABLE1

but for updating first N records of table1 we have query like

UPDATE TOP(N) TABLE1
SET FIELD1 = VALUE1

Wednesday, May 31, 2017

Center the content inside div

.centerit {
  display: flex;
  justify-content: center;
}
 
<div class="centerit">
  I'm in center..
</div>