anoniem Geplaatst: 12 maart 2004 Delen Geplaatst: 12 maart 2004 Ik heb een pagina die ik met behulp van css wil 'lay-outen'. Alleen klopt de achtergrondkleur niet. Weten jullie raad??? HTML pagina [code:1:3ab350b94b]<html> <head> <title>Links</title> <script> //Hide status bar msg II script- by javascriptkit.com //Visit JavaScript Kit (http://javascriptkit.com) for script //Credit must stay intact for use function hidestatus(){ window.status='' return true } if (document.layers) document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT) document.onmouseover=hidestatus document.onmouseout=hidestatus </script> <script> window.open=null; </script> <link href="layout.css" rel="stylesheet" type="text/css" /> </head> <BODY> <h1>Links</h1><hr size=5 color=black> <P> Here are some links to good sites:<br><br> * <a href="http://www.gamemaker.nl" target="_blank"> Gamemaker Homepage</a><br> This is the official Gamemaker homepage, to download Gamemaker, games, tutorials and much more about Gamemaker<br><br> <hr color=black size=2><P> * <a href="http://hem.passagen.se/birchdale/carl/" target="_blank"> Carl's Gamemaker Page</a><br> This is a very good site about gamemaker, to download games, tutorials examples and much more about Gamemaker<br><br> <hr color=black size=2><P> * <a href="http://www.winzip.com" target="_blank">WinZip homepage</a><br> This is the official WinZip homepage to download WinZip.<br> You can also go to the <a href="downloads.html" target="index">download page</a> to download WinZip <br><BR><hr color=black size=2><P> * <a href="http://www.google.com" target="_blank">Google</a><br> This is Google, the best search-engine ever! <br><BR><hr color=black size=2><P> * <a href="http://www.yoshigoopgames.com" target="_blank">Yoshigoopgames</a> <br> This is a site for downloading games, reading reviews and more. <BR><BR><BR><BR><BR> </body> </html>[/code:1:3ab350b94b] Dit is de CSS code [code:1:3ab350b94b] <style type="text/css"> HTML,BODY{background-color: #45423f;} A:link { color: gray; text-decoration:none;} A:visited { color: gray; text-decoration:none;} A:hover { color: #D6E9C6; text-decoration:underline; } A:active { color: gray; text-decoration:none;} H1{text-align:center; border-width: thick; border-color:gray; border-style:double; color:gray; font-family:Arial,Verdana,serif; font-size:28px;} P{font-family: Verdana, Arial, 'Times New Roman', serif; font-size: 12px} BODY { scrollbar-3dlight-color: gray; scrollbar-arrow-color: black; scrollbar-darkshadow-color: #45423f; scrollbar-face-color: #45423f; scrollbar-highlight-color: #45423f; scrollbar-shadow-color: black; scrollbar-track-color: gray } </style> [/code:1:3ab350b94b] Quote Link naar reactie
anoniem Geplaatst: 12 maart 2004 Auteur Delen Geplaatst: 12 maart 2004 Hebben we het over de site die in je sig staat? Daar staat iets anders in je css: body {background: 45423f} Dat is duidelijk niet goed, en het lijkt me ook duidelijk waar de fout zit :wink: Quote Link naar reactie
anoniem Geplaatst: 12 maart 2004 Auteur Delen Geplaatst: 12 maart 2004 body {background: 45423f} is inderdaad niet goed, maar met IE werkt het wel. (vraagt meteen of ik iets wil installeren :( ) Dus als het wat anders is geef de url en/of zet het online. [edit] het komt door de regel <style type="text/css"> Die mag niet in de css file staan. ook </style> moet eruit. wimb Quote Link naar reactie
anoniem Geplaatst: 13 maart 2004 Auteur Delen Geplaatst: 13 maart 2004 <BODY></body> is ook niet helemaal correct. Het is sowieso slim om alle html elementen in kleine letters te schrijven. Quote Link naar reactie
anoniem Geplaatst: 13 maart 2004 Auteur Delen Geplaatst: 13 maart 2004 Misschien komt het doordat er 2 keer body in de css file staat ? Quote Link naar reactie
anoniem Geplaatst: 13 maart 2004 Auteur Delen Geplaatst: 13 maart 2004 [quote:9ceae5fcdb="The N Man"]Misschien komt het doordat er 2 keer body in de css file staat ?[/quote:9ceae5fcdb] Dat mag gewoon. Quote Link naar reactie
anoniem Geplaatst: 13 maart 2004 Auteur Delen Geplaatst: 13 maart 2004 Aaaahh die html doet pijn aan mijn ogen! 1. Gebruik noot . Gebruik liever CSS margin of padding om iets op te schuiven. 2. Al die javascript rotzooi die je hebt is nutteloos en irritant. Het is mij een raadsel waarom mensen dat gebruiken. Mensen vinden het fijn om in de statusbar te zien waar een link naar wijst. Quote Link naar reactie
anoniem Geplaatst: 13 maart 2004 Auteur Delen Geplaatst: 13 maart 2004 :roll: Misschien[code:1:3dd5fe5510]<style type="text/css"> en </style>[/code:1:3dd5fe5510]uit je gelinkte stylesheet "layout.css" verwijderen? :wink: Quote Link naar reactie
anoniem Geplaatst: 13 maart 2004 Auteur Delen Geplaatst: 13 maart 2004 bedankt allemaal! het werkt nu wel! Quote Link naar reactie
Aanbevolen berichten
Om een reactie te plaatsen, moet je eerst inloggen