#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Posts
    41
    Rep Power
    11

    Question is it posible to use % in CSS


    Hi,

    Is it possible to use for % for the width in CSS so the layer also adjust according to the window size.

    <div id="Layer1" style="position:relative; width:346px; height:69px; z-index:1; left: 175px; top: 200px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; overflow: visible;"><img src="head2.gif" width="656" height="41"><br>
    <table width="190%" height="28" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td height="27" background="menu.gif"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#663333">&nbsp;<font color="#613030">WHO
    SHOULD TAKE THE PROGRAM? &nbsp;&nbsp;|| &nbsp;&nbsp;DOWNLOAD
    REGISTRATION FORM&nbsp;&nbsp;&nbsp;||&nbsp;&nbsp;&nbsp;LEARN
    MORE ABOUT CMS</font></font></strong></font></div>
    </td>
    </tr>
    </table>
    </div>


    i mean in above code can i use %
  2. #2
  3. |<.+#f@#+.&.|
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Mar 2002
    Location
    norway
    Posts
    3,009
    Rep Power
    1224
    yes, you can use %
    it is also recommended that you use units like % or em compared to px.
    makes your page more dynamic to both the window size and font-size.
  4. #3
  5. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Apr 2003
    Location
    Italy, EU
    Posts
    517
    Rep Power
    12
    Take a look at the W3C's CSS specifications at
    http://www.w3.org/TR/REC-CSS2/syndat...lue-def-number

    Hope this helps!
    Cheers, Dave

IMN logo majestic logo threadwatch logo seochat tools logo