Connecting Tech Pros Worldwide Forums | Help | Site Map

trouble with setting DIV width

Newbie
 
Join Date: Jul 2008
Posts: 3
#1: Jul 14 '08
Hey I'm having trouble setting the DIV width attribute for my main content area in my site. This is my current code:

Expand|Select|Wrap|Line Numbers
  1. <div style="position: absolute; top: 70px; left: 545px; width: 550px; height: 600px; overflow: auto;">
I know it seems like a simple fix but after trying for an hour to fix this I gave up (babysitting :P)
To see what the error looks like go to http://www.freewebs.com/mandaslayz/-...lder/test.html

Thanx!

hsriat's Avatar
Expert
 
Join Date: Jan 2008
Location: Bath, UK
Posts: 1,609
#2: Jul 14 '08

re: trouble with setting DIV width


What exactly is the problem with the content div?
Newbie
 
Join Date: Jul 2008
Posts: 3
#3: Jul 14 '08

re: trouble with setting DIV width


In the link I posted, you can see that the text continues on when there are no line breaks.
Most of the other sites I code for actually work when I do a DIV attribute (e.a., http://freewebs.com/mandaslayz/)
In the one I'm having trouble with, though, it just added a horizontal scrollbar when I added the width attribute. What I want it to do is just move the text to the next line down instead of over without needing to add any line breaks.
hsriat's Avatar
Expert
 
Join Date: Jan 2008
Location: Bath, UK
Posts: 1,609
#4: Jul 14 '08

re: trouble with setting DIV width


Well, for that, there's a word-wrap property, but I think it won't work with the present CSS.

Do you think that would really cause a problem to you? I mean, are you really going to write long strings inside the div?
Newbie
 
Join Date: Jul 2008
Posts: 3
#5: Jul 16 '08

re: trouble with setting DIV width


Quote:

Originally Posted by hsriat

Well, for that, there's a word-wrap property, but I think it won't work with the present CSS.

Do you think that would really cause a problem to you? I mean, are you really going to write long strings inside the div?

It would mainly becuase I'm switching hosts and installing Wordpress, but I got it fixed ;D
Reply