3 different CSS questions

Discussion in 'CSS' started by Error404, Jan 9, 2007.

  1. #1
    New here. Have 3 questions. Well I hope someone can help me :)
    1) Is there a way to center something that you put in a div to be a vertical center - picture or text - I can't find way to do it and vertical-align: middle
    doesn't do any good.
    2) how do I do make fixed frame like on this page
    http://www.csszengarden.com/?cssfile=069/069.css
    I think about black frame surrounding page
    3) If I have a picture let's say 800x600 pixels, and I want to use it for a page background (just once shown on whole background - from edge to edge) but I want it to be full in background whatever resolution of computer is - can I do that?


    Thank you very very much.
     
    Error404, Jan 9, 2007 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    The vertical-align property applies to the alignment of inline elements within the inline box (see Meyer on the inline formatting model), and to the alignment within the td/th of the table model.

    Modern browsers can center vertically easily. IE, including IE7, is a PoS when it comes to supporting CSS. My vertical centering demo includes the necessary hacks, using IE's buggy behavior, to make IE work. Take care to fully understand how it works before using.

    Look at the source.

    No. Background images may be positioned and tiled, but not stretched.

    cheers,

    gary
     
    kk5st, Jan 9, 2007 IP
  3. OWL_on_NG

    OWL_on_NG Active Member

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #3
    You could use DHTML resizing for that.
     
    OWL_on_NG, Jan 9, 2007 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    That is a null value. How about expanding on it; tell us how.

    gary
     
    kk5st, Jan 10, 2007 IP