Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-25-2010, 12:32 AM   PM User | #1
johnmerlino
Regular Coder

 
Join Date: Oct 2009
Posts: 189
Thanks: 38
Thanked 3 Times in 3 Posts
johnmerlino is an unknown quantity at this point
applied border-collapse and still horizontal gaps

Hey all,

I rarely use tables so I'm not sure why there are horizontal gaps here as if margin has been applied to each of table cells:
Code:
<table style="width: 600px; border-collapse: collapse;">
	<thead>
		<tr style="height: 112px;">
			<th scope="col" style="width: 25px;"><img src="leftmast.png" /></th>
			<th scope="col" style="width: 194px;"><img src="centermast.png" /></th>
			<th scope="col" style="width: 381px;"><img src="rightmast.png" /></th>
		</tr>	
	</thead>	
</table>
johnmerlino is offline   Reply With Quote
Old 05-25-2010, 12:39 AM   PM User | #2
johnmerlino
Regular Coder

 
Join Date: Oct 2009
Posts: 189
Thanks: 38
Thanked 3 Times in 3 Posts
johnmerlino is an unknown quantity at this point
Ok I figured it out I think. You had to add the following to the block elements in table:
margin: 0; padding: 0; border: 0;
johnmerlino is offline   Reply With Quote
Reply

Bookmarks

Tags
border-collapse, cells, gap, margin, tables

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:23 PM.


Advertisement
Log in to turn off these ads.