[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/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 - 100% Div // Dubbele Border
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

100% Div // Dubbele Border

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

100% Div // Dubbele Border

Berichtdoor Rik » 01 dec 2005 19:45

Hallo ,

Ik wil twee Div's naast elkaar plaatsen.
Een is 30% en de ander 70%.
Alleen lijkt het nu alsof het scherm maar voor iets van 95% is.
Hij plaatst de eerste boven de tweede.
Aan de rechterkant laat hij nog een klein stukje zonder Div.
Mijn code:
[syntax="html"]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN">
<html>

<head>
<title>Test site</title>
<style type="text/css">
body {
background:#007;
color:#FFF;
text-align:center;
}
a:link{
text-decoration:none;
font-style:italic;
color:#FFF;
}
a:active{
text-decoration:none;
font-style:italic;
color:#FFF;
}
a:visited{
text-decoration:none;
font-style:italic;
color:#FFF;
}
a:hover{
text-decoration:underline;
font-style:italic;
color:#FFF;
}
#alles{
width:70%;
}
#central{
width:100%;
border-right:1px solid #FFF;
border-left:1px solid #FFF;
border-top:1px solid #FFF;
border-bottom:1px solid #FFF;
text-align:left;
}
#titel{
width:70%;
border-right:1px solid #FFF;
border-left:1px solid #FFF;
border-top:1px solid #FFF;
text-align:left;
float:left;
}
}
#datum{
width:30%;
border-right:1px solid #FFF;
border-top:1px solid #FFF;
text-align:left;
float:right;
}
</style>
</head>

<body>
<div id="alles">
<div id="titel">Test</div><div id="datum"></div>
<div id="central">Dit is een <a href="gff">Link</a>.<br />Test.</div>
</div>
</body>
</html>
[/syntax]
En ik heb nog een vraag.
Is het ook mogelijk dat als 2 borders tegen elkaar aan komen dat die dan verkleind worden zodat 't 1 lijkt?
Alvast bedankt ,

Bloe
Avatar gebruiker
Rik
wmpr
 
Berichten: 1576
Geregistreerd: 11 jun 2005 17:59

Berichtdoor Anthony » 01 dec 2005 21:11

je div #alles zorgt ervoor dat je pagina maar 70% breed is

2 divs naast elkaar plaatsen doe je als volgt

[syntax="html"]<div id="container">
<div id="links">
</div>
<div id="rechts">
</div>
</div>[/syntax]

[syntax="css"]#container {width:100%;}
#links {
width:30%;
float:left;
}
#rechts {
width: 70%;
float:left;
}[/syntax]
Avatar gebruiker
Anthony
wmpr
 
Berichten: 2828
Geregistreerd: 07 aug 2004 14:05
Woonplaats: Brugge - België

Berichtdoor Rik » 02 dec 2005 06:54

Bedankt voor de reactie.
Maar dat is niet helemaal wat ik bedoel.
Die 3 Div's moeten in het totaal maar 70% van 't beeldscherm innemen.
Hij laat aan het rechtergedeelte van die 2e Div een stukje open.
Hier is voor de duidelijkheid een screenshot.

Ik hoop dat het nu duidelijker is.
Avatar gebruiker
Rik
wmpr
 
Berichten: 1576
Geregistreerd: 11 jun 2005 17:59

Berichtdoor julien » 02 dec 2005 08:26

Moet je je padding en margin niet telkens op 0 zetten? Ik denk dat je door gewoon 30% en 70% verder dan 100% uitkomt.
http://www.sitemasters.be/?pagina=tutor ... at=2&id=90
Avatar gebruiker
julien
wmpr
 
Berichten: 2195
Geregistreerd: 28 nov 2003 16:21
Woonplaats: Kortrijk

Berichtdoor Rik » 02 dec 2005 17:13

Ook bedankt voor de reactie.
Dit werkt helaas ook niet.
Avatar gebruiker
Rik
wmpr
 
Berichten: 1576
Geregistreerd: 11 jun 2005 17:59

Berichtdoor Anthony » 02 dec 2005 18:19

Als je natuurlijk leuk gaat doen door borders te gebruiken gaat de width methode in % niet op ...

Een boord wordt meegerekent bij de breedte, dus je zou met pixels moeten werken, dit is ook beter.
Avatar gebruiker
Anthony
wmpr
 
Berichten: 2828
Geregistreerd: 07 aug 2004 14:05
Woonplaats: Brugge - België

Berichtdoor KillerSponge » 02 dec 2005 19:29

Daar ben ik het niet mee eens, want als je met pixels werkt past de lay-out zich niet aan aan de resolutie van de gebruiker.
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Berichtdoor mats » 02 dec 2005 19:47

Avatar gebruiker
mats
wmpr
 
Berichten: 3748
Geregistreerd: 19 sep 2004 12:00

Berichtdoor Rik » 02 dec 2005 20:05

Avatar gebruiker
Rik
wmpr
 
Berichten: 1576
Geregistreerd: 11 jun 2005 17:59

Berichtdoor Derk » 02 dec 2005 21:41

Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Berichtdoor mats » 02 dec 2005 21:57

Avatar gebruiker
mats
wmpr
 
Berichten: 3748
Geregistreerd: 19 sep 2004 12:00

Berichtdoor KillerSponge » 02 dec 2005 22:01

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

Berichtdoor mats » 02 dec 2005 22:03

Avatar gebruiker
mats
wmpr
 
Berichten: 3748
Geregistreerd: 19 sep 2004 12:00

Berichtdoor KillerSponge » 02 dec 2005 22:58

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

Berichtdoor Anthony » 03 dec 2005 09:14

Kan hij niet werken met borders
Avatar gebruiker
Anthony
wmpr
 
Berichten: 2828
Geregistreerd: 07 aug 2004 14:05
Woonplaats: Brugge - België

Berichtdoor Rik » 03 dec 2005 09:32

Avatar gebruiker
Rik
wmpr
 
Berichten: 1576
Geregistreerd: 11 jun 2005 17:59

Berichtdoor Anthony » 03 dec 2005 09:35

Avatar gebruiker
Anthony
wmpr
 
Berichten: 2828
Geregistreerd: 07 aug 2004 14:05
Woonplaats: Brugge - België

Berichtdoor KillerSponge » 03 dec 2005 09:37

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


Keer terug naar HTML, CSS, Javascript



cron