2 Replies Latest reply on Feb 2, 2010 5:10 AM by dakota222

    Scroll Bar From Browser Problem!

    dakota222

      Hi i have a silly question.

       

      I made a page wish is half black and half Red.

       

      And beetwen in the middle of the page i whant to put a white life. from L -0

      to right of my page close at the finish page on the right, but to not apper the horizontal scroll bar from the browser.

      What i have to use to me that posible.

      when i go with my layer on the right of the page in dreamweaver at 1280 and i taste it in browers appear the scroll orizontal bar wish i dont want.

      But i want my line to go fordware on right and that the people dont see where the line finish.

       

      this is my code far away.

       

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <title>Untitled Document</title>
      <style type="text/css">
      <!--
      #line {
          position:absolute;
          left:0px;
          top:147px;
          width:1274px;
          height:72px;
          z-index:1;
      }
      -->
      </style>
      </head>

       

      <body>
      <div id="line"></div>
      </body>
      </html>

       

      thank you for help

        • 1. Re: Scroll Bar From Browser Problem!
          martcol Level 4

          I think that you have a scroll bar in the browser because you have a fixed width element in your page that is wider than the browser.

           

          I's not so clear what you are trying to achive overall and I wonder how your page is going to develop?  I think you might be making problems for yourself by using position absolute in the way that you have.  You might be better thinking about using a repeating image on your <body>

           

          Just a thought.

           

          Martin.

          • 2. Re: Scroll Bar From Browser Problem!
            dakota222 Level 1

            Yeah what i wanne to lets say a simple page half  to be white then a red line and then

            down to be black.

            But what i wanne to is that this red line that i wanne cross over my html page,from the left to the right,but when the people changing the resolution ,in more that i have ,wish mine is 1280 with 800,

            to not appear the  horizontal scroll bar from the browser never, something like you said with repet.

            i know is a bad idea with the layer ,but was only for exemple.

            If a make a repeting image on my body, how large i have to make the line?

             

             

             

            David