Inline and block elements

December 14, 2010

0

While creating an HTML page, it is important to understand the difference between the 2 elements categories inline and block to avoid coding errors and impost the CSS for the best. Those 2 words, ‘block’ and ‘inline’ are explicit enough by themselves.. block: an element which forms a separate block inline: an element which stays […]

Posted in: Articles

CSS Block & CSS Inline Elements

December 14, 2010

0

The 3 ways that HTML elements can be displayed All HTML elements are naturally displayed in one of the following ways: Block       Takes up the full width available, with a new line before and after        (display:block;) Inline       Takes up only as much width as it needs, and does not force new lines       (display:inline;) Not […]

Posted in: Articles

Validating HTML5 in the browser

October 6, 2010

0

I like to be alerted of any validation errors that sneak into my markup as soon as possible. That’s why I find the HTML Validator Extension for Firefox very hard to live (well, work) without. Unfortunately, it does not support HTML5. I’ve been looking hard for an alternative that does and has the same features […]

Posted in: Browsers

Be careful with non-ascii characters in URLs

October 6, 2010

0

One thing that is rather common, especially on websites whose content is not in English, is URLs that contain unencoded characters such as space, å, ä, or ö. While this works most of the time it can cause problems. Looking at RFC 3986 – Uniform Resource Identifier (URI): Generic Syntax, characters that are allowed to […]

Posted in: Browsers

Remember non-vendor-prefixed CSS 3 properties (and put them last)

October 6, 2010

0

Everybody wants to use CSS 3 now that even Internet Explorer will support parts of it once IE 9 is out. But since parts of CSS 3 are still subject to change, most browsers use a vendor prefix for many CSS 3 properties to signal that their implemenation is “experimental” and may change in a […]

Posted in: Browsers

“Inspect element” is not the same as “View source”

October 6, 2010

0

Tools like Firebug for Firefox, WebKit’s Web Inspector and Opera’s Dragonfly are indispensible tools for front-end Web developers, letting you view the DOM as the browser sees it. And that’s where these tools can actually cause some problems, or at least a bit of confusion. When you choose “Inspect element” or otherwise bring up one […]

Posted in: Browsers

CSS Colors: Take Control Using PHP

October 5, 2010

0

While many web sites use powerful programming environments to create HTML, these same tools are usually ignored when it comes to creating Cascading Style Sheets (CSS). This article describes how to take control of your colors in CSS using PHP. You will learn how to: Centralize your color definitions using variables. Separate presentation and content […]

Posted in: css
Follow

Get every new post delivered to your Inbox.