A characteristic of the style sheets that few know and use is the ability to define the rule of "competition" of classes! A tag, in fact, may possess one or more associated classes, which makes the latter extremely versatile, as well as my favorite. How many developers use to do, I tend to associate the IDs few CSS rules, if any. Ideally, logically, would enter the ID only for scripting purposes, because it uniquely identifies an element within the DOM.
Articles Tagged 'HTML'
The rule of the AND logic in CSS
Coding Guidelines
When no longer working alone for all developers comes time to find guidance in the writing of code. Protocols and standards that make it possible to "read" easily and intervene (more easily) in the code of others.
When we are working on a project more programmers, often of different languages, you must find a common form of writing, internal and external documentation standards in the code. In my work I am usually to interact with:
- Objet-C, C / C + +
- PHP
- HTML
- JavaScript
- Actionscript
- CSS
Very short snippet: UIWebView, and display PDF files inside
The object UIWebView can be used to display several files. For example you can use it to display - as well as QuickTime movies or YouTube - PDF or HTML file included in our code.
Very short snippet: slideshow 10 lines of code
Let me show you how 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 to a site built in WordPress , developed in a few hours for an event.
Very short trick: making invisible HTML comments
Comment HTML is a practice during the early stages of Web development, however the commented code remains visible on the page, even if it is ignored by the browser. By selecting "View Source" or "View Code" from our browser, we will be able to see it.
WordPress: customize the navigation between the posts
WordPress offers many features to navigate through the various posts and pages forward and back. These are used within the themes, often in a completely interchangeable, although they contain some differences. This, in fact, create much confusion in the choice of the function to use. Here are some notes:
Internet Explorer 6: eliminate the double margin bug
Among the various funny "interpretations" that Internet Explorer 6 can do with HTML / CSS, that of the "double margin" is certainly the most tedious and often. In practice (hear, hear ...) Good Microsoft browser can - mysteriously - to double margins on items that are set to float! : As such the following CSS applied to a div with the id box :
Create a simple Feed Reader with SimplePie and jQuery
SimplePie is a PHP library can greatly simplify the retrieval and manipulation of RSS feeds, or, more generally, to XML formats. You can, for example, write a few lines of code, exploiting some "funzioncina" jQuery to create a News Ticker to join our site / blog.
Very short trick: how to center elements on the page, even on IE5
It's not that I always take it with Internet Explorer, it's just that damn thing every Web development (HTML and CSS) seems not to work with the browser - still - the most common (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 placed in the upper right or upper left, and commonly have a form angular range. There are various types, from simple static images to the most spectacular Flash movies. Sometimes they are constructed so as to stay in position even when scroll the browser window.






Latest Comments
Mark : @ Mark: Thanks for the answer. For example, if you have a code to save / use the folder ...
Mark : Thanks for the answer. For example, if you have a code to save / use the folder ...
Giovambattista Fazioli : @ Mark: in principle, absolutely, a lot depends on how and what to download. La. ..
Mark : Hello, good guide! I wanted to ask, you can use the same code to run a sql database? Instead of ...
Joseph : Hi I wanted to ask you how you can do in the post I uploaded a gallery of 50 images, for example, ...