[HTML/CSS] Text continues past the <div> border

Glaanieboy

OSNN Veteran Addict
Joined
6 Mar 2002
Messages
2,628
Check my website at http://glaanieboy.nl (it's being redesigned, stuff like the shoutbox are broken atm). If you click the 'What is my IP address?' link on the left, you can see your IP address and two links to Wikipedia explaining what an IP address is. I also put a little footnote in small print, a little notice that I won't use the IP address for anything other than storing in my server-logs etc.
But as you can see, this little notice continues to go past the virtual border of the middle div (see code below). How can I make the text to 'break' at the virtual border?

Code:
  <div style="width: 25%; height: 100px; position:absolute;">
  [..]Links bla bla[..]
  <!--End of left div-->
  </div>
  <!--Middle div (content)-->
  <div style="position:absolute; left: 25%;">
    <h3>Your IP address</h3>Your IP address is 81.71.58.154<br><br>
  <a href="http://en.wikipedia.org/wiki/IP_address" target="_blank">What is an IP address?</a><br>
  <a href="http://nl.wikipedia.org/wiki/IP-adres" target="_blank">Wat is een IP adres?</a><br><br>

  <span style="font-size: 9pt;">Your IP address is only being recorded in the logs of my webserver.
  I and only I know your IP address, I ain't gonna sell it or give them away.</span>
  <!--End of middle div-->
  </div>
  <!--Right div (shoutbox)-->
  <div style="position:absolute; left: 80%;">
  [..]Shoutbox code[..]
  </div>


Anyone help me? Thanks
 
Looks like I had to force a virtual border for the middle div by giving it a maximum width:
Old:
Code:
<div style="position:absolute; left: 25%;">

New:
Code:
<div style="position:absolute; left: 25%; width: 55%;">
 

Members online

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,623
Latest member
AndersonLo
Back