icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Coding and Programming » Anyone know why this table has spacing

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old February 5th, 2007, 11:32 PM   #19 (permalink)
Searcher
Surpass Staff
 
Kayla's Avatar
 
Joined in May 2003
Lives in Orlando
24,699 posts
Gave thanks: 943
Thanked 806 times
"The gap problem" - Ha!!
__________________
Follow Surpass on Twitter and Facebook
Check out interesting finds on the Surpass Blog
.... it's coming.


Kayla is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 6th, 2007, 6:24 AM   #20 (permalink)
Surpass Fan
Seasoned Poster
 
Mykal's Avatar
 
Joined in Feb 2007
Lives in Maine
Hosted on SH110
40 posts
Gave thanks: 3
Thanked 3 times
Quote:
Originally Posted by meephead View Post
Personally I'd simply try to avoid using tables, go with a div and display the images in a block, or something along those lines.
Technically, you should use as little markup as possible. Going Div crazy is not efficient. Before creating a new div/id/class for something, try thinking of another HTML tag that you could use instead (e.g. H1-H6, UL, Code, Etc.). In this case, you could easily create an unordered list and have each list item have an image/link like that table does.
Mykal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
This user thanks Mykal for this great post!
H (February 6th, 2007)
Old February 6th, 2007, 12:55 PM   #21 (permalink)
Registered User
Fresh Surpasser
 
rdmsoft's Avatar
 
Joined in Mar 2005
Lives in East Yorkshire, UK
Hosted on Maya
2 posts
Gave thanks: 0
Thanked 0 times
Images, Tables, and Mysterious Gaps
Quote:
Thanks to an obscure corner of the CSS specification, every design based on a precise layout of small images in table cells have become visual disasters just waiting to happen.
Fortunately there are fixes in there as well.
__________________
Rob Marshall
rdmsoftmaya [oc5]
rdmsoft is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 6th, 2007, 9:00 PM   #22 (permalink)
Registered User
Seasoned Poster
 
Joined in Jul 2006
Lives in USA
Hosted on SH133
56 posts
Gave thanks: 11
Thanked 1 Time in 1 Post
Smile

Well, I ran across this and started goofing off with making an unordered image list and trying to reproduce the problem so it is easier to avoid later. The simple answer is there is always either margin or padding around a block element. For instance, the "display: block;" which results in a larger, more visible break between images. The easiest way is to give a fixed width to the whole element, in my case an unordered list, and then mark the display as inline.

I was already aware of this border quirk to an HTML document -- not sure if it is dependent upon HTML 4.0.1, XHTML Trans, or XHTML Strict -- but I wanted to track it down a little more accurately. Here's my "sandbox" for you all to mess around with as you please. Nor do I care if anyone rips it off, considering it took less than twenty minutes total (mainly due to relocating my resources after a system overhaul).
Attached Files
File Type: zip ul_images_example.zip (58.4 KB, 4 views)
__________________
SH133:
The Wicked Flea is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 edit your posts

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