CSS Sprites most web developers should have heard this term, so what is it ?. CSS Sprite bunch of other images transformed into one Big Image. The origin of the term "sprites" comes from old school computer graphics and the video game industry. A dding Sprites to our websites helps with webpage performance, since the webpage has to make only one request to the server, which will fetch the Sprite (the Big image) which includes all the other images that you want to use in your webpage. since the server makes only one request your page will load a lot faster compared to conventional way of linking each images separately. H ere is a demo on how to use CSS Sprites. further more there a many Sprite generators online to create CSS Sprites all you have to do is upload a bunch of images to these Online tools and they will generate the Sprite for you. Signup image Signup confirmation image Two images made into one image As you see above the are two images ca...
Here is an awesome demo of a login form , which makes good use of CSS3 and HTML5. In this demo, i have made extensive use of gradients, text-shadows and box-shadows to achieve a beautiful and modern looking login form. The design of this login form was originally taken for codrops.com, hope you'll like and use this login form in your projects. ViewDemo | Download Source login form login form Onfocus
HTML markup has changed a lot especially when the WHATWG introduced semantic tags. Semantic Tags? What do they mean. The Semantic Markup helps Humans and Machines to Interpret the HTML markup in a more meaningful way. Which helps the HTML markup to be structured in a more meaningful way. remember adding semantic tags to your HTML5 markup wont change the apperance of your page, but it Gives more meaning to your Markup. Here is a list of few HTML5 semantic tags. <section> </section> <article> </article> <header> </header> <nav> </nav> <aside> </aside> <footer> </footer> As you see above the above tags wont make our web pages pretty but it gives more meaning to the markup.
It's easy to remove the scrollbars that's generated by the syntax highlighter plugin go to the CSS file you using provided in the plugin for example" shCoreDefault.css" or the cutom css theme file you're using. and find class .syntaxhighlighter and comment or remove overflow: auto !important; that's it the scrollbar's that's created by the plugin is gone and you'll get the default scroll bars of the browser window Comment the lines shown above
Lets start with the a little introduction, easing refers to the acceleration and declaration that occurs during the course of an animation to give it a more responsive and natural feel. There are two types of easing methods that the core Jquery library supports, which are Linear and Swing lets us see how to implement this easing methods, but before that lets see a brief description on linear and swing easing methods. Linear easing: Linear easing method accelerates and deacclereates at a constant rate which makes it look fairly boring but it is good to know the linear easing might comin handy. Linear Easing Swing easing: Swing easing method starts off slowly before gaining speed and slows down again towards the end of the animation , which makes it look more natural compared to Linear easing Swing easing Download Demo <! DOCTYPE HTML> </head> <script type="text/javascript" src="jquer...
To add a button in a HTML page use <input> tags and specify the type as button like so <input type=”button” value=”submit” action=”submit.php”> this code will be rendered in browser like in Figure 1.1 Add caption Further more if you wish to style this button we can apply a set of CSS rules to make the buttons look pretty here are a few examples: Download code for these buttons here
CSS works with HTML, but it’s not HTML. It’s a different language altogether. While HTML provides structure to a document by organizing information into headers, paragraphs, bulleted lists, and so on, CSS works hand-in-hand with the web browser to make HTML look good. For example, you might use HTML to turn a phrase into a top-level heading, indicating that it introduces the content on the rest of the page. However, you’d use CSS to format that heading with, say, big and bold red type and position it 50 pixels from the left edge of the window. In CSS, that text formatting comprises a style—a rule describing the appearance of a particular portion of a web page. A style sheet is a set of these styles. You can also create styles specifically for working with images. For instance, a style can align an image along the right edge of a web page, surround the image with a colorful border, and place a 50-pixel margin between the image and the surrounding text....
The React lifecycle method helps us in adding logic during different phases of component rendering. Let us look at the various lifecyle methods of ReactJS and understand when they will be triggered during the component render. Do remember that the below listed lifecycle methods is only applicable to class based components and not for functional components. constructor() This is the first method that is triggered during the component's lifecycle, this method is usually used to initialize state or to make API calls before showing it to the user also note that this method is called only once during the entire lifecycle of the component. render() This is the most important method of class component. If we fail to write this method react will thrown an error it is a must have method in any class component this method primary purpose is to return the UI or the JSX we plan to render on the browser. This method is triggered after the constructor call and every time there is a c...
Swing and Jquery easing are included in the Jquery core library but there are many other easing methods which are included in the Jquery easing plugin, available in the Jquery plugin repository. Here are the other easing methods: easeInCirc easeInOutExpo easeOutBack easeOutElastic easeOutBounce easeInOutElastic to use this easing methods we need to pass its name to the animate function lets see an example which covers most of the above said easing methods. Download DEMO <! DOCTYPE HTML> </head> <script type="text/javascript" src="Scripts/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="Scripts/easing.js"></script> <style> p{ height:150px; overflow:hidden;} #div1,#div2,#div3,#div4{ position:absolute; border:1px solid #999; border-radius:5px; width:350px; padding:6px;} #div1,#div3{ margin-left:5%; background-color:#00CCF...
Comments
Post a Comment
Thanks for Visiting for any questions or suggestions please comment below
Cheers,