Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7

Thread: Minimum Width?

  1. #1
    Member Borior's Avatar
    Join Date
    Jul 2003
    Posts
    30
    Member #
    2253
    I think i remember somewhere seeing css property min-width but its not listed on webmonkey and i really need to be able to set a minimum width for my divs.

    visit ilime.nonlicet.com to see my problem. if you resize the window smaller than the image at the top, very funny () stuff happens with the title div (one with img in). I really need the thing to be liquid but to have a width at which it ceases to be liquid and starts sliding off the right side of the screen. any help would be greatly appreciated.

    thanks in advance

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    You should just be able to use the width property, IIRC. If you specify an amount in pixels, I believe it will have that minimum size.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    Member Borior's Avatar
    Join Date
    Jul 2003
    Posts
    30
    Member #
    2253
    uh huh but that will give the content a fixed width .. i want/would like it to be liquid

  5. #4
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Have you tried http://www.w3schools.com/css/pr_dim_min-width.asp ?

    W3Schools is the best CSS reference, IMO. MSDN is pretty good, too, but obviously optimized for iE.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  6. #5
    Member Borior's Avatar
    Join Date
    Jul 2003
    Posts
    30
    Member #
    2253
    funnily enough i had just found that when i got the email saying i had a new reply on the thread

    i do however have one serious problem ... my great friend (_NOT_) ... MSIE refuses to understand 'min-width'.

    <rant>
    Safari does and i can't get by how Apple's beta release software is infinitely better than MSIE which has been in development for sooooooo long. ALSO ... IE doesn't even support .png transparency, let alone translucency. IT'S AN OPEN FORMAT FOR CRYING OUT LOUD !!!!
    </rant>

    sorry ... i feel better now

  7. #6
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Just put a spacer image in an encapsulating table or div for your whole page, like so:
    Code:
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td>
                <p>Your content goes here.</p>
            </td>
        </tr>
        <tr>
            <td>
                <img src="spacer.gif" width="600" height="1' border="0" /><br />
            </td>
        </tr>
    </table>
    That page will have a minimum width of 600 pixels and no max.

  8. #7
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Note... the above example will work on pre-CSS browsers, too


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:35 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com