Ga naar inhoud

Font-size command in CSS werkt niet.


Aanbevolen berichten

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. :)
Link naar reactie
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
Link naar reactie
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...
Link naar reactie

Om een reactie te plaatsen, moet je eerst inloggen

Gast
Reageer op dit topic

×   Geplakt als verrijkte tekst.   Herstel opmaak

  Er zijn maximaal 75 emoji toegestaan.

×   Je link werd automatisch ingevoegd.   Tonen als normale link

×   Je vorige inhoud werd hersteld.   Leeg de tekstverwerker

×   Je kunt afbeeldingen niet direct plakken. Upload of voeg afbeeldingen vanaf een URL in

  • Populaire leden

    Er is nog niemand die deze week reputatie heeft ontvangen.

  • Leden

    Geen leden om te tonen

×
×
  • Nieuwe aanmaken...