Customizing your project theme using Themeroller

Theme customization using Themeroller

If you are trying to customize the look of your theme, we can easily do that with the themeroller.
URL: https://themeroller.jquerymobile.com/
theme-roller

Left side shows the Theme setting, where we can customize and also see the properties added to the theme components.

We also see different swatches like A, B, C and their corresponding theme settings below. We also have + (Add icon) after the last swatch, which allows us to add more swatch to our theme. Click any of the swatch tab, and then you can delete/edit or duplicate options for the swatch.

The right side has the color palette, which can be used to customize our theme look and mid section shows the them.

We can drag and drop the color from the color palette to the various section of the swatch. Once we are done with the changes, we can download the zipped file.
Attached an image below..
theme-customized

We also get one instruction dialog on how to add the customized theme to our project.
theme-download

That’s all about creating your custom theme, Cheers !!

Adding theme to your project using jQueryMobile

jquerymobile-post

jQueryMobile comes with two standard theme options ie. a and b.

Adding theme to your project is really simple. You just need to add the data-theme attribute and assign a value of a or b to it. It can be applied to your entire page or we can also apply different theme to different sections like header, buttons, content etc.

<div data-role="page" data-theme="a">
<div data-role="header" data-theme="b">
<h1>welcome to our blog</h1>
<button data-theme="c">Know more</button>
</div>
</div>

We can even customize the theme as per our design requirement, that’s what is coming up next…cheers!!

jQueryMobile- What is it?

jquery-mobile-whats-it

What is it?
jQuery Mobile is a touch-optimized HTML5 based web framework designed to make responsive web sites and apps that are accessible on all smartphones, tablets and desktop devices.

It is basically a UI Framework which consists of set of touch-friendly UI widgets and an AJAX-powered navigation system to support smooth animated page transitions.

6 Best online responsive design testing tools

Responsive design become very popular now. I have added some of the most popular online simulators, through this you can check how your site working in different screens.

blog-head

1- Responsive Design Simulator

The responsive design simulator serves one purpose: to help designers, and audiences, visualize their responsive sites on popular devices. Simply type in the URL for your  site and view the scrollable simulations below. Keep in mind, this is not a replacement for actual mobile testing as the mobile browsers can render CSS and HTML  uniquely.
http://responsivedesignsimulator.com/

pic-1

2- Responsinator
Responsinator helps website makers quickly get an indication of how their responsive site will look on the most popular devices. It does not precisely replicate how it  will look, for accurate testing always test on the real devices.
http://www.responsinator.com/
pic-2

3- Studiopress is anothor usefull responsive silumator
http://www.studiopress.com/responsive/
pic-3

4- Cybercrab provides obest responsive site tester. Easy screen resolution tester.
http://cybercrab.com/screencheck/
pic4

5- Online tools for creative people. Test your website on any screen size including desktops, tablets .

Screenfly


pic5

6- PhotoFluid
ProtoFluid simplifies the development of fluid layouts, adaptive CSS and responsive design. It builds precise, dynamic viewports in which to test your work. This allows you to quickly effect changes and demonstrate benefits to interested parties.
http://app.protofluid.com/
pic6

 

 

What the font is this huh..?

How often do you find yourself struggling to figure out the font that’s been used in an image?

fonts

 

Often we come across images, like say logos, banners and visuals where we need to know the font that’s been used in the design. It’s not always possible to pick one and say “Yes, this is it!!” unless you are you a typography or a design expert.

So, here are a few online resource links which will help you identify the font from an image… WhatTheFont, FontEdge, WhatFontis etc.

Here’s another real good resource to identify the font not only from an image, but various other options…http://www.findafont.com/

Cheers..see you next time…!!

Best practise for writing CSS

1) Use reset css file

What is a reset css and why do i need to add ?

A CSS Reset is a short, often compressed (minified) set of CSS rules that resets the styling of all HTML elements to a consistent baseline.

Every browser has its own style sheet. For example most of the browsers make links blue and visited links purple, gives extra amount of padding and border. And form fields and buttons are looks different in every browser.

Reset css file can force every browser to have all its styles reset to null and will avoid cross browser differences as much as possible.

2) Use Structural naming conventions

.blue-link {color:blue;}

Above class is a presentational naming convention, which don’t help us to describe about element. What if instead of .blue-text, if we use .info-link

The practical reason for doing this is that it keeps your HTML markup accurate even if – say – you change the style of the .blue-link class to green or brown.

Of course You can always do a batch find-and-replace if you have a static site, but why rely on that when you can avoid it in the first place with a little

forethought. It also keeps your code semantic. What happens if your client suggests red color

.blue-link {color:red;}

Here your blue-link element renders as red and which is irritating. If you added class name as .info-link, then it wouldn’t matter if it’s red,green or blue.

In a survey of websites of some web professionals, Andy Clarke lists the naming convention used for the structure of these sites, check it out here.

3) Use hyphens instead of underscores

Older browsers like to get glitchy with underscores in CSS, or don’t support them at all. For better backward compatibility, get into the habit of using hyphens instead.

4) Indent your css rules

.classname {
background: #FFF;
border: 0;
color: #252525;
float: left;
margin: 0;
padding: 0;
}

you can write your code like this

.classname {

background: #FFF;
border: 0;
color: #252525;
float: left;
margin: 0;
padding: 0;

}

4) Use proper comments

Keeping your stylesheets clean and easy to understand, comments are going to be a great way for you to keep things structured and clean.

/********** Youe code here **********/

4) One rule for one line and multiple rules for multiple lines.

Following the simple rule above, you can cut down on the clutter in your css files drastically. Below you will see the two different ways you can write your css code

out – some people swear by putting everything on a single line, but I tend to believe in the above mentioned rules: one rule = one line, while multiple rules =

multiple lines.

.classname { border: 0; }

.classname {
background: #FFF;
border: 0;
color: #252525;
float: left;
margin: 0;
padding: 0;
}

5) Always use shorthand code

This will allow you to speed up writing process, cut down on clutter in your stylesheets and will allow you to find things much easier.

.classname {
margin-left: 1px;
margin-right: 2px;
margin-bottom: 4px;
margin-top: 1px;
}

to

.classname { margin: 1px 2px 4px 1px; }

6) Validate your codes

Make use of W3C’s free CSS validator. If you’re stuck and your layout isn’t doing what you want it to do, the CSS validator will be a big help in pointing out errors.

Spot the difference: Online Comparison Tools

As a designer or a developer, we often come with a lot of rapid changes during design/development phase. It would be quite a monotonous task to manually keep track of all the changes we make. After all, we are coders, we love to refrain from manual tasks!

Thanks to the online tools available which works wonders to reduce the effort and optimize the files.

Difference Checker
Quick links to make your task easier….

1. http://www.diffchecker.com/
2. http://www.scootersoftware.com/
3. http://csscompare.codeplex.com/
4. http://prettydiff.com/
5. http://www.diffnow.com/

Go on..explore..there are many more…cheers…!!

IE7 issues with overflow property

Recenly i had faced some issue on ie7 related overflow style. which is coming fine in all major browsers except ie 7.

Design looks weird in ie7, here contents are not properly intending inside scroll bar. (see the images)

ie7-img

ie8

.scroll-data {
 width:100%;
 height:300px;
 overflow:scroll;
 overflow-x: hidden;
 margin-bottom:20px;
}

Solution:
I have added position as relative for above div and fixed the issue. The IE7 layout engine won’t enforce overflow without some sort of position rule.

.scroll-data {
 width:100%;
 height:300px;
 position:relative;
 overflow:scroll;
 overflow-x: hidden;
 margin-bottom:20px;
}

“Design” is..

Some great quotes about design…

1. “Design is a plan for arranging elements in such a way as best to accomplish a particular  purpose”—Charles Eames

2. “Good design is as little design as possible.” —Dieter Rams

3.  “Design is not just what it looks like and feels like. Design is how it works.”—Steve Jobs

4.  “The design is done when the problem goes away.”—Jason Fried

5. ” The only important thing about design is how it relates to people” – Victor Papanek

Get inspired for great designs..!!