anoniem Geplaatst: 10 april 2003 Delen Geplaatst: 10 april 2003 Ik heb een css bestandje wat er zo uitziet: [code:1:88635de8f3] body { background-color: #6699CC; scrollbar-base-color: #F1F4F7; font-size: 14px; color: #000000; font-family: Verdana; } a { text-decoration: underline; font-size: 14px; color: #FFFFFF; font-family: Verdana } a:link { text-decoration: underline; font-size: 14px; color: #FFFFFF; font-family: Verdana } a:visited { text-decoration: underline; font-size: 14px; color: #FFFFFF; font-family: Verdana } a:active { text-decoration: underline; font-size: 14px; color: #304C6C; font-family: Verdana } a:hover { text-decoration: none;} input, textarea, select { color : #000000; font-family : Verdana, Arial, Helvetica, sans-serif; font-size : 14px; }[/code:1:88635de8f3] Wat ik ook probeer bij body {font-size: 14px;}, hij reageert nergens op. De rest van de elementen werkt naar behoren. Ik andere CSS files van websites zie ik dat het font-size net zo wordt gebruikt, maar waarom het bij mij niet werkt? Geen idee. Dus misschien weten jullie hier wel raad mee. :) Quote Link naar reactie
anoniem Geplaatst: 10 april 2003 Auteur Delen Geplaatst: 10 april 2003 Speciaal voor jou 8) :[code:1:3685ab23a7]body{ background-color:#69C; scrollbar-base-color: #F1F4F7; color:#000; font:14px Verdana, Arial, Helvetica, sans-serif; /*beter om meerdere fonts op te geven */ } a{ text-decoration:underline; color:#FFFFFF; } a:active{ color:#304C6C; } a:hover{ text-decoration:none; } input, textarea, select{ /* zijn hetzelfde als body */ }[/code:1:3685ab23a7]-termin8or Quote Link naar reactie
anoniem Geplaatst: 10 april 2003 Auteur Delen Geplaatst: 10 april 2003 He, dank je wel. :) Maar als ik nu 14px verander in bijvoorbeeld 10px, blijft alles gewoon op de standaard grootte staan. :( Quote Link naar reactie
anoniem Geplaatst: 10 april 2003 Auteur Delen Geplaatst: 10 april 2003 klopt de verwijzing wel, hoe heet het stylesheet en waar staat die en wat is de verwijzing? -termin8or Quote Link naar reactie
anoniem Geplaatst: 10 april 2003 Auteur Delen Geplaatst: 10 april 2003 Ok, hier is de brondcode van index.php [code:1:fff847fa5b]<html> <head> <meta http-equiv="Content-Language" content="en-gb"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>The Screenshot Factory</title> <LINK HREF="src_fac.css" TYPE="text/css" REL=StyleSheet> </head> <table border="1" width="100%" bordercolor="#000000" cellspacing="0"> <tr> <td width="15%" valign="top" align="center" bgcolor="#92B6DA"> <p align="center">&</p> </td> <td width="60%" valign="top" align="center"> <h1 align="center">The Screenshot Factory</h1> </td> <td width="15%" valign="top" align="center" bgcolor="#92B6DA"> <p align="center">&</p> </td> </tr> <tr> <td width="15%" valign="top" align="center"> <h4 align="center"><b>Menu</b></h4> <p align="center"><a href="index.php">Home</a><br> <a href="downloads.php">Downloads</a><br> <a href="screenshots.php">Screenshots</a><br> <a href="search.php">Search</a><br> <a href="feedback.php">Feedback</a></p> </td> <td width="60%" valign="top" align="left" bgcolor="#92B6DA"> <h3 align="left">Home</h3> <p align="left">Welcome to the newest site on the world wide web. The purpose of this website is to be the largest database of screenshots of all kinds of games. Because every time you wanted to post a screenshot in a forum or on your website, you would have to search the web for that screenshot that you wanted. Or you'd have to search a lot of gaming sites for just a single screenshot. That is over from now on. And to realize this, we grant you the ability to submit your own screenshots. So, if you think there is a screenshot missing from this database, just send it to us! And if there is anything else you'd like to see here, you can use the <a href="feedback.php">feedback form</a>.</p> <h3 align="left">News</h3> <div align="center"> <center> <table border="1" width="90%" bordercolor="#000000" cellspacing="0"> <? include('dbconnect.php'); $query = mysql_query('select * FROM news ORDER BY id desc LIMIT 25'); while ($news = mysql_fetch_array($query)) { echo ('<tr>'); echo ('<td width="5%" height="29" align="center"> <img border="0" src="images/list.gif"></td>'); echo ('<td width="15%" height="29" align="center">' . $news['date'] . '</td> </center>'); echo ('<td width="80%" height="29" align="center"> <p align="left"><a href="news.php?id=' . $news['id'] . '">' . $news['title'] . '</a></td>'); echo ('</tr>'); } ?> </table> </center> </div> <br> </td> <td width="15%" valign="top" align="center"> <h4 align="center"><b>Newest Screenshots</b></h4> <h4 align="center"><b>Highest rated</b></h4> <h4 align="center"><b>Most viewed</b></h4> </td> </tr> <tr> <td width="15%" valign="top" align="center" bgcolor="#92B6DA"> <p align="center">&</p> </td> <td width="60%" valign="middle" align="center"> <p align="center">Copyright Cmdr Chakotay 2003</td> <td width="15%" valign="top" align="center" bgcolor="#92B6DA"> <p align="center">&</p> </td> </tr> </table> </html> [/code:1:fff847fa5b] De Stylesheet staat in dezelfde dir als index.php [code:1:fff847fa5b]body{ background-color:#69C; scrollbar-base-color: #F1F4F7; color:#000; font:14px Verdana, Arial, Helvetica, sans-serif; /*beter om meerdere fonts op te geven */ } a{ text-decoration:underline; color:#FFFFFF; } a:active{ color:#304C6C; } a:hover{ text-decoration:none; } input, textarea, select{ /* zijn hetzelfde als body */ }[/code:1:fff847fa5b] Verder draai ik om php en mysql werkend te krijgen phpdev met apache webserver onder WinXP. Maar ook al zet ik de webserver uit, dan doet ie het nog niet. En ik heb echt geen idee waar het aan ligt. De achtergrondkleur, lettertype etc doet het allemaal via de CSS, maar het enige is dus de lettergrootte. :-? Weird... Quote Link naar reactie
anoniem Geplaatst: 10 april 2003 Auteur Delen Geplaatst: 10 april 2003 Gruwelijk broncode heb je, volgens mij zijn er browser die tabellen enzo niet renderen naar aanleiding van wat er in de body staat (weer een rede om geen tabellen te gebruiken :D ). Voeg dit dan nog even toe: table, td, tr{font-size:14px;} -termin8or Quote Link naar reactie
anoniem Geplaatst: 10 april 2003 Auteur Delen Geplaatst: 10 april 2003 Yeah! Nu werkt het wel als ik de code verander bij die table font. :) Thanks! En over die broncode: de site is net begonnen en is verre van af. ;) Maar nou ben ik niet zo'n expert met html, dus wat is er gruwelijk aan? :roll: Quote Link naar reactie
anoniem Geplaatst: 10 april 2003 Auteur Delen Geplaatst: 10 april 2003 mooi dat het werkt, in mozilla had hij het waarschijnlijk zoiezo gedaan. de tabellen worden voor een verkeerd doeleinde gebruikt (check sig) <br> is onnodig hier opmaakattributen (bv height) -termin8or Quote Link naar reactie
anoniem Geplaatst: 11 april 2003 Auteur Delen Geplaatst: 11 april 2003 Hmm, ik weet niet of dat gaat lukken met die sig van jou, maar ik zal wel ff kijken. Tot nu toe ziet de site er zo uit: http://members.lycos.nl/cmdrforums/ Nog lang niet af nee. ;) Quote Link naar reactie
anoniem Geplaatst: 11 april 2003 Auteur Delen Geplaatst: 11 april 2003 *kuch* ehhhhhh..... Leuk dat je de body opmaak meegeeft, maar als je die niet gebruikt......... :wink: (table, td, tr{font-size:14px;} is dan niet meer nodig) -Rémy Quote Link naar reactie
anoniem Geplaatst: 11 april 2003 Auteur Delen Geplaatst: 11 april 2003 lol en ik maar denken dat het alleen nn4 was die dat met tabellen zo deed en nu ineens voor een verassing kwam te staan. -termin8or Quote Link naar reactie
Aanbevolen berichten
Om een reactie te plaatsen, moet je eerst inloggen