How to center align the label and the textbox in HTML horizontally in webpage

Steps to align textbox and label Step 1: Center a div tag using margin as `0 auto`. Step 2: Align the label to right and make it float to left. Step 3: Align the textbox to left and make it float to right. Step 4: Make both label and textbox to inline-block. HTML  & CSS Live demo […]

Ruby Tutorial

How to add custom fonts to the Rails Application

Steps to add custom fonts to rails 1. Search and Download your prefered fonts from any website. I prefer google fonts. 2. Move the download files to your rails application’s vendor folder. i.e vendor/assets/fonts 3. Add following configuration to fileconfig/application.rb. config.assets.paths << Rails.root.join(‘vendor’, ‘assets’, ‘fonts’) config.assets.precompile << /\.(?:svg|eot|woff|ttf)$/ 4. Link all your fonts and font types […]