Jump to content

scherpenzeel

Members
  • Posts

    29
  • Joined

  • Last visited

scherpenzeel's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. OK thanks for the good hints I will have a closer look at the css. For the menu I include topmenu.php which looks like this:<ul id="nav"><li><a href="?actie=home">Home</a></li><li><a href="?actie=voorbeelden">Voorbeelden</a></li><li><a href="?actie=werkwijze">Werkwijze </a></li><li><a href="?actie=aanbiedingen">Aanbiedingen</a></li><li><a href="?actie=contact">Contact</a></li></ul> Can this cause any problems. Or is it necessary that all the line are "echo-ed" ?Have this as well in a other site and works well for that one. Strange thing is that the other site I meantioned above looks good in both iE en FF but is only in IE not centered? http://mokasol.nl in this site i use the same system as above.. with include and the menu included as well.
  2. this is the page i include:<div id="wrapper"><div id="container"><!-- logo --><!-- div id="logo"></div> --><!-- navigatie --><div id="navigatie"><?php include("topmenu.php");?></div><!-- 8 boxes --><div id="sub_home"><div id="kop_in_plaatsvan_submenu">Onze werkwijze</div> <div id="boxes_homepage"><ul><li class="meubels"><a href="?actie=voorbeelden"></a></li><li class="tafel"><a href="?actie=voorbeelden"></a></li><li class="check"><a href="?actie=voorbeelden"></a></li><li class="keuken1"><a href="?actie=voorbeelden"></a></li><li class="balie"><a href="?actie=voorbeelden"></a></li><li class="bedrijf"><a href="?actie=voorbeelden"></a></li><li class="keuken2"><a href="?actie=voorbeelden"></a></li><li class="keukens"><a href="?actie=voorbeelden"></a></li></ul></div></div></div></div></div></div> nothing special I gues? I can post my css as well..
  3. <?phpsession_start();ob_start();error_reporting(E_ALL);//Alles includen wat we nodig hebben.//Controlleer of iemand ingelogd is of een koekje heeft om dat te regelen.//controlleerinlog();//Controlleer of iemand hier wel welkom is.//controlleerban(); ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><title>WWW.MENES.NL MEUBELMAKERIJ NIJMEGEN KEUKENS TAFELS KASTEN EN INTERIEURBOUW ALLES OP MAAT</title><script language="JavaScript" src="inhoud/javascript.js"></script><link href="/css/menes_details.css" rel="stylesheet" type="text/css" /><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15"></head><body onLoad="thisForm=document.formulier;"><?php// toegestane pagina's in een array zetten$toegestaan=array("home","voorbeelden","werkwijze","contact","nieuws","aanbieding","keukencheck","keukendetail","registreren","mail","activeren","inloggen","uitloggen","fotoboek","fotoalbum");// controleren of er een pagina is meegegeven)if(isset($_GET['actie'])){ // de binnengehaalde variabele omzetten naar kleine letters $actie = strtolower($_GET['actie']); // controleren of de pagina voorkomt in de array if (in_array($actie, $toegestaan)) { // wanneer die toegestaan is includen include($actie.".php"); }else{ // wanneer die niet toegestaan is standaard pagina includen. include("home.php"); }}else{ include("home.php");}?> </body></html> pages are included by ?action=page.phpNow whem just opening the page directly like www.sitename/page.phpThey look realy fine. But when including in above system they are completely messed up????? What can I do please help.Thanks.
  4. Hi I have tried your solution, now the page wil be included without the html parts but the css is still messed up??? Aaaaaaaaah, (sorry). here is the same problem occuring on a other site I am working on:the messed up ones My Webpagelike it should show (for now its only good in IE, for FF must change soemthings?):the right page
  5. Thanks for your quick reaction. Ok I had that already in mind as a possible solution. Now I wil give it a try. So all important tags need to be on the index.php ? But what if someone find a page which is indexed by google? Than it has no title? Or Am i wrong here. Well lets see how things are working, hopefully the css wil do its job then..:)Thanks
  6. Hi I have this site were i use a page system like ?action=page1 etc.To get this working i have an index.php where i include a page called navigation.That holds the part that ensures the ?action=... The pages i have designed with css style sheet are nice looking and centred in the middle where I want it to be. But after the include in the index page they are no longer centred and are. on the left site.Now I tried to include the css part in the index page again ?which works but than I have two <head></head> parts in the page which is not good... :)How can I solve this problem. It also apears whem just using the navigation page as index.php ....Any idear. you can have a look here for sample page:just type index.php and you wil see what the difference is.My Webpagelooking forward to sharp idears.
  7. Hi this is a form i use and I have to say it goes like thunder. Its secure and spam protected. Very easy to use, just include the form in your page and it wil work.you only have to change the receivers e-mail adres. and the text (the parts are in red now are in dutch have fun with it. <? // the e-mail addres of receiver $mail_ontv = "info@yoursite.com";// is not 100% !!! function checkmail($mail) { $email_host = explode("@", $mail); $email_host = $email_host['1']; $email_resolved = gethostbyname($email_host); if ($email_resolved != $email_host && eregi("^[0-9a-z]([-_.~]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,4}$",$mail)) $valid = 1; return $valid; } // if not submited, or submitted and forgot somethingsif (!$_POST['submit'] || $_POST['submit'] && (!$_POST['naam'] || !$_POST['mail'] || !checkmail($_POST['mail']) || !$_POST['msggs'] || !$_POST['onderwerp'])) { if ($_POST['submit'] && (!$_POST['naam'] || !$_POST['mail'] || !checkmail($_POST['mail']) || !$_POST['msggs'] || !$_POST['onderwerp'])) { echo "forgot name, e-mail addres, or subject, text. "; echo "or the e-mail adres is not right.<p>"; } // form + tabel echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"; echo "<form method=\"POST\" ACTION=\"" . $_SERVER['PHP_SELF'] . "\">"; // name echo "<tr><td>Name:</td></tr>"; echo "<tr><td><input type=\"text\" name=\"naam\" value=\"" . $_POST['naam'] . "\"></td></tr>"; // space echo "<tr><td> </td></tr>"; // mail echo "<tr><td>E-mail adres:</td></tr>"; echo "<tr><td><input type=\"text\" name=\"mail\" value=\"" . $_POST['mail'] . "\"></td></tr>"; // space echo "<tr><td> </td></tr>"; // mail echo "<tr><td>Onderwerp:</td></tr>"; echo "<tr><td><input type=\"text\" name=\"onderwerp\" value=\"" . $_POST['onderwerp'] . "\"></td></tr>"; // space echo "<tr><td> </td></tr>"; // mail echo "<tr><td>Bericht:</td></tr>"; echo "<tr><td><TEXTAREA name=\"msggs\" ROWS=\"6\" COLS=\"40\">" . htmlentities($_POST['msggs']) . "</TEXTAREA></td></tr>"; // space echo "<tr><td> </td></tr>"; // button echo "<tr><td> </td></tr>"; echo "<tr><td><input type=\"submit\" name=\"submit\" value=\"Versturen\"></td></tr>"; // close form + tabel echo "</form>"; echo "</table>"; } // sent to/ versturen naar else { // set date $datum = date("d.m.Y H:i"); // set ip $ip = $_SERVER['REMOTE_ADDR']; $inhoud_mail = "===================================================\n"; $inhoud_mail .= "mail from your site.....here name\n"; $inhoud_mail .= "===================================================\n\n"; $inhoud_mail .= "Naam: " . $_POST['naam'] . "\n"; $inhoud_mail .= "E-mail adres: " . $_POST['mail'] . "\n"; $inhoud_mail .= "Bericht:\n"; $inhoud_mail .= $_POST['msggs'] . "\n\n"; $inhoud_mail .= "Verstuurd op $datum via het ip " . $ip . "\n\n"; $inhoud_mail .= "===================================================\n\n"; // -------------------- // spambot protection // ------ // from tutorial: http://www.phphulp.nl/php/tutorials/10/340/ // ------ $headers = "From: " . $_POST['naam'] . " <" . $_POST['mail'] . ">"; $headers = stripslashes($headers); $headers = str_replace("\n", "", $headers); // Verwijder \n $headers = str_replace("\r", "", $headers); // Verwijder \r $headers = str_replace("\"", "\\\"", str_replace("\\", "\\\\", $headers)); // Slashes van quotes $_POST['onderwerp'] = str_replace("\n", "", $_POST['onderwerp']); // Verwijder \n $_POST['onderwerp'] = str_replace("\r", "", $_POST['onderwerp']); // Verwijder \r $_POST['onderwerp'] = str_replace("\"", "\\\"", str_replace("\\", "\\\\", $_POST['onderwerp'])); // Slashes van quotes mail($mail_ontv, $_POST['onderwerp'], $inhoud_mail, $headers); echo "your message has been send."; echo "Thaks for you reaction."; // echo "even more tekst here.</p>"; //echo "<p>and a other line here "; //echo "or what about this line here.</p>"; } ?>
  8. Thanks guys now it looking the way i wanted it.
  9. Thanks Both for your "early" reply. I changed it into the align right but then I am ending up the wrong way. Now the menu is back on the left side again and what I wanted is having it on the right side But when I use float right the hrefs are messed up and showing of reversed (the other way auround)instead of hrf1, href2, href3, href4 it end up like href4, href3, href2, href1.in my sample hrf1=homeStrange behaviour.. Pherpahs the only solution is adding an additional div which i then float to the right? But that's not what i wanted. So someone with an other clever idea?
  10. No its not working than its again on the left hand... I keep on trying
  11. OK I wil try that. Thanks for your help.I have tried it but than the menu is again on the left so I thought than also have float with the li but that does not make a difference.
  12. Hi I have a strange problem. I have a menu box. First it was lined to the left since the design is asking for the menu showing on the right I have done float right for the li part. Now its giving me the wrong result:The menu: which shows of nice, but with the list in reverse order? starting with the last href instead of starting with the first one = index. <div id="menu"> <ul> <li><a href="?actie=index_3a">Home</a></li> <li><a href="?actie=log">Log</a></li> <li><a href="?actie=recepten">Recepten</a></li> <li><a href="?actie=contact">Contact</a></li> <li><a href="?actie=workshop">Workshop</a></li> <li><a href="http://www.emaand.nl" target="_blank"> Pizza van de maand!</a></li> </ul></div> How can I get this lined up in teh right way?this is the css for this part: #menu{ width:973px; padding-top:5px; padding-bottom:0px; padding-left:0px; height: 31px; padding-right: 0px; margin: 0px; margin-right:0px; margin-bottom: 0px; margin-left:0px; background-image: url(/pizzatest/afbeeldingen/menu.jpg); background-repeat: no-repeat; background-color: #FFFFFF; }/* ------------------- menu boven lijst opmaak ------------------- */ #menu ul{ width:973px; padding:0; margin:0; list-style-type:none; color: #003399; }#menu li{ display:inline; color: #003399; float: right; } #menu li a{ color: #666600; text-decoration: none; font-size: 90%; padding: .2em .5em; background-color: #E9FFD2; text-transform: none; }#menu li a:hover{ color: #FFFFFF; background-color: #666600; text-decoration: none;} #menu li a:active{ color: #666600; font-weight: bolder;} How to Get this right? here is a sample for both ie and ff: My Webpage
  13. Hi I think I have solved it.. changed the height of the #inhoud from 400px to auto that seems to work.. thanks for your suport ps if you have some additional advise to improve please drop it here.Thanks
  14. Thanks for replying, tried it but its not the solution. I want the footer to move down with the stretching of the contentbox.. As it does now in IE.
  15. When I have more content in the content box it wil stretch and then in FF it goes through / under the footer. Since I want to use this content box for an weblog it must be able to become longer...:)How can I solve this? So the footer must go down as the contentbox stretches..this is where you can see the page in action:My Webpagethis is my css: /* -------------------hoofdonderdelen------------------- *//* ------------------- Copyright Hocom @dvies 2006 ----- */* { margin: 0px 0px; padding: 0px 0px; text-align: left;}html{ weight: 100%; text-align: center; background-color: #569313; font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 1em; color: #666600; height: 100%;} body{ font-family:Geneva, Arial, Helvetica, sans-serif; color:#666600; background-color: #569313; margin-left: 0px; margin-right: 0px; text-align: left; font-size: 1em; height: 100%;}/* ------------------- standard links ------------------- */a{color:#003399;text-decoration:none;}a:hover{ color: #666600; background-color: none; text-decoration: underline;}/* ------------------- menu box boven ------------------- */#menu{ width:900px; padding-top:0px; padding-bottom:0px; padding-left:0px; background-color: #FFFFFF; border-top-color: #ddd; border-bottom-color: #ddd; border-top-style: solid; border-bottom-style: solid; border-top-width: 0px; border-bottom-width: 0px; height: 30px; padding: 0px; padding-right: 0px; margin: 0px; margin-top: 0.6em; margin-right:; margin-bottom: 0px; margin-left:; }/* ------------------- menu boven lijst opmaak ------------------- #menu li a{ color: #666600; text-decoration: none; font-size: 90%; padding: .2em .5em; background-color: #E9FFD2; text-transform: none;}#menu li a:hover{ color: #FFFFFF; background-color: #666600; text-decoration: none;} #menu li a:active{color: #666600; font-weight: bolder;}#menu ul{ width:900px; padding:0; margin:0; list-style-type:none; color: #003399;}#menu li{ display:inline; color: #003399;} *//* ------------------- opmaak met tabbladen ------------------- *//* code voor de lijst*/#menu ul{ margin: 0; padding: 4px 0; /* waarde die in IE nodig is */ border-bottom: 1px solid #ddd; font-size: 85% }/* hack om IE-tekortkoming te omzeilen */html>body #menu ul{ padding: 3px 0; /* eigenlijk gewenste waarde */}#menu ul li{ display: inline;}#menu li a:hover{ color: #FFFFFF; background-color: #666600; text-decoration: none;}/* Het tabblad-achtige uiterlijk instellen */#menu li a{ padding: 0.2em 0.8em; 0.2em; border: 1px solid #ddd; list-style: none; display: inline; background-color: #FFFF00; text-decoration: none; color:#439816; font-weight: 800; font-style: italic;}/* de geselecteerde tab een afwijkend uiterlijk geven */#menu li a.selected{ border-bottom: 1px solid #fff; background-color: #fff;}/* ------------------- de boxes ------------------- */#desite{ width:900px; background-color: #FFFFFF; margin: auto; padding: auto; height: auto;}#header{ width:900px; background-repeat: no-repeat; height: 150px; background-image: url(/gras.jpg); background-position: center; border-bottom-color: #ddd; border-top-color: #3C9924; border-top-style: solid; border-bottom-style: solid; border-top-width: thin; border-bottom-width: thin; background-color: #E9FFD2;}.navigatie{ text-align:left; background-color: #FFFFFF; }#site{ height:100%; width:900px; text-align:left; background-color: #FFFFFF; margin-right: 0px; margin-top: 0px; float: left; margin-bottom: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin: 0; padding: 0;}#inhoud{ height:400px; width:70%; text-align:left; float:left; background-color: #FFFFFF; padding-top: 15px; padding-left: 5px; margin-top: 10px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-right: 0px; padding-bottom: 0px;}#rechts{ height:400px; width:28%; float:right; background-color: #FFFFFF; padding-left: 0px; padding-bottom: 0px; padding-top: 15px; margin-bottom: 0px; margin-left: 0px; padding-right: 0px; margin-right: 0px; margin-top: 10px;}#linkerkant{ float:left; width:30%; background-color: #FFFFFF; height: 100%;}#rechterkant{ float:right; width:60%; margin: 0; margin-top: 0px; margin-right: 10px; margin-bottom: 0px; margin-left: 0px; padding: 0; padding-bottom: 0px; padding-right: 0px; height: 100%; background-color: #FFFFFF;}#info{ float:left; width:100%; background-color: #FFFFFF;}.nieuws{ width:100%; border-top:2px; background-color: #FFFFFF; border-right-color: #439816; border-bottom-color: #439816; border-left-color: #439816; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-color: #439816; border-top-style: solid;}.middentekst{ width:100%; border:0px; background-color: #FFFFFF; float: right; margin-top: 15px; }.info{width:99%;border:0px solid #000000;border-top:0px;}.nieuws a{color:#003399;text-decoration:none;}.nieuws a:hover{ color:#FFFFFF; text-decoration:none; background-color: #FFCC33;}.titelhoofd{ text-align:left; color:#7E8A58; font-weight:bolder; padding: 3px; padding-left:10px; text-transform: uppercase; font-size: 90%; font-style: italic;}.nieuwsbody{ text-align:left; padding:5px; font-size: 70%; background-color: #FFFFFF;}.nieuwsbodykleur1{ text-align:left; padding:5px; font-size: 70%; background-color: #FDEFB9;}.nieuwsbodykleur2 { text-align:left; padding:5px; font-size: 70%; background-color: #E2DBA9;}.infobody{ text-align:left; background-color: #FFFFFF; font-size: 70%; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; width: 100%;}#footer{ width:900px; background-color: #DEDFD7; border-top-color: #CCCCCC; height: 17px; border-top-style: solid; border-top-width: 1px; valign: bottom; padding-top: 3px; margin-top: 10px; padding-bottom: 3px; float: left; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #CCCCCC; background-image: url(../afbeeldingen/carex_www.jpg); background-repeat: no-repeat; background-position: center; clear: both; color: #FFFFFF;}.footertekst { color: #FFFFFF; padding-left: 15px; font-size: 70%; float: left;}.footertekst_rechts { color: #003399; padding-right: 15px; font-size: 70%; float: right; margin-right: 90px; word-spacing: 2em;}.fotobody { width:100%; height: 119px; float: right;}.fotosblokje_links { width: 158px; height: 119px; float: left; background-color: #FFFFFF;}.fotosblokje_rechts { float: left; width: 158px; height: 119px; background-color: #FFFFFF; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px;}.topboxrechts { width:99%; background-color: #FFFFFF; height: 119px; float: left; margin: 0; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding: 0; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;}.logobox { width:158px; background-color: #FFFFFF; float: left; border-color: #CCCCCC; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; color: #003399; margin-top: 10px; margin-right: 0px; margin-left: 0px; margin-bottom: 0px; font-size: 70%; font-weight: bold; height: 119px; padding-right: 5px; background-repeat: no-repeat;}.fotobodyonder { width:100%; margin-bottom: 0px; margin-left: 0px; padding-bottom: 0px; padding-right: 0px; padding-left: 0px; height: 272px; visibility: hidden; z-index: auto;}/* ------------------- opmaakelementen ------------------- */.fotorechts { padding: 5px; float: right}.fotolinks { padding: 5px; float: left}.titel { text-align:left; color:#7F795F; font-weight:bolder; padding: 3px; padding-left:10px; text-transform: uppercase; font-size: 80%; font-family: "Courier New", Courier, mono;}
×
×
  • Create New...