Showing posts with label CSS. Show all posts
Showing posts with label CSS. Show all posts

Monday, August 16, 2010

Setting Margin for the Rich TextBox like controls

Setting Margin for the Rich TextBox like controls


.P
{
  MARGIN: 0in 0in 0pt
 }


If the set the above  margin then the space between the line will be diplayed as normal in the Rich TextBox type of controls such as a div with attribute  contenteditable="true"  At this point the div is editable and if we press a enter key then there will be additional space that will be generated .To a void this situation we can use the above CSS class.

Disable Selection On Webpages

onselectstart="return false;" style="user-select:none;-moz-user-select:none;"

if we have given like this then we can block the selection on a webpage
basically this will not allow a copy paste.

onselectstart="return false - is basically for the IE

;-moz-user-select:none - is for mozilla

and

user-select:none is the W3 standards which should follow in all the browsers  :)