Cascading Style Sheets - CSS
Firefox CSS hack? - How to serve css to Firefox or IE only
Isolating a selector to standards compliant browsers
Mozilla Firefox is a relatively Web Standards' compliant browser, and so any attempts to isolate it, or many of the other browsers such as Opera or Safari can prove difficult. We can approach this as a method to write CSS selector definitions specific to Mozilla Firefox or Apple Safari.
There are a number of ways to get a given CSS selector to only affect the Firefox Web browser, and both of the below examples are based on using the short-comings and hacks meant for the other browsers to isolate the selector to Firefox.
1)
Write a general selector definition, and then use the common CSS hacks for Internet Explorer (IE5,IE6 and IE7) to exclude the hack-compliant browsers thereby isolating IE, and the other Web Standards compliant browsers.
Example:
body
{
font-family: "Trebuchet MS";
_font-family: Verdana; #font-family: arial;}
2)
Write a general rule that will apply to all browsers (Firefox included), and then write a second selector definition with higher specificity using CSS code that is not understood by IE and the other non-compliant browsers. Example:
ul li
{
list-style-type: none;
list-style-image: url(mybullets.gif);
}
ul>li
{
list-style-image: url(firefoxbullet.gif;);
}
By exploiting the fact that Firefox has implemented the child-of ul>li relationship, and the non standards compliant browsers have not, the second command only applies to Firefox. It goes without saying that my preferred and recommended method of isolating Firefox is the second approach. Unlike the first method which is using invalid CSS coding techniques, the second approach uses compliant CSS that will not cause any errors
LAN, Windows bluescreen, Apple Safari, and Web Development
Fri, 2007-06-29 09:42 — iDonny- Reusable CSS, make your life easier [Fri, 22 Jun 2007 13:17:28 -0400]
I have come to find that while using CSS for layout, all hierarchical content is represented as UL or OL lists, and others items are enclosed in DIV or SPAN regions or left as orphan elements. CSS layout based on the above mark-up structure will have some repetitive definitions. For instance, all horizontal menus my require CSS to turn an unordered list into display: inline; layout, set the list-style-type: none; This means that you can make you rlife easier by creating a set of CSS definitions that can be the basis of all your layout and presentation work : - Apple Safari is benefiting Internet Explorer? [Fri, 22 Jun 2007 13:04:27 -0400]
The introduction of Safari for Windows might appear to be an attempt to eat away Microsoft Internet Explorer's market-share. On second thought though, most of the people that use Internet Explorer do so because it is the already available Web browser who will not care to replace IE with Safari if they have not already moved to Safari. It is therefore going to each away market-share from Firefox because it is those standards conscious users who have shunned IE that will be outgoing enough to try Safari... Apple's selfishness is playing right into Microsoft's agenda!!: - Choosing a Web Development Platform [Sat, 16 Jun 2007 12:57:18 -0400]
I am more inclined to choose opensource (e.g., PHP) and other low TCO (total cost of ownership) environments to develop solutions and self-train. I do not completely refute the claim that .NET is a valuable development environment; but it is not possible to properly evaluate proprietary development environments without investing money, and probably loosing it if the environment proves to be less than ideal: - HTML-Kit to blame for blue-screen, not Safari [Fri, 15 Jun 2007 23:23:53 -0400]
I am ashamed for jumping into conclusions and blaming Apple Safari for Windows XP crashing when I tried to browse folders in my markup editor. I had attributed the problem to the Safari browser because the problem came up after installing Safari. Coincidentally, I had installed an update of the Alpha version of HTML-Kit Tools for Windows, and that seems to be the culprit - my apologies to Steve Jobs: - Safari gets windows dirty [Thu, 14 Jun 2007 00:23:52 -0400]
My love affair with Apple Safari is coming to an end today. One day after I installed Apple Safari on my HP Windows Media Center, Windows has given me the "Blue screen of death twice", and Safari has been becoming unresponsive. Apple has good intentions, and the application is only in beta, but it has no place on my PC for now. I will be using System Recovery in a moment to remove it.:
Web Standards, Apple Safari, HTML-Kit for Windows
Sat, 2007-06-16 13:56 — iDonny- A Safari with a difference [Wed, 13 Jun 2007 12:21:27 -0400]
Many applications claim to be able to import your settings, bookmarks and other customisations from competing applications to facilitate migration. Apple Safari for Windows has humble me. Whether I go to pandora.com or Tumblr, it has imported by settings, bookmarks and even stored passwords from Firefox... impressionant quoi !!: - Choosing a truly free Linux distribution [Tue, 12 Jun 2007 13:55:12 -0400]
Now that I am comfortable and pleased with the usability, and stability of Ubuntu Linux, I am out to test another distribution on a different PC. I almost selected Fedora from Novell, but then again I thought that this might not be the correct way to support OpenSource being that Novell has been cutting some deals in the dark alley with Microsoft. So Mandriva Linux is my next Linux candidate.: - Taking a Windows Safari [Tue, 12 Jun 2007 13:30:15 -0400]
Not really a journey, but I have just installed Apple Safari web browser on my PC and it was a breeze. I am eager to see what the Bonjour service can do. I am a Firefox evangelist, but I am open to see what Konqueror, Epiphany, or Safari can do for me. If for nothing else, I can now test my web development on Safari too. Just when I had ordered a Mac notebook... : - No apology for following Web Standards! [Wed, 06 Jun 2007 16:01:47 -0400]
If you are using IE6, you will notice that that the top menu of this site is centered. This is caused by the fact that IE6 is not standards compliant, and it requires custom hacks to make the menu right-aligned as it is in IE7, Firefox, Konqueror, Epiphany etc. Should I apologise for this? I do not think that writing browser hacks is a good way to spend my valuable time.: - Pageflakes: Your desktop on the web [Wed, 06 Jun 2007 11:28:45 -0400]
First there were portals, and then there were portals! Widgets are beginning to become the approach of choice for representing web tools and content sections on a web-page. Pageflakes.com provides such as a facility by enabling you, the user to create a page layout with the content sections and tools that are important to you, selected to an extensive library. I know that netscape.com and google can also do this:
Create Custom Drupal Layout themes with total flexibility
Skinning and templating Drupal with themesÂ
Beyond creating a customized Drupal theme or skin that does not look like any of the out-of-the-box themes that are supplied with the application, ideal front-end Web Design and markup aims to create valid, accessible, and semantic markup that is visually pleasing, light on the browser (high content to markup ratio), and is easy for search engines to crawl.
In a related article, I touched on creating a Drupal homepage without the 'Blog look' that had come to be characteristic and typical of dynamic websites created by technologically savvy 'geeks' with little or no motivation and interest to apply equal or at least significant attention to the visual design and SEO viability of the web content. Successful and ideal CMS (Content Management System) implementation is transparent in the front-end. Technology should be an enabler of client-side features as being an impediment and unnecessarily manifesting itself to the user.
Here is an outline of some objectives and important points to consider in order to create A Drupal theme that fills the above needs and objectives
- Start of by creating a layout in XHTML markup without thinking or taking into consideration any structural limitations of the CMS, and Drupal in this case (Just to clarify, Drupal themes are fully customizable using a rick library of theming functions). Make sure that your markup is not bloated or unnecessarily verbose in elements and attributes because doing so will affect your markup to content ratio which has an effect on SEO and page loading-times
- For Search Engine Optimization (SEO), make sure that you create physical order for your content that will enable the search engine crawler to sequentially find and crawl the page content before it gets to routine and repetitive sections such as static menus, disclaimers, site seals and other content-poor objects and page sections that might distract it or lead it to secondary pages before it gets to crawl the page in question.
- It goes without saying that table-layout it an accessibility no-no, and it unnecessarily limits flexibility and slows down site evolution and updates. Apply CSS to create a visual layout of your content.
- Once you are satisfied with your static XHTML structure and the tentative or definitive CSS that you have on it, you can add PHP snippets to replace markup region contents with Drupal elements by inserting region snippets in your layout. If you want to add more content regions to place your blocks, menus and other Drupal content items, you can create them in template.php (PHPTemplate Drupal template engine) as explained in a related document.
- Save the file as page.tpl.php and go on to customise the structure and standard markup of the other template files such as node.tpl.php, box.tpl.php etc
- The Drupal templating structure allow visually limitless customization of any theming function and feature without touching core or module files - Drupal Theme Developers Guide .
If you need custom assistance and Drupal theme development, please contact us so that we can create a Drupal theme based on your branding and design guidelines and needs


