hallo allemaal

ik ben bezig mijn website een beetje op te fleuren, ronde hoekjes enzo, beetje schaduw. maar nou lukt dat niet helemaal. het gebruik van "opacity" of rgba werkt niet. ook border radius werkt niet, en ik krijg het ook niet aan het werk met een .htc bestand

dit is de css


body									{
            					color: #000000;
											background: #FFFFFF url(patroon.png) center;
											background-repeat: repeat-y;
											text-align: center;
											font-family: arial;
            					}							
											
#header 							{
                			width: 806px;
                			height: 200px;
											background: #FFFFFF url(logo.png);
            					border-style: solid;
            					border-width: 3px;
            					border-color: #00A2E8;
											border-radius: 20px;
											-moz-border-radius: 20px;
    									-webkit-border-radius: 20px;
    									-khtml-border-radius: 20px;	
											padding: 0 0 0 0;
											filter:alpha(opacity=85);
											-moz-box-shadow: 5px 4px 6px #666666;
											-webkit-box-shadow: 5px 4px 6px #666666;
											box-shadow: 5px 4px 6px #666666;
                			}
											
a img								  {
											border: 0px;				
											}
											         
#main 								{
                			width: 806px;
                			min-height: 280px;
											height: auto !important;
											height: 280px;
            					border: 3px solid #00A2E8;
											background: #FFFFFF none;
											font-family: arial;
											font-size: 14px;
											padding: 20px 20px 20px 20px;
											text-align: left;
                			}

#disclaimer						{
											width: 806px;
											height: 80px;
											font-family: arial black;
											font-size: 12px;
											color: #FFFFFF;
											border: 3px solid #666666;
											background-color: #00A2E8;
											margin: 15px 0 0 0;
											filter:alpha(opacity=80);
											}
											
#menu									{
											width: 806px;
											height: 60px;
											background: #E0E0E0 none;
											border: solid 3px #00A2E8;
											margin: 15px 0 15px 0;
											filter:alpha(opacity=80);
            					}
											
            
a.menu:link, a.menu:visited			{
																font-family: arial;
																text-align: center;
																line-height: 60px;
																width: 160px;
																background: transparent url(knop1.png) no-repeat center;
																float: left;
																display: inline;
																text-decoration: none;
																color: #000000;
																font-weight: bold;
																font-size: 18px;
																}
											
a.menu:hover, a.menu:active			{
            										text-align: center;
																font-family: arial;
																line-height: 60px;
																width: 160px;
																background: transparent url(knop2.png) no-repeat center;
																float: left;
																display: inline;
																text-decoration: none;
																color: #000000;
																font-weight: bold;
																font-size: 18px;
            										}

h3										{
											font-family: Candara, Eras Demi ITC, Arial black;
											font-size: 20px;
											}
											
h2										{
											color: #ff0000;
											font-size: 14px;
											text-align: center;
											}
											
a											{
											text-decoration: none;
											padding-left: auto;
											padding-right: auto;
											font-weight: bold;
											}
											
a:link, a:visited			{
											color: #000000;
											}
											
a:hover, a:active			{
            					color: #00A2E8;
            					}
											
.bericht							{
											width: 700px;
											height: 250px;
											}
												
p											{
											font-family: arial;
											font-weight: bold;
											font-size: 18px;
											}
											
#login								{
											margin-left: auto;
											margin-right: auto;
											margin-top: 50px;
											width: 300px;
											height: 100px;
											background: #FFFFFF;
											border: 2px solid;
											text-align: center;
										  padding: 20px 20px 20px 20px
											}
											
h1															{
																font-size: 22px;
																color: #00A2E8;
																}			



en dit is de html code



<!-- saved from url=(0022)http://internet.e-mail -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html  xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>blabla</title>
<!--[if IE]><link rel="stylesheet" type="text/css" href="stylesheetie.css" /><![endif]-->
<!--[if !IE]>--><link rel="stylesheet" type="text/css" href="stylesheet.css" /><!--<![endif]-->
blabla meta's van SEO
</head>
<body>
<div id="header">
</div>
<div id="menu">
<p>
blabla menu
</p>
</div>
<div id="main">
<h1>Home</h1>	
blabla<br /><br /> 
<br />
Klanten kunnen <a href="login.php">hier inloggen</a>
</div>
<div id="disclaimer">
<br />
blabla
</div>
</body>
</html>



ik gebruik zoals je ziet een speciale stylesheet voor IE. was even de makkelijkste oplossing. die staat ook hier gekopieerd, veranderen van stylesheet zorgt niet voor de juiste werking in IE9
Opacity is CSS2, maar swat...

Dor dit eens

#disclaimer {
  opacity: 0.8;
  filter: alpha(opacity = 80);
}
ja dan werkt de opacity wel, dat snap ik ook, maar ik wil m eigenlijk omzetten naar css3 standaarden. ik las ook ergens dat IE9 met het gebruik van filter nog wel eens moeite had met de nieuwe css dingen. in IE9 zou hij in principe gewoon opacity, box-shadow en border-radius aan moeten kunnen toch
Op www.caniuse.com staat een overzicht van tal van css(3) features en met welke browsers deze al wel/niet compatible zijn (al dan niet met prefix als -moz- of -ms-).

Mogelijk interessant?
Je werkt met XHTML Strict, dan wil IE9 gouw in de IE7 of de IE8 modus springen dan werkt CSS3 niet.
O ja ... nog nooit op gelet.
Dit lijkt me trouwens niet volledig onterecht.

<!doctype html> is het teken dat de scripter aan de browser geeft om duidelijk te maken dat het om HTML5* gaat.

Als je expliciet in de hoofding zegt dat je oude technologie gaat gebruiken, is het wel wat je eigen fout als IE daar naar luistert.

(* nu ja ... de nieuwe standaard van HTML met alles wat daar aanhangt)
Mijn ervaring met box-shadow en opacity is dat het je site enorm vertraagd. Vooral merkbaar i.c.m. bijv. google maps. Ik heb het dus maar weer snel uitgezet. Iemand dezelfde ervaring?
Als je CSS3 gaat gebruiken doe dit dan ook i.c.m HTML5 en niet met oudere html. een lamborghini motor past ook niet in een fiat panda! :)
Ik weet niet of je het tegen mij hebt. maar is <!DOCTYPE html> niet voldoende?
Dit had ik en het werkt toch echt vertragend. (Vooral in firefox en IE)
HTML5 is niet alleen <!DOCTYPE hmlt> in principe kan je dat voor html 1.0 gebruiken en of het vertragend werkt.. hmm als je website gewoon een goede routing en goede structuur heeft zou dat niet uit moeten maken. Verder zou je DOM er heel anders uit moeten zien als je HTML5 zou gebruiken zo zie ik nergens html5 tags en ik denk dat je met juiste gebruik van de html5 elementen en functionaliteiten al met al veel sneller bent dan zijn voorgangers.

@Marijn heb je html5shiv al geprobeerd? dit wil meestal al een hoop ellende voor IE oplossen,
doctype lijkt niet het probleem te zijn, al eerder geprobeerd en met een andere site met zelfde doctype komt het probleem niet voor

[size=xsmall]Toevoeging op 02/10/2012 16:16:25:[/size]

ik zal eens naar html5shiv kijken, ken het niet

[size=xsmall]Toevoeging op 02/10/2012 16:35:36:[/size]

maar html5shiv is dus alleen voor IE < 9 en bij mij gaat het juist om IE9

Reageren