Grouping inside the dropdown list is normally misunderstood by developers for a long time.
The required outcome is shown below:
To get an output like this on a dropdown, it is not good to add a new item in the dropdown and then add validations for not selecting that option.
The solution to this problem is failry simple and lies in basic HTML:
Use the “optgroup” property provided by HTML itself for such groupings.
With div design catching up, we end up having issues with the stretching div to the max height. Most of the time this is noticed in the footer section, which has to always stretch to the edge of the browser scroll.
I came across of a browser compatible solution to this problem and thought of sharing it here.
Check the footer section in the image below:
The red line on the left give away the clue. That particular div is responsible for pushing the Footer down.
I am attaching the HTML here:
width: 2px; /* 1px would be enough this is for display only */
font-size: 1px; /* to make sure width is not overridden */
background-color: red; /* visual effect only */
width: 99%; /* to suit but leave room for spacer */
border: 1px solid blue;
border-top: 1px solid green;
</div><!– content –>
</div><!– contentwrap –>
Hope this helps!!
Recently one of my clients came up with a wonderful spec that really held me speechless. Each and every minute details were so crisp and clear that both the developers and testers had to do graveyard shifts. One of them was the Pixel level testing that was requested. I am sharing some of my thoughts on that there.
Tools that i would recommend:
1. Browser Developer Toolbars (IE Developer Toolbar; FireBug; Web Developer Toolbar for Safari, Chrome, Opera; Firebug for Chrome…)
2. JRuler [Download here]
3. CoolRuler [Download here]
4. MeasureIt [Download here]
As a developer, you should make use of the Developer Toolbar, especially the “Layout” section. Most of them come with inbuild rulers and color pickers as well. There are tons of other rulers and add-ons and extensions available in different browsers. Feel free to check them as well. But none of them were upto the mark as my CoolRuler. I have been using that for almost 3 years now… its pretty cool too… 🙂
Some simple login page designs, i was trying out last night:
Design 1: [Wordpress Inspired]
You can download the source PSD here: LoginPageDesign [Rename the .pdf to .zip]
Feel free to redesign them…. 🙂
One of the widely used and personally, i too recommend this one. the Cloud Carousel. Thought of attaching a sample here. Try it out. Its pretty simple and effective.
The main site: Professor Cloud
You can download the source code here: 3d Carousel [Please rename the .pdf to .zip… WordPress complications.. :P]
Wrapping text through CSS is quite a necessary evil when your Analyst come up with jargons that stretches 15-20 charactors… 😉
So here’s the deal. If you need to wrap text through CSS, you can use the CSS selector defined below:
Wrap words through CSS
/* In CSS */
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
white-space: pre-wrap; /* css-3 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
/* In HTML */
<td class=”wrapword”> … </td>
Hope this helps!