Results 1 to 2 of 2

Thread: How can I align something to match screen resolution?

  1. #1
    Join Date
    Oct 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How can I align something to match screen resolution?

    I want to align something with the edges of the screen.
    So if I had a box(example), and I had a wide screen, the box would stretch to the left and right edges of the screen.
    I think that's basically all the info you need...
    Help appreciated!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Give it a css style width of 100%. If that doesn't work, it must be block level or an image (div, p, etc. or img), and cannot have a parent element whose width is set and set to less than 100%. Most block level elements will by default expand to 100% of the width available to them. Images must have their width explicitly set to 100% for this, but that can distort the image.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •