Results 1 to 5 of 5

Thread: 100% width

  1. #1
    Join Date
    Jul 2008
    Posts
    81
    Thanks
    38
    Thanked 2 Times in 2 Posts

    Default 100% width

    Hi,

    My site is 1000px width.
    I have one div in my site that should be spread all over the screen width,
    so I gave it:
    width: 100%;

    However, on 800*600 resolution (tested on IE7)
    the div's background is only 800px and not 1000px

    I've also tried to use min-width:1000px, but it didn't work.

    Any suggestions?

    Thanks!

  2. #2
    Join Date
    Oct 2008
    Location
    kolkata, india
    Posts
    75
    Thanks
    2
    Thanked 10 Times in 10 Posts

    Default

    If u don't mention any width attribute then it can also take 100% width.
    But it would be better to replay if I can see ur code.

  3. #3
    Join Date
    Jul 2008
    Posts
    81
    Thanks
    38
    Thanked 2 Times in 2 Posts

    Default

    Thank you, but it didn't fix it. I removed the 100% width, but it didn't change a thing.

  4. #4
    Join Date
    Sep 2008
    Location
    Seattle, WA
    Posts
    135
    Thanks
    1
    Thanked 11 Times in 11 Posts

    Default

    Post your code, please

  5. #5
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Quote Originally Posted by lord22 View Post
    My site is 1000px width.
    I have one div in my site that should be spread all over the screen width...
    So....

    do you want your div the full width of the site, or the full width of the screen? These are two different measurements. If you want the div the full width of the site, make it 1000px. If you want it the full screen width, make it 100% (and, as you noted, the exact pixel width will vary depending on browser window size).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •