JDev

Code, cssJune 30, 2008 5:41 pm

Adjusting the left property will have no effect on the matching elements unless those elements have their CSS position set to relative or absolute. The default CSS position for all block‑level elements is static.

If you put an absolutely positioned box inside a relatively positioned box, it moves with that box. It is absolutely relative!

http://www.wpdfd.com/issues/78/absolutely_relative/ 

Code, javascript, .NETJune 25, 2008 1:36 pm

When you use href=’#’ and provide a JavaScript function for the onclick event, the browser always jumps to the top of the page after executing the JavaScript function. The simple way to avoid the jumping effect is to include a ‘return false’ statement after the call to the JavaScript function. Example:

<a href=’#’ onclick=’fnClick(this); return false;’>Do something </a> 

If you use .NET 1.1, you can set "Smartnavigation=true" in Document properties.

Code, javascriptJune 13, 2008 1:39 pm

I used a NiftyCube javascript and css from Alessandro Fulciniti to create rounded corners for a form. The form used fieldset and legend tags to separate different sections of the form. I used ‘border-style:none‘ for the fieldset to get rid of the borders around it. The NiftyCube worked perfectly in Internet Exporer, however the form looked messy in Firefox. The rounded corners were below the legend.

The solution was to get rid of the legend tag and use a div tag within the fieldset with the following style:

    display:block;
    margin:10px;
    font-weight:bold; 

Form with rounded corners