In desperate need of a navigation bar? Just about every site has one, and for good reason: navigation bars allow your users to move from one web page to another with one click. A commonly-made rookie mistake in HTML and CSS web development is to use separate elements to create a navigation bar. This tutorial by Learn to Program demonstrates one of the easiest ways to create flexible and functional and navigation bars with unordered lists, of all things.
Find and handle errors and exceptions in your Python code using a few easy statements! The try and catch method of handling errors and exceptions allows you to catch all data that does not apply to a try statement and specify code for it in an except statement. This tutorial by Learn to Program shows you how to write try and except statements that allow you to handle page errors with ease.
With the rise of sophisticated web browsing on mobile devices, it is more important than ever to learn the basics of styling CSS for smaller screens. In this comprehensive lesson, Learn to Program shows you how to craft a website that adapts to mobile devices, desktops and everything in between. You will learn about media values, the meta tag and dinosaur protection, while gaining a sense of how mobile browsing is changing the future of web design.
When all else fails, elements on a web page can be floated using CSS—that is, removed from the normal flow of content. Floating is a great alternative to tools such as absolute and fixed positioning; however, it has some quirks. In this lesson, Learn to Program gives you the lowdown on when to use float, how it works, and what oddities you can expect to encounter.
We use fonts every time we type, but do we really understand them? In this first in a series of typography lessons from Yes I'm a Designer, get an introduction to the wonderful world of fonts. Find out how to define a font, and explore different font styles. Learn how to use InDesign to view the full range of glyphs in a font (beyond the characters you're used to seeing on your keyboard). Discover how fonts are stored on your computer and unravel the mystery of the unicode.
Arrays are useful programming tools for working with large amounts of information. However, in other languages such as C, they can only be used to gather primitive data such as integers or characters. Objective-C uses the more flexible NSArray class, which works with objects such as strings or classes. In this tutorial, Lucas Derraugh reviews the general idea of arrays before diving into how they work in Objective-C. Some knowledge of arrays in other programming languages is required.
Power up your python game! An essential step in game development is making sure that your game can be played again and again without any errors. In this tutorial by Learn to Program, learn how to reset the current game, restore its original settings, set up and start a new game, and ensure that all of your objects are in the right positions.
Need to compile a list of terms and definitions in your project? Objective-C makes it easy to create your own dictionary. In this tutorial, Lucas Derraugh explains some quirks in dictionary terminology and provides you with all the methods you’ll need to create, style and print your very own NSDictionary. You will also learn about the convenience method, which may be used to create objects that only exist temporarily in your project.
Want to make your website mobile-friendly? You’ll need to create and test CSS that works for smaller and narrower Android or iPhone screens. Don’t worry: by installing and running a mobile device emulator, you can successfully test your mobile CSS code on any computer. Learn to Program walks you through the steps necessary to get your emulator testing CSS in no time. Note: you will need an emulator to follow along with the next video in this series.
You should always know how to sort your lists. Luckily, Python provides you with a couple options: the sort method and the sorted function. This tutorial by Learn to Program covers both and explains when to use each. At the end of these last few tutorials, you should be extremely comfortable making and modifying lists in your Python code.
The CSS display property is a simple, useful tool for maximizing flexibility and responsiveness between web page elements. Even the simplest page can have multiple containers, such as divs and spans, that play by different display rules. Learn to Program covers the essential display values and how containers react to them in this valuable lesson.
Transitions allow you to make dynamic elements that move smoothly between states. They can be used for just about any element of your web page. Explore this new CSS3 feature with Learn to Program’s in-depth tutorial, which reviews some pertinent styling options before delving into all the attributes you need to know to create attractive, useful transitions.
Once you have the structure for your Objective-C project, it is time to get down to business! This tutorial by Lucas Derraugh shows you how to write some simple methods. Objective-C methods basically define the ways that your variables behave, given certain input. To start, you will learn how to set the height and width of a rectangle using methods.
Once you’ve mastered the box model, it is time to get down to customizing each individual part. This tutorial by Learn to Program explores two seemingly similar parts of the box model: margins and padding. You will take advantage of skills you learned in the “Sliding Door Technique” tutorial. Margin collapse, an important, but often misunderstood W3C specification will also be discussed.
Thought you knew all there is to know about lists in Python? This tutorial by Learn to Program shows you how you can make your lists bend backwards and forwards or stretch out in any direction. With a number of easy-to-learn methods, such as ‘append’, ‘extend’ and ‘reverse, you will be sculpting your lists like the Michelangelo of Python in no time!
Strings are essential to your Objective-C projects; they allow you to input text and attach it to any object. This tutorial by Lucas Derraugh explains why NSStrings are so useful, and explores the four common string methods built into Objective-C: initWithString, initWithFormat, stringWithString and stringWithFormat.