A characteristic of the style sheets that few know and use is the ability to define the rule of "competition" class! A tag, in fact, may possess one or more associated classes, which makes the latter extremely versatile, as well as my favorites. Like many developers use to do, I tend to associate the ID few CSS rules, if any. The ideal, logically, it would enter the ID only for the purpose of scripting, because it uniquely identifies an element within the DOM.
Articles with tag 'HTML'
The rule in the logical CSS
Coding Guidelines
When you are not working alone for most all developers comes time to find guidance in the writing of the code. Protocols and standards to allow "read" easily and intervene (more easily) in the code of others.
When we work on a project more programmers, often of different languages, you must find a common form of writing, in the standard internal and external documentation to the code. In my work I am normally interact with:
- Objetive-C, C / C + +
- PHP
- HTML
- Javascript
- Actionscript
- CSS
Very short snippet: UIWebView, view PDF files, and internal
The object UIWebView can be used for the display of numerous files. For example you can use it to display - as well as QuickTime movies or YouTube - PDF documents or HTML files into our own code.
Very short snippet: slideshow in 10 lines of code
Let me demonstrate how it is possible to implement a simple slideshow of images with very few lines of code, using jQuery .
This technique can be implemented on any type of website, the important thing is to include the library jQuery . I used this technique for a site built in WordPress , developed in a few hours for an event.
Very short trick: make invisible HTML comments
Comment HTML is a practice during the early stages of Web development However, the commented code is visible in the page, even if it is ignored by the browser. Selecting "View Source" or "View Code" from our browser, we will always be able to see it.
WordPress: Customize the navigation between the posts
WordPress offers many features to navigate through the various posts and pages back and forth. These are used within the themes, often in a completely interchangeable, even though they contain some differences. All this, to be honest, I create some confusion in the choice of the function to use. Here are some notes:
Internet Explorer 6: Eliminating the double margin bug
Among the various funny "interpretations" that Internet Explorer 6 is able to do with HTML / CSS, the "double margin" is certainly the most tedious and often. In practice (surprise, surprise ...) good browser Microsoft succeeds - mysteriously - to double the margins on the elements set to float! : As such the following CSS applied to a div with id box :
Create a simple feed reader with SimplePie and jQuery
SimplePie is a PHP library able to greatly simplify the retrieval and manipulation of RSS feeds or, more generally, of XML formats. You can, for example, write a few lines of code, also exploiting some "funzioncina" jQuery , to achieve a News Ticker to join our website / blog.
Very short trick: how to center elements on the page, even on IE5
Not that I always take with me the Internet Explorer, it's just that every damn thing about Web development (HTML and CSS) seems not to work with the browser - still - the most widespread (one day someone will explain why). ; ad esempio ecco come posizionare un div al centro dello schermo: A very convenient method to place an item in the middle of the browser window is to the property sfrutture auto style margin , for example, here is how to position a div in the center of the screen:
How I did it: how to create a sticker-ribbon in 3 steps
The stickers (or ribbon) are those images that are positioned at the top right or top left, and commonly have an angular shape headband. There are various types, from simple static images to the spectacular Flash movies. Sometimes they are so constructed as to remain in their position even when we scroll the contents of the browser window.






Latest Comments
Giovambattista Fazioli : @ ale: As shown @ Kevin see on GitHub repo: https://github.com/gfazioli/Ch roma-Key
Giovambattista Fazioli : @ Kevin: See https://github.com/gfazioli/Ch roma-Key
Kevin : Very nice example - would like to see the. fla too!
Ludovica : Hello! I'll explain my doubt. When I write a post not add pictures in the article (if so ...
Marco : hello @ Giovan Battista Fazioli, thanks for all the explanations of this excellent guide. I have a question to ...