If you are creating a form and want to have only uppercase characters shown to the user, you can apply the style ‘
text-transform: uppercase‘ to the input field.
< input class="form-input" style="text-transform: uppercase;" name="Zip" type="text" placeholder="Zip Code" />
BEWARE: This will not save the form input as uppercase.
.toUpperCase() to the input string.
Other text-transform values can be found here.
Did you know that you can use Github Pages to host your websites live?
It’s free and easy to setup whether you are on Windows or Mac.
There are two different types of Github Pages, one for Users & Organizations, and one for Projects. Each User & Organization can only have ONE Github Page. With each Github Page, you can have unlimited Project Pages. Project Pages are located as a subpath to the User Page (http://username.github.io/projectpage). To get more information about the similarities and differences, click here.
To set up a User Page, you first will need to create a new repository called username.github.io (where username is your Github username). This will be the URL of your website.
Then follow the instructions located here: https://pages.github.com/
To read about setting up a custom domain, go here.
Adding a CNAME file to your repository (for custom domains), go here.
I’ve just completed the first part of Part VII of Rob Dey’s Codermanual course! He recommended some great resources for styling your website and improving site loading speed.
This is what my Rails app looks like so far, after completing the first part of Part VII:
If you want to add icons to your website, you can go to Font Awesome where there are tons of free pre-made icons. You can resize the icons, add them to a drop-down menu, and also add animations to the icons.
You can read their Getting Started page here to learn how to integrate it into your Rails app.
A great website for getting CSS codes for pre-made color gradients. The website has a beautiful layout, with easy navigation. Click on the gradient you fancy and check out the CSS code. Simply copy and paste into your project!
If you don’t want your Rails application to automatically load the asset pipeline feature, you can just type this when creating a new Rails app:
$ rails new appname --skip-sprockets
Read more here: http://guides.rubyonrails.org/asset_pipeline.html
Enter your website URL here to check how fast your site loads on both mobile and desktop. Google will recommend what improvements you should make as well as let you know what you are doing right.