| | Is it possible to use spacing/spadding in <div> tags, like in <table> tags? |
|
|
|
QUOTE(Amezis @ Apr 17 2005, 04:59 PM) Yup. CODE .theDiv { padding-left:2px; padding-right:2px; padding-top:2px; padding-bottom:2px; } If you want to apply padding to everything, use... CODE .theDiv { padding:2px; } Spacing (as in, distance from surrounding divs or whatnot) is as follows.... CODE .theDiv { margin-left:2px; margin-right:2px; margin-top:2px; margin-bottom:2px; } Or for all properties in one declaration... CODE .theDiv { margin:2px; } Of course you should be using ems, but thats jut an example
|
|
![]() <div> Spacing/spadding |
| ADD REPLY / Got an Opinion! | a humble request :-) | RAPID SEARCH! | Free Hosting | [X] |
|
Express your Opinions, Thoughts or Contribute your information that might help someone here. Ask your Doubts & Queries to get answers.. "Together, We enlight each other!" |
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP. | 500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE |
|