[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Webmasterplein.net • Toon onderwerp - probleem met meerdere p classes in extern css document in xh
aan alle goede dingen komt een eind, webmasterplein.net 2003 - 2013
wij danken jullie voor al mooie momenten die dankzij dit forum ontstonden - Derk, Rutger en Stef

probleem met meerdere p classes in extern css document in xh

Het echte opmaakwerk, alles vragen over HTMLen, CSSen en Javascripten.

probleem met meerdere p classes in extern css document in xh

Berichtdoor Anonymous » 09 aug 2007 09:59

ik wil mijn haren uit mijn hoofd trekken! :o

(de codes staan onderaan)
ik snap er niets van.. ik probeer een menu te maken voor een pagina, en die bestaat uit meerdere tabellen die in elkaar geplaatst zijn, en de opmaak van zo'n beetje ALLES op de pagina staat in css. ook de opmaak van de tekst dus. nou wil ik meerdere 'p' classes maken zodat ik twee verschillende soorten opmaak kan gebruiken voor de pagina, logisch toch? goed, nu krijg ik de tweede p class met geen geweld werkende.. als ik de tweede p toeschrijf aan de class "starknop2" ipv "startknop 1" krijg ik een standaard times new roman lettertype, terwijl de class in principe precies hetzelfde is! hoe kan dit! hoe krijg ik dit werkende? iemand suggesties!? ik snap er echt helemaaal niets meer van :o

bij voorbaat dank :)

--

codes:


de CSS:

body {
background-color: #e1ddda;
}


table.menu {
width: 100%;
background-color: #cbc3bd;
border: 0px;
border-spacing: 0px;
}


table.gehelebar {
width: 100%;
background-color: #cbc3bd;
border-width: 0px;
border-bottom: 1px;
border-collapse: separate;
border-style: outset outset outset outset;
border-color: #5d594e;
}


td.startknop {
width: 80px;
background-color: #cbc3bd;
border-width: 1px;
border-collapse: separate;
border-style: solid;
border-color: #cbc3bd;
padding: 5px;
}


td.startknop:hover {
width: 80px;
background-color: #bebebe;
border-width: 1px;
border-collapse: separate;
border-style: outset;
border-color: gray gray gray gray;
padding: 5px;
cursor: default;
}


td.bar {
width: 100%;
background-color: #cbc3bd;
border-width: 0px;
border-collapse: separate;
border-style: none;
padding: 2px;
margin: 0px;

}


p.startknop {
color: #5d594e;
font-family: silkscreen; tahoma;
font-size: 6pt;
font-weight: none;
margin: 0px;
}

p.startknop2 {
color: #5d594e;
font-family: silkscreen; tahoma;
font-size: 6pt;
font-weight: none;
margin: 0px;
}


de XHTML:




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">


<head>
<title>W I L C O &nbsp; L E N S I N K &nbsp; photography __</title>
<link rel="stylesheet" type="text/css" href="startmenu.css" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>

<style type="text/css">
body {margin: 0px; }
</style>
</head>


<body>


<table class="menu"><tr><td>


<table class="gehelebar">
<tr>

<td class="startknop">
<p class="startknop">home</p>
</td>

<td class="startknop">
<p class="startknop">photography</p>
</td>

<td class="startknop">
<p class="startknop">poetry</p>
</td>

<td class="startknop">
<p class="startknop">exit</p>
</td>

<td class="bar">
<p class="startknop2">wilco lensink photography</p>
</td>


</tr>
</table>


</td></tr></table>

</body>
Anonymous
 

Re: probleem met meerdere p classes in extern css document in xh

Berichtdoor Anonymous » 09 aug 2007 10:06

ter illustratie van wat ik bedoel heb ik dit plaatje even gemaakt..

http://www.flickr.com/photos/bishounen/1059767454/


het lettertype silkscreen heb je misschien niet maar ik heb tahoma als backup gebruikt dus het zou alsnog anders moeten zijn dan times new roman.
Anonymous
 

Re: probleem met meerdere p classes in extern css document in xh

Berichtdoor frizzy » 09 aug 2007 10:07

frizzy
wmpr
 
Berichten: 4261
Geregistreerd: 20 sep 2006 16:03
Woonplaats: Boskoop :D

Re: probleem met meerdere p classes in extern css document in xh

Berichtdoor KillerSponge » 09 aug 2007 10:13

Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Re: probleem met meerdere p classes in extern css document in xh

Berichtdoor frizzy » 09 aug 2007 10:21

nee, als je 100% bij een div of table doet moet je eerst definieren dat de body 100% breedt is. Nieuw in xHtml ;)
frizzy
wmpr
 
Berichten: 4261
Geregistreerd: 20 sep 2006 16:03
Woonplaats: Boskoop :D

Re: probleem met meerdere p classes in extern css document in xh

Berichtdoor KillerSponge » 09 aug 2007 10:42

Ik bedoelde meer dat gray gray gray gray ;)
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Re: probleem met meerdere p classes in extern css document in xh

Berichtdoor frizzy » 09 aug 2007 10:44

frizzy
wmpr
 
Berichten: 4261
Geregistreerd: 20 sep 2006 16:03
Woonplaats: Boskoop :D

Re: probleem met meerdere p classes in extern css document in xh

Berichtdoor Anonymous » 09 aug 2007 10:54

Bedankt voor de snelle reacties! En terwijl ik aan elke ook wel wat had (vooral de body width: 100% was echt geweldig, dank je, die kende ik niet en is een goede vervanging voor leftmargin=0 topmargin=0 waar ik al naar op zoek was), MAAR!

niemand heeft echt op mijn vraag geantwoord eigenlijk. maar ik heb ook een verkeerd voorbeeld gegeven inderdaad door silkscreen en tahoma niet te scheiden met een komma maar een puntkomma.. maar goed, hoe dan ook. IK heb dat lettertype uiteraard op mijn computer en het gaat niet per se om het lettertype, maar dat ie de TWEEDE P CLASS, startknop2, niet pakt! ook niet als je het veranderd naar "silkscreen, tahoma" ipv "silkscreen; tahoma"

ik heb zoals ik al zei wel silkscreen geinstalleerd en nog steeds werlt het niet.. ik snap niet waarom ik niet twee p classes kan definieren in mijn css/xhtml wirwar! :|

hier gaat het om:

p.startknop {
color: #5d594e;
font-family: silkscreen; tahoma;
font-size: 6pt;
font-weight: none;
margin: 0px;
}

p.startknop2 {
color: #5d594e;
font-family: silkscreen; tahoma;
font-size: 6pt;
font-weight: none;
margin: 0px;
}

en dit:

<td class="bar">
<p class="startknop2">wilco lensink</p>
</td>


</tr>
</table>
Anonymous
 

Re: probleem met meerdere p classes in extern css document in xh

Berichtdoor libia » 09 aug 2007 10:59

zit volgensmij geen fout in :D
ola, un cerveza por favor.


of
Avatar gebruiker
libia
wmpr
 
Berichten: 4149
Geregistreerd: 23 okt 2005 14:14
Woonplaats: Alphe!!

Re: probleem met meerdere p classes in extern css document in xh

Berichtdoor libia » 09 aug 2007 11:02

http://jigsaw.w3.org/css-validator/vali ... medium=all
en doe ook een w3c controle
edit http://validator.w3.org/check
ze hebben nieuwe layout bij w3c :D
ola, un cerveza por favor.


of
Avatar gebruiker
libia
wmpr
 
Berichten: 4149
Geregistreerd: 23 okt 2005 14:14
Woonplaats: Alphe!!

Re: probleem met meerdere p classes in extern css document in xh

Berichtdoor frizzy » 09 aug 2007 11:24

Komt er 1 achter :') Die hebben ze al een week of 3 :P
frizzy
wmpr
 
Berichten: 4261
Geregistreerd: 20 sep 2006 16:03
Woonplaats: Boskoop :D

Re: probleem met meerdere p classes in extern css document in xh

Berichtdoor Anonymous » 09 aug 2007 11:41

Anonymous
 

Re: probleem met meerdere p classes in extern css document in xh

Berichtdoor frizzy » 09 aug 2007 11:48

probeer het anders eens met een list. Zo hoort het eigenlijk...
... ja ik weet het, ik overdrijf de w3c regels wel eens :P
frizzy
wmpr
 
Berichten: 4261
Geregistreerd: 20 sep 2006 16:03
Woonplaats: Boskoop :D

Re: probleem met meerdere p classes in extern css document in xh

Berichtdoor libia » 09 aug 2007 12:07

ola, un cerveza por favor.


of
Avatar gebruiker
libia
wmpr
 
Berichten: 4149
Geregistreerd: 23 okt 2005 14:14
Woonplaats: Alphe!!

Re: probleem met meerdere p classes in extern css document in xh

Berichtdoor KillerSponge » 09 aug 2007 12:08

Ik heb de code lokaal getest, en bij mij werkt het gewoon.

http://junk.killersponge.nl/meuk/wilcolensink.PNG

Enne, zowel libia als frizzy: ontopic blijven.
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Re: probleem met meerdere p classes in extern css document in xh

Berichtdoor libia » 09 aug 2007 12:12

ola, un cerveza por favor.


of
Avatar gebruiker
libia
wmpr
 
Berichten: 4149
Geregistreerd: 23 okt 2005 14:14
Woonplaats: Alphe!!


Keer terug naar HTML, CSS, Javascript



cron