CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 14th, 2003, 09:13 AM
woow woow is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 41 woow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
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 %

Reply With Quote
  #2  
Old October 14th, 2003, 10:50 AM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 2,620 Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 1 h 17 m 41 sec
Reputation Power: 532
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.

Reply With Quote
  #3  
Old October 14th, 2003, 11:04 AM
magma's Avatar
magma magma is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Italy, EU
Posts: 517 magma User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 45 m 8 sec
Reputation Power: 6
Take a look at the W3C's CSS specifications at
http://www.w3.org/TR/REC-CSS2/synda...alue-def-number

Hope this helps!
__________________
Cheers, Dave

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > is it posible to use % in CSS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway