trouble with setting DIV width

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • idkmybffjill
    New Member
    • Jul 2008
    • 3

    trouble with setting DIV width

    Hey I'm having trouble setting the DIV width attribute for my main content area in my site. This is my current code:

    Code:
    <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
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    What exactly is the problem with the content div?

    Comment

    • idkmybffjill
      New Member
      • Jul 2008
      • 3

      #3
      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.

      Comment

      • hsriat
        Recognized Expert Top Contributor
        • Jan 2008
        • 1653

        #4
        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?

        Comment

        • idkmybffjill
          New Member
          • Jul 2008
          • 3

          #5
          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

          Comment

          Working...