BACKGROUND-IMAGE verdwijnt in de HTML e-letter

De oplossing is de link naar de background image een volledig pad van te maken, dus;

background-image: url (http://...........);

Elementen willen niet FLOATen

Wanneer meerdere elementen niet naast elkaar willen floaten, moet de parent een breedte hebben!

<div width=x>  <<---belangrijk!!
   <div style="float:left;">hoi</div>
   <div style="float:left;">hoi</div>
   <div style="float:left;">hoi</div>
</div>
Geplaatst in css, html. Leave a Comment »

FORM tag breekt DIV opmaak

Als de DIVs in een opmaak niet schijnen te floaten, of niet naast elkaar lijken te passen in IE, dan komt dit door het ontbreken van de volgende tag:

form {
width: 100%;
}
Geplaatst in css, html. Leave a Comment »

CSS BORDERS en TABLE-CELLS

Als er in de css een border om een td wordt gedefineerd, dient de td te worden voorzien van inhoud, al was het maar een nonbreaking-space.

css:

td {border:1px solid black;}

html:

<table>
   <tr>
     td> </td>
   </tr>
</table>
Geplaatst in css, html. Leave a Comment »

FLOATing DIVs

Bij Float: Let op de volgorde van de DIV!

de DIV die b.v. rechts gefloat moet worden dient in de hierarchie VOOR de andere DIV te komen, ook al komt hij er visueel gezien na!

Geplaatst in css, html. Leave a Comment »

Selected state

Actieve pagina aangeven in menu via css. Dit voorkomt programmeerwerk.

css:

.about {inactive css stijl;}
.contact {inactive css stijl;}
.products {inactive css stijl;}
body#contact .contact {css stijlen;}

html:

 <body id="contact">

<ul>
  <li class"about" />
  <li class="contact" />
  <li class="products" />
</ul>
Geplaatst in css. Leave a Comment »

Frames emulatie met css

Geplaatst in css. Leave a Comment »

opacity

      #whatever .plaatje {
        filter:alpha(opacity=50);
        -moz-opacity: 0.5;
        opacity: 0.5;
      }

      #whatever .plaatje:hover{
        filter:alpha(opacity=100);
        -moz-opacity:1.0;
        opacity:1.0;
      }
Geplaatst in css. Leave a Comment »

min-width en max-width in ie

Simuleer min-width / max-width in IE door onderstaande code;

#container
min-width: 600px;
max-width: 1200px;
width:expression(document.body.clientWidth < 600? "600px" : document.body.clientWidth > 1200? "1200px" : "auto");
}
Geplaatst in css, ie. Leave a Comment »

PNG alpha transparency en IE

PNG alpha transparency wordt niet ondersteund in IE, gebruik hiervoor:

/* */
* html .kader .hd {
 margin-right:0px; /* space for right corner */
background: none;
width: 250px;
height:25px;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/kaderTopL.png', sizingMethod='scale'); }
/* */

Waarbij de PNG in de background gebruikt dient te worden, en de property WIDTH is heel belangrijk!!

-We use ‘/* \*/’ to hide the filter from Mac IE
-We use ‘* html’ to make it IE specific
-We set the background on the DIV to ‘none’ to overwrite the non-IE settings
-Then apply the filter.
All you should need to do is to replace the ’src’ path and select you ’sizingMethod’. In this case we are using sizingMethod=’scale’ which displays top left and stretches the image to fill the dimensions of the element to which it is applied. You could also use sizingMethod=’crop’ which will display our image in the top left position non-tiled at it’s original size.

in IE werkt een link klikken niet meer, heeft te maken met HasLayout
http://www.satzansatz.de/cssd/tmp/alphatransparency.html

Geplaatst in css, html, ie. Leave a Comment »