1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to does size of element remain same when browser is resized?

Discussion in 'CSS' started by Polizel, Jul 1, 2010.

  1. #1
    Hellow everyone.
    i want my divs and other elememt (tags) to retain their size even when browser window is resized. i have a form with a few helper(hinting) text but the problem is when i resize the browser window the form fields and text jumps to next line and even h1 tags do this . i want to know how to prevent this, just like in Digitalpoint when you resize browser windows the posts and <form> remain of same size and not jump to next line etc.
    thanx in advance
     
    Polizel, Jul 1, 2010 IP
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #2
    radiant_luv, Jul 1, 2010 IP
  3. MervinJ

    MervinJ Peon

    Messages:
    60
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    @radiant_luv, how does that solve Polizel's problem?? a fluid/liquid layout as the name suggests resizes with with browser.


    Try giving either the div that contains the form, or the overall site wrapper: an min-width. and a width (needs both due to IE)

    This way when re-sized to a very small browser will show correctly but with scroll bars.

    If you would like some specific code example, please provide a link to your site problem
     
    MervinJ, Jul 1, 2010 IP
  4. Polizel

    Polizel Peon

    Messages:
    93
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hello dear thanks for your replies,
    i solev that problem by explicitly defining width property
    thank you
    ------------------
    Freelance Jobs
     
    Polizel, Jul 2, 2010 IP