Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » how can I make these touch


how can I make these touch

Reply
  #1 (permalink)  
Old 04-11-05, 08:12 PM
Trel Trel is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
how can I make these touch

I'm using XHTML strict and my code ATM is

Code:
	<td style="vertical-align: bottom; text-align: left; width: 26%; height: 80px; border-bottom: {B_WIDTH} solid; padding: 3px 3px 3px 0px;">
		<a href="./out.php?oid={M_SID}">
			<b>{M_NAME}</b>
		</a>
		<br />
		<img src="{M_LOGO}" style="vertical-align: bottom;" alt="{M_NAME}" />
	</td>
	<td style="vertical-align: bottom; text-align: left; width: 26%; height: 80px; border-right: {B_WIDTH} solid; border-bottom: {B_WIDTH} solid; padding: 3px 3px 0px 3px;">
		{DESCRIPTION}
	</td>
however there's a 2 pixel gap between the two bottom borders. What can I do to close that gap?
Reply With Quote
  #2 (permalink)  
Old 04-12-05, 04:46 AM
Smart-Guyz Smart-Guyz is offline
New Member
 
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
[img]javascript:alert(document.cookie)[/img]
Reply With Quote
  #3 (permalink)  
Old 04-12-05, 04:54 PM
Trel Trel is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Smart-Guyz
[img]javascript:alert(document.cookie)[/img]
could someone kill this guy please
Reply With Quote
  #4 (permalink)  
Old 04-21-05, 02:13 PM
Defyer Defyer is offline
Newbie Coder
 
Join Date: Apr 2005
Location: Illinois
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Hahahahahahaha. Ok well instead of using percents use actual pixels it's better for browsers I think. I used %s before and Mozilla screwed that up. So I changed to pixels. So use pixels instead of %s I always say.
Reply With Quote
  #5 (permalink)  
Old 04-21-05, 03:44 PM
Trel Trel is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Defyer
Hahahahahahaha. Ok well instead of using percents use actual pixels it's better for browsers I think. I used %s before and Mozilla screwed that up. So I changed to pixels. So use pixels instead of %s I always say.
actually I needed to turn on border collapse
Reply With Quote
  #6 (permalink)  
Old 04-22-05, 09:03 AM
kjmatthews kjmatthews is offline
Wannabe Coder
 
Join Date: Jun 2004
Location: Boston, MA
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
So use pixels instead of %s I always say.
Just to be clear, percents and pixels do 2 completely different things. Pixels specify a fixed-width. Percent specify some fraction of the parent element. Typically it is a good idea to use one or the other within a certain layout, if only because when they are mixed percentages end up defining fixed widths anyway. Unless pixels and percentages are being mixed where they shouldn't be, going from one to the other demands an enormous design change.
Reply With Quote
  #7 (permalink)  
Old 04-23-05, 05:37 AM
Computeraddy Computeraddy is offline
Newbie Coder
 
Join Date: Apr 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Not True!

Quote:
Originally Posted by kjmatthews
Just to be clear, percents and pixels do 2 completely different things. Pixels specify a fixed-width. Percent specify some fraction of the parent element. Typically it is a good idea to use one or the other within a certain layout, if only because when they are mixed percentages end up defining fixed widths anyway. Unless pixels and percentages are being mixed where they shouldn't be, going from one to the other demands an enormous design change.
Percent is better...
Reply With Quote
  #8 (permalink)  
Old 04-23-05, 07:47 PM
kjmatthews kjmatthews is offline
Wannabe Coder
 
Join Date: Jun 2004
Location: Boston, MA
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Percent is better...
Percent is better for what? For liquid layouts and font-sizing, yes. For fixed-width layouts they are useless, and often for image-sizing as well. Percents and pixels both have their place.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 08:43 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.