background preloader

Tipps

Facebook Twitter

Blitzschnelle Browserweiche | Browser, Browserweiche, HTML | Dr. Browser Browserweichen sind manchmal notwendig. Aber ganz gleich, was man dafür verwendet, Javascript, SSI, CGI oder PHP, die Angelegenheit verursacht Arbeit, belastet den Server oder funktioniert nicht sicher. “Conditional Comments” sind da viel einfacher zu handhaben und sollten für einfache Zwecke bereits ausreichen. Das Ganze funktioniert als eine Art interne Browserweiche, die nur der IE5 oder höher verstehen kann. Damit wird es möglich Funktionen einzubauen, die nur von diesen Browsern interpretiert werden. Die Syntax ist eine Art erweiterte Kommentar. <! Damit rücken proprietäre Funktionen wie Filter, Laufschriften und ähnliches wieder in den Blickpunkt. Die “Conditional Comments” wurden von Microsoft mit verschiedenen Möglichkeiten ausgestattet: Damit wird es möglich, verschiedene Versionen des IE exakt anzusteuern, wenn man denn mag.

<! Um beispielsweise einen Bookmarklink einzubauen, wie wir das am Seitenende tun, codieren Sie wie folgt: <! Mozilla, Netscape und Co. Hypertext Style Guide. This guide is designed to help you create a WWW hypertext database that effectively communicates your knowledge to the reader. It has been prepared in the light of comments by readers, and many demands by providers of online documentation.

Some of the points made may be influenced by personal preference, and some may be common sense, but a collection of points has been demanded, and so here it is. The guide is designed to be read sequentially, but feel free to depart from this. The sections are as follows: The above lists all the parts of this guide except for individual reader comments. To print this document A single long page with all of them excluding reader comments is available for printing (but has dysfunctional links and is not in correct html).

This document is open to comment! Suggestions are strongly invited, if you think of anything mail it to timbl@w3.org, mentioning the Style Guide for Online Hypertext or its URL. Introduction You will be writing a number of separate files. Accessible Drop Down Menu: Ultimate Drop Down Menu 4.5 - List-ba. How To Quickly Check If You’re Running A Javascript Enabled Brow. Javascript is an integral part of web browsing and a lot of websites use Javascript for web applications and functions. A question I get at my site often is how I can tell if I am using a Javascript enabled browser. I have two quick methods to tell if the browser you are using does or does not support Javascript. The first thing I recommend is browsing over to a special Java test website called JavaTester.

There is code on this page that will tell you if you can run Java Applets and if Javascript is enabled and supported by your browser. My favorite part about this site is that it also gives you the HTML code that they used to create the tests. When we get to the site this is what we will see: You will be able to tell at a glance what your browser can and cannot do. The Java test website goes on to explain that Java and Javascript are two very different programming languages and pretty much only share the first four letters of their name. Workarounds. PROBLEM: ie5win does not recognize whitespace:nowrap. WORKAROUND: Must be combined with nobr in the HTML for ie5win.

PROBLEM: ie5win - all line-height to font-size ratios must agree or the box gets pushed around. WORKAROUND: None. Set them to agree. (Not tested on ie5.5win yet.) Update: This one item has cause a lot of mail, so some detail is in order. What I mean is if you set your line height to, say, 150% for your body text, then you'd better do it for your H1, H2, etc. PROBLEM: ie5win ie5.5win box width misinterpretation. WORKAROUND: Interesting fix by Tantek Celik. Does anyone know if you use the fix alone, and someone with a voice browser surfs your page, does the fix trip the voice browser in any way?

PROBLEM: ie5win box border misplacement. WORKAROUND: None, but it seems to be a minor aesthetic glitch that doesn't spill into other setting considerations, and with narrow borders isn't even noticeable. ie5.5win not tested for this yet. WORKAROUND: None. WORKAROUND: Fixed! Content Rotator using CSS &amp; Javascript. Preloading HTML Content with CSS - Building a HTML content rotator with CSS(Page 4 of 6 ) A wide variety of content rotators are present on websites, which very often offer content on demand. As mentioned above, we’ll create a client–side content version by utilizing the CSS approach and the power of JavaScript.

So, with the preliminaries out of the way, let’s write a little bit of code, presenting a new improved version of the content rotator. Here are the JavaScript functions: And following, the CSS declarations and HTML markup: Let’s see in detail how this works: As usually, we first define our JavaScript functions. The rotating process is tackled by a function which changes the contents every two seconds, according to the example. Next, we have declared our "hidden" class in the CSS, and redefined the <h2>header to achieve a styled version. In our markup, we’ve defined four hidden <div> elements, which will be hidden from view initially. The working example can be viewed here: Example2. Common Problems Using CSS Descendant Selectors - Nested Lists an. One of the first things that most designers forget about CSS descendant selectors is that they are flexible. When CSS defines a descendant, it doesn't care whether the tag in question is the direct child, the grandchild, or some great-great-great-descendant of the initial element.

In each of the following examples, the span tag is a descendant of the p tag: But who cares? I mean, does it really matter whether the descendant is a child or a great-grandchild of the first element? After all, if the span tag is inside the p tag, it's a descendant and you'll want to style it - even if the HTML goes: Where the Descendant is Can Make a Difference One of the most common occurrences of descendants making a difference is in nested lists and tables. <ol><li>An ordered list</li><li>With 3 elements</li><li>And one nested list inside it: <ul><li>An unordered list</li><li>With 2 bullet points</li></ul></li></ol> This CSS forces the nested undordered list to become ordered. Use a Child Selector Instead. The Perfect Pop-up (creating accessible pop-up windows) | Tutori.

Posted on: 20 March 2007. If you believe the likes of Jakob Neilsen and his supporters, nothing is more evil than pop-up windows. And in many ways, this is correct. Why? Well, we'll list the reasons soon enough, but in a nutshell it's because they are nearly always poorly implemented or simply not needed. This tutorial will show that, with the right thought, pop-up windows can be used without upsetting anyone - particularly the person browsing your site. Problems with pop-ups The common faults with pop-up windows are: If scripting is disabled, or if the browser does not support JavaScript, the pop-up will not work Search engines cannot follow links to pop-up windows (scripted elements are ignored) Pop-ups present accessibility problems Site management tools (e.g.

Phew. Start with a Basic Link The first thing to do is to assume that your pop-up will not work. <a href="file.htm">Here is my link</a> But you want the people who can use pop-ups to get that effect right? Seeking out the Pop-ups. Five CSS design browser differences I can live with | For A Beau. Web designs need not look exactly the same in all browsers. I know that’s a topic I have written about and spoken on a fair amount before, but somehow I’m always amazed by the reactions that I get when the subject comes up. Although this idea isn't new (and just for the record I know I didn't invent it), when I teach my design philosophy at workshops and conferences I'm often surprised to hear that the notion that people using different browsers (even up-to-date ones) might intentionally see differences in visual design sounds new.

The belief that all browsers should see the same design often requires us to resort to presentational markup, forked CSS and JavaScript DOM wizardry. It may come from: a deeply embedded feeling that the web shares print's need for pixel perfectionthe desire of brand stewards to control every aspect of a designa misunderstanding among clients and managers perhaps reinforced byan old fashioned workflow that has its roots in print design and pre-press Border-radius. Lists and Indentation. In order to keep from getting too confused, I'm going to start over and present a complete exploration for what's happening with lists in general,and then in IE5/Mac and Netscape 6.1.

I think there will be less chance for misunderstanding that way. The question which I was trying to answer was "how are lists styled by browsers? " This helps to answer the corollary question, "why don't IE5/Mac and NS6.1 seem to behave the same way when styling lists? " First, I'm going to start with a pure list item-- no marker, and no containing list element-- hanging in a vacuum, which is to say it isn't yet part of a document. ---------------------- |This is a list item.| ---------------------- That box represents the content-area of the list item. ------------------------ |----------------------| ||This is a list item.|| |----------------------| ||This is a list item.|| |----------------------| ||This is a list item.|| |----------------------| ------------------------ Okay, we're in the home stretch.

Restore scroll position of a DIV over a postback. Well, it did work partly : if the control which causes the postback is in the scrollable DIV it does rescroll far enough to focus on it if I turn smart navigation on, but not EXACTLY to the same scroll position (so user sees it jump from middle to bottom, for example). Also, if the control which caused the postback was outside the scrollable area it always scrolled itself back to the top. Therefore I had to come up with a better solution. "JezB" <(E-Mail Removed)> wrote in message news:u$(E-Mail Removed)... > Well, I did try that first, obviously. > But it didn't work. > > "MA" <(E-Mail Removed)> wrote in message > news:(E-Mail Removed)... > > Or you could use: > > > > Page.SmartNavigation = true; > > > > /Marre > > > > "JezB" <(E-Mail Removed)> wrote in message > > news:(E-Mail Removed)... > > > Never mind.

I found a way. AtaGrid runat="server" ... > > > > ... > > ></asp ataGrid runat="server" ... > > > > > ... > > > ></asp. In the Woods - HTML, CSS, PHP and jQuery Killer Tutorials. Getting started with HTML, CSS, PHP or jQuery can seem like a daunting task for many beginners. Some people think you need to go to school for these subjects but as many of you already know, there is an abundance of free resources to get you well on your way to becoming a pro in any of these subjects. Here are some killer tutorials and screencast series which cover the most popular topics (HTML, CSS, PHP and jQuery). Resources for Help Before you get started on any tutorials, do yourself a favor and bookmark these websites. When you get stuck and need help, these resources can really be a life saver. W3 Schools W3 Schools is a huge resource for tutorials, references and lots more. Google If you’re not familiar with Google or search techniques, you might want to take some time to learn how to use search engines like Google.

Twitter If you’re not on Twitter yet, you probably should be. So you’ve designed a few websites in Photoshop already and you’re ready to jump into HTML and CSS. WordPress.