Wednesday, September 4, 2013

How To Add CSS Rules For iPad/iPhone With Orientation And Add CSS Hack For IE10

1. Add CSS Rules For iPad With Orientation
You can add special css rules for iPhone/iPad for your website in css.
See below 
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:portrait) { 
 /* Add your css rules/hack for iPhone/iPad portrait */ 
} 
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:landscape) { 
   /* Add your css rules/hack for iPhone/iPad landscape */ 
}

2. IE 10 CSS Hack
.ie10 .yourcss{
  /* Add your css hack for IE10 */
}

Add this script in head section of the web page, this append a class of ie10 to <html> tag.
<!--[if !IE]><!-->
        <script type="text/javascript">
                            if (/*@cc_on!@*/false) {
                                document.documentElement.className += ' ie10';
                            }  
        </script>
<!--<![endif]--> 

This hack(class) work with IE 10 because IE 10 put a class (class="ie10") to the HTML tag (<html>). We can easily add hack for IE 10 using this. You can find this in your web page contents in IE 10. 
eg. <html class="ie10" xmlns="http://www.w3.org/1999/xhtml">

Friday, August 16, 2013

Internet Explorer modern.IE

About Modern.IE
We can scan the web page including HTML, Javascript, CSS or web application for common coding issues. It caution to our practices such as incorrect or invalid doctypes, outdated versions of popular JavaScript libraries and incomplete of CSS.

Modern.IE Launch by Microsoft too help developers test their Web Applications for Legacy And Modern versions of IE. 

You can use it website scan for common coding issues, Get screenshots of your website across browsers and different-2 devices using BrowserStack  and more features you can use in this.

You can find more information and scan your web application here : Modern.IE




Tuesday, July 2, 2013

Windows(Azure) Style Sliding Popup (Message Strip)

Windows(Azure) Style Sliding Popup (Message Strip):

How to create windows style sliding popup using jquery & html. Sliding popup (Message strip) displays on click and any other event. You can also use with c# code (calling from code behind file c#) with passing message & icon type(OK, Warning, Error etc...).

1. HTML Code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="js/jquery-1.6.1.min.js" type="text/javascript"></script>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function ShowPopup(message, iconClass) {
            $(function () {
                $("#messagecontainer").html(message);
                $("#Righticon").addClass(iconClass);
                $("#message").slideDown(1000);
            });
        };
        function closeNotice() {
            $("#message").slideUp(1000);
        }
    </script>   
</head>
<body>
    <div id='message' style="display: none;">
        <div id="Righticon">
        </div>
        <span id="messagecontainer"></span>
        <div class="close" onclick="closeNotice()">
        </div>
    </div>
    <form action="">
    <div class="wrapper">
        <div class="inner">
            <h2 style="color: #FFF;">
                Windows(Azure) Style Sliding Popup (Message Strip)!!</h2>
            <br />
            <br />
            <a href="#" style="border: 1px solid #DDD; background-color: #8cc7e5; padding: 20px;
                text-decoration: none; color: #FFF;; font-size: 20px;" onclick="ShowPopup('Hello, This Is Windows Style Sliding Popup','iconOk')">
                Click Here !!</a>
        </div>
    </div>
    </form>
</body>
</html>


2. CSS Code

#message
        {
            font-family: Segoe UI;
            position: fixed;
            bottom: 0;
            left: 0px;
            width: 100%;
            z-index: 105;
            text-align: center;
            font-size: 100%;
            color: white;
            padding: 10px 0px 10px 0px;
            background-color: #495461;
            opacity: .80;
            filter: alfa(opacity=80);
        }
       
        #message span
        {
            text-align: center;
            width: 90%;
            font-size: 18px;
            line-height: 40px;
        }
        #message .iconOk
        {
            background-image: url(/Images/icons/icon-success.png);
            width: 0px;
            margin-left: 1%;
            width: 41px;
            height: 41px;
            float: left;
        }
        .close
        {
            background-image: url(/Images/icons/icon-close.png);
            white-space: nowrap;
            float: right;
            margin-right: 1%;
            color: #fff;
            text-decoration: none;
            width: 41px;
            height: 41px;
            cursor: pointer;
        }
        .wrapper
        {
            background-color: #8cc7e5;
            width: 850px;
            padding: 15px;
            font-family: "Segoe UI Light";
            margin: 50px auto;
        }
        .inner
        {
            background-color: #565551;
            color: #fff;
            padding-bottom: 40px;
            text-align: center;
        }

2. C# Code
    
    ClientScript.RegisterStartupScript(this.GetType(), "Popup", "ShowPopup('Hello, This Is Windows Style Sliding Popup','iconOk');", true);


3. Page View and Click on Button











4. Page View After Click On Button With Sliding Popup

Wednesday, June 5, 2013

Thursday, May 16, 2013

What Is Metro Design Style?

Metro Design:

“Metro Design” is a design language and user interface. This is developed by Microsoft and used in Microsoft`s current and new generation operating system, including Windows 8, Windows Phone, Zune and Xbox. The Metro is to give more focus on the “content-focused interface” of the applications by relying more on typography, less on graphics, clean, light, fast, open aesthetics, dynamic, moving transitions and interactions etc. are the main principles and origins of Metro Design. It`s inspired from Swiss graphics design. The design style's main objective is to remove any chrome and extra decoration and allow users to interact directly with content. It's all about the content and the beauty of simplicity.

Example Web Page with Metro Design

Metro Style Demo
Metro Style


Create a CSS file and add below code (metro-design.css):

body
        {
            background: rgb(51,51,51) url("back.jpg");
            color: #fff;
            padding: 20px;
        }
        .tile
        {
            height: 150px;
            width: 200px;
            float: left;
            margin: 0 5px 0 0;
            padding: 2px;
        }
        .largeTile
        {
            width: 250px;
        }
        .container
        {
            width: auto;
            height: auto;
        }
        .content
        {
            width: auto;
            padding: 5px;
            height: auto;
            display: table;
        }      
        .Video
        {
            background: #DAA520;
        }
        .Game
        {
            background: #CD0000;
        }
        .Songs
        {
            background: #4682B4;
        }
        .MyApps
        {
            background-color: #2E8B57;
        }
        .OnHover
        {
            background-color: #483D8B !important;
            border:2px solid #2E8B57;
        }

Create a HTML page and add page layout (HTML):

    <h1>
        Metro Design Demo</h1>
    <div class="container">
        <div class="content">
            <div class="tile Video">
                <span>Video</span>
            </div>
            <div class="tile Game">
                <span>Game</span>
            </div>
            <div class="tile largeTile Songs">
                <span>Songs</span>
            </div>
            <div class="tile MyApps">
                <span>My Apps</span>
            </div>
        </div>
        <div class="content">
            <div class="tile MyApps">
                <span>My Apps</span>
            </div>
            <div class="tile Songs">
                <span>Songs</span>
            </div>
            <div class="tile largeTile Game">
                <span>Game</span>
            </div>
            <div class="tile Video">
                <span>Video</span>
            </div>
        </div>
        <div class="content">
            <div class="tile Video">
                <span>Video</span>
            </div>
            <div class="tile Game">
                <span>Game</span>
            </div>
            <div class="tile largeTile Songs">
                <span>Songs</span>
            </div>
            <div class="tile MyApps">
                <span>My Apps</span>
            </div>
        </div>
    </div>

Create a JS file and add below code (metro-script.js):

$(function () {
            $(".tile").mouseover(function () {
                $(this).addClass("OnHover");
            });

            $(".tile").mouseout(function () {
                $(this).removeClass("OnHover");
            });
        });

Add Jquery/Script and CSS in Head section:

<head>
    <meta charset="UTF-8" />
    <title>Metro Design Demo</title>
    <script src="js/jquery-1.6.1.min.js" type="text/javascript"></script>
    <link href="css/metro-design.css" rel="stylesheet" type="text/css" />
    <script src="js/metro-script.js" type="text/javascript"></script>
</head>

                                






Thursday, April 25, 2013

WEB TEMPLATE SOLUTION - IJONSOFT: CREATE SIMPLE WEB PAGE

CREATE SIMPLE WEB PAGE LAYOUT: 
First of create a HTML page and also create a CSS for web page layout.

HTML 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Simple Page Layout - WEB TEMPLATE SOLUTION - IJONSOFT</title>
    <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <!--Start Header-->
    <div class="header">
        <div class="wrapper">
            <h1><span>~LOGO~</span></h1>
            <ul>
                <li>
                    <a href="#">Home</a>
                </li>
                <li>
                    <a href="#">About</a>
                </li>
                <li>
                    <a href="#">Contact</a>
                </li>
            </ul>
        </div>
    </div>
    <!--End Header-->
    <!--Start Main Container-->
    <div class="maincontainer">
        <div class="contain">
            <h3>
                Hello!!</h3>
            <p>
               WelCome to our Web Templates Solution - IJONSOFT - 2013!! WelCome to our Web Templates Solution - IJONSOFT - 2013!! WelCome to our Web Templates Solution - IJONSOFT - 2013!! WelCome to our Web Templates Solution - IJONSOFT - 2013!! WelCome to our Web Templates Solution - IJONSOFT - 2013!! WelCome to our Web Templates Solution - IJONSOFT hub - IJONSOFT - 2013!! WelCome to our Web Templates Solution - IJONSOFT - 2013!!
            </p>
            <p>
                This is where you would explain about your company. WelCome to our Web Templates Solution - IJONSOFT - 2013!! WelCome to our Web Templates Solution - IJONSOFT - 2013!! WelCome to our Web Templates Solution - IJONSOFT - 2013!! WelCome to our Web Templates Solution - IJONSOFT - 2013!! WelCome to our Web Templates Solution - IJONSOFT - 2013!! WelCome to our Web Templates Solution - IJONSOFT hub - IJONSOFT - 2013!! WelCome to our Web Templates Solution - IJONSOFT - 2013!!
            </p>
        </div>
    </div>
    <!--End Main Container-->
    <!-- Start Footer-->
    <div class="footer">
        <div class="wrapper" >
            © 2013 WEB TEMPLATE SOLUTION - IJONSOFT | <a href="#">Privacy Policy</a> | <a href="#">Turms Of Use</a>
        </div>
    </div>
    <!-- End Footer-->
</body>
</html>

CSS 

body, html
{
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    font: 13px Arial, Helvetica, sans-serif;
}
.header
{
    display: block;
    width: 100%;
    position: relative;
    z-index: 4;   
    border-bottom: 1px ActiveBorder solid;
    margin-bottom: 30px;
}
.header .wrapper
{
    width: 900px;
    margin: auto;
    height: 52px;
}
.header h1
{
    margin: 0;
    padding: 0;
    font-size: 34px;
    float: left;
    padding: 6px 0 0 0;
    font-weight: normal;
    background-color: greenyellow;
}
.header h1 span
{
    color: #333;
}
.header ul
{
    float: right;
    padding: 0;
    margin: -5px 0 0 0;
    list-style: none;
    position: relative;
    z-index: 99;
}
.header ul li
{
    color: #000;
    font-size: 1px;
    float: left;
    padding: 15px 10px 0 10px;
    border-top: 5px solid ActiveBorder;
}
.header ul li a
{
    color: #000;
    font-size: 14px;
    text-decoration: none;
}
.maincontainer
{
    display: block;
    width: 100%;
    position: relative;
    height: 76%;
}

.maincontainer .contain
{
    width: 900px;
    margin: auto;
}
.contain h3
{
    margin: 0;
    font-size: 22px;
    font-weight: bold;
    padding: 6px 0 0 0;
    font-weight: normal;
    margin-bottom: 30px;
}
.contain p
{
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #333;
    font-weight: normal;
    margin-bottom: 20px;
    text-align: justify;
}

.footer
{
    width: 100%;
    border-top: 1px ActiveBorder solid;
    overflow: auto;
    padding: 15px 0 0 0;
    margin-top: 30px;
}
.footer .wrapper
{
    width: 900px;
    margin: auto;
    height: 35px;
}

.footer .wrapper a
{
    color: #000;
    font-size: 13px;
    text-decoration: none;
}

Web Page: After implemented css on this html page than you can look web page like below :- 

Simple Web Page
Simple Web Page