Skip to main content

Posts

Difference between pixels and em When giving size in em & px.

PIXEL SIZE : By setting font size with pixel you can fully control over the font size. Example: h1 {font-size:60px} h2 {font-size:40px} p {font-size:16px} Above examples allows Chrome, Firefox, and Safari to resize the text, but not Internet Explorer. The text can be resized in all browsers using the zoom tool (however, this resizes the entire page, not just the text). .EM SIZE : To avoid the resizing problem in IE many  web designer  use em instead of pixel. And it is recommended by W3C. The default font size in browser is 16px. And 1 em is equal to current font size it means 1 em is equal 16px. Here is the formula to  calculate  pixel to em : Pixels /16 = em That means if font size is 60px it will be in em is 3.75em. With the em size you can adjust the font size in all browser. But there is problem in IE . The problem is when you resizing the text, it becomes larger than it should when made larger, and ...

Create contact using custom field in civicrm 4.0 (civicrm API)

Create contact using custom field in prifile when event registration. Create Contacts using API in civicrm 4.0 in drupal 7 on post process.  If the contact exists then it o/p that contacts id & if not exists then it create new contact & gives the o/p . function eventType_customPath_civicrm_postProcess( $formName, &$form ){     if( $formName == 'CRM_Event_Form_Registration_Confirm' ){         $participantContact = $form->getVar('_params');         $participantFirstNameId = array( 'custom_11', 'custom_15', 'custom_19' );   /* add custom first name Id */         $participantLastNameId = array( 'custom_12', 'custom_16', 'custom_20' );    /* add custom last name Id */         $participantEmailId = array( 'custom_13', 'custom_17', 'custom_21' );       /* add custom email Id */         $participant = arra...

Allow Your Own Inner Light to Guide You

Allow Your Own Inner Light to Guide You There comes a time when you must stand alone. You must feel confident enough within yourself to follow your own dreams. You must be willing to make sacrifices. You must be capable of changing and rearranging your priorities so that your final goal can be achieved. Sometimes, familiarity and comfort need to be challenged.   There are times when you must take a few extra chances and create your own realities. Be strong enough to at least try to make your life better. Be confident enough that you won't settle for a compromise just to get by. Appreciate yourself by allowing yourself the opportunities to grow, develop, and find your true sense of purpose in this life. Don't stand in someone else's shadow when it's your sunlight that should lead the way.     Be a strong person in life .