[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/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 - Positionering DIV
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

Positionering DIV

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

Positionering DIV

Berichtdoor Anonymous » 29 jul 2007 21:54

Ik heb een website waar links een menu staat, in het midden de content, en rechts moet nog een kopje komen met updates. Nu is het menu links een vaste waarde, en het content deel heb ik een percentage meegegeven met een minimum breedte, hoe krijg ik nu echter het rechterblok zo dat hij altijd 10px rechts van het middelste blok staat? Als ik hem 10px van de rechterkant zet (right: 10px) dan schuift hij over het middelste blok heen als het scherm kleiner word, als ik hem een bepaald aantal pixels van de linkerkant zet zal hij over het content blok heenkomen als het scherm groter word.

De vraag in het kort is dus hoe koppel ik de positie van een divblok aan de rechterkant van een ander divblok?
Anonymous
 

Re: Positionering DIV

Berichtdoor frizzy » 30 jul 2007 10:46

Ik begrijp niet helemaal wat u bedoelt, maar ik zou eens proberen om met position:relative; in de div die gepositioneerd moet worden te zetten. Als dit ook niet werkt, kan u even tekenen in paint wat u bedoelt?
frizzy
wmpr
 
Berichten: 4261
Geregistreerd: 20 sep 2006 16:03
Woonplaats: Boskoop :D

Re: Positionering DIV

Berichtdoor Rik » 30 jul 2007 13:23

Dat kan inderdaad, kloppen, wanneer je absolute positioneert, hoort hij niet meer bij de andere blokken. De oplossing weet ik helaas niet, maar met absoluta positionering is de kans klein dat dit gaat lukken.
Avatar gebruiker
Rik
wmpr
 
Berichten: 1576
Geregistreerd: 11 jun 2005 17:59

Re: Positionering DIV

Berichtdoor Anonymous » 30 jul 2007 17:45

http://bartvanzon.nl/elsolvoorbeeld/
dit is wat ik bedoel
gaat om het rechter kader (news content), ik heb hem hier even aan de linkerkant gekoppeld maar het is dus de bedoelling dat hij aan de rechter kant van het content vak gekoppeld word.
Anonymous
 

Re: Positionering DIV

Berichtdoor frizzy » 30 jul 2007 19:13

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

Re: Positionering DIV

Berichtdoor Anonymous » 31 jul 2007 16:25

kijk maar,
http://bartvanzon.nl/elsolvoorbeeld/
en
http://www.bartvanzon.nl/elsolvoorbeeld/stylesheet.css


ik heb er "left: 59px" aan toe moeten voegen omdat hij anders er nog steeds over content heen hing,
dat lijkt bij 1024*768 leuk te werken, maar bij een hogere resolutie valt hij er dan als nog over heen....
Anonymous
 

Re: Positionering DIV

Berichtdoor frizzy » 31 jul 2007 16:26

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

Re: Positionering DIV

Berichtdoor Anonymous » 31 jul 2007 16:44

of gewoon de linkerkant aan de linkerkant koppelen,
en de rechterkant aan de rechterkant, zodat de content gewoon oprekt, en de zijkanten altijd hetzelfde blijven, zoals het nu online staat was het de bedoeling.
in iedergeval bedankt voor het meedenken frizzy :)
Anonymous
 

Re: Positionering DIV

Berichtdoor frizzy » 31 jul 2007 16:46

<div style="float:left;">div1</div>
<div style="float:left;">div2</div>
<div style="float:right;">div3</div><!-- deze staat helemaal aan de rechter kant)
of:
<div style="float:left;">div1</div>
<div style="float:left;">div2</div>
<div style="float:left;">div3</div>
frizzy
wmpr
 
Berichten: 4261
Geregistreerd: 20 sep 2006 16:03
Woonplaats: Boskoop :D


Keer terug naar HTML, CSS, Javascript



cron