HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
how to css a table with 2 separate boxes
Post new topic   Reply to topic    HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
becksta



Joined: 31 Oct 2007
Posts: 16

PostPosted: Wed Mar 05, 2008 4:01 pm     how to css a table with 2 separate boxes Reply with quote

I wanna have a table with an image in the shape of a box and a table directly next to it that's rectangular to insert text, but I would also like to have a small gap between the 2 and a pencil line border around the 2 tables..
In order to do this, does it require "padding"?...cos i'm really unsure of the function of padding..

would it be css like this:

padding; 10px;5px;50

just having a guess...
10 for the box...5px for the gap and 50 for the rectangle

does it need to be done like that?
ogsolution



Joined: 26 Dec 2007
Posts: 144

PostPosted: Wed Mar 05, 2008 11:19 pm     Reply with quote

I am not really clear about your question but does it look something like this?

Code:
<table cellpadding="0" cellspacing="2" border="0">
   <tr>
      <td>the image</td>
      <td><input type="text" size="10"></td>
   </tr>
</table>


You can change the cellpadding, cellspacing and border to get different effects.

More modern way to doing it may be something like this.

Code:
<img src="http://www.google.com/intl/en_ALL/images/logo.gif" width="20" height="20" style="border: 1px solid #000000;"><input type="text" size="10" style="margin-left:5px;">
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8312
Location: Castle Pines North, CO USA

PostPosted: Thu Mar 06, 2008 8:41 am     Reply with quote



I am not clear either but that's normal. You might consider posting the code that you have and then let us know what you would like to add, etc.

_________________
Corey
Toll Free Solutions | Mile High Merchant Accounts | Expression Web Blog
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> CSS All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial