User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 423,621 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,189 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 6171 | Replies: 18
Reply
Join Date: Jul 2006
Location: Deptford, London
Posts: 954
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 5
Solved Threads: 48
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Posting Shark

Re: White Space Between Table Images

  #11  
Oct 14th, 2007
It isn't accessible for users who use such things as screenreaders
Screenreaders work better, ( i.e. more intuitively and standardized ), with tables than they do with some div layouts that force table-like display using floating/positioning, or with div layouts that want to order markup weirdly for the purpose of upping search engine rankings. It's an old myth that screenreaders fail with tables; more modern readers are very capable of reading tables, whether they be used for layout or pure tabular data.
Order of markup and correct use of 'special tags' is more important than the block tags used in markup. Search engines and screenreaders alike care little for table/div/span... all are at best semantically meaningless. 'h1', 'h2', 'title' should be important, as is 'a' and others.

It isn't just about tables: it is about using ANY html for layout purposes. xHTML should be used just for content and CSS for layout. It's that simple.
Great in theory. Not so great in practice. XHTML defines a series of tags, the purpose of most of them is layout and presentation. If you really only care about 'semantics', use plain XML and style that with CSS; you might have compatibility problems for the moment since only the latest browsers support XML pages.. and you need the latest CSS standard to be well implemented for it to be useful for anything non-trivial.. but I guess, any 'web developer worth their salt' isn't as bothered about compatilibity and what they can actually DO with the tools available as they are meeting what they (incorrectly) believe to be a standard..

Aside, it's often the case, that to get enough 'style estate' to do anything reasonable on a page, you need to add meaningless structures solely for the purpose of locking CSS onto them. Out of the nearest window goes your idealistic image of a 'semantic representation' of the page. XHTML is a very capable data presentation language, but in no way is it a capable data description language. CSS isn't sufficient to replace every XHTML construct, or there'd be no point in those constructs continuing to exist.

If you use three layers of divs to make a structure conform to anything that acts in a 'tabular way', you fail to meet a time-honoured paradigm in software design - it's better to use something that does what you want already; in a correct, standardized and tested way; than hack on the surface at something that does it halfway.
If it only works in Internet Explorer; it doesn't work.
Reply With Quote  
Join Date: Oct 2006
Location: India
Posts: 1,289
Reputation: vishesh is on a distinguished road 
Rep Power: 4
Solved Threads: 32
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: White Space Between Table Images

  #12  
Oct 14th, 2007
Very well said MidiMagic and Matt, I totally agree with you both!!!

But what about Matty's problem, small little spaces still left. I think its firefox problem. It works in IE though, so Matts signature fits the best. lo;
Reply With Quote  
Join Date: Jul 2006
Location: Deptford, London
Posts: 954
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 5
Solved Threads: 48
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Posting Shark

Re: White Space Between Table Images

  #13  
Oct 14th, 2007
Try this, aswel as the code recommended by MidiMagic to ensure that the relevant cells have no inner padding.
img{ 
display:block;
margin:0;
}
That'll make images act like blocks, so, if you're relying on the inline behaviour of images, you might be able to get away with removing the display:block;.. the important part is to make sure that images have no margin ( outer padding ).. but, browsers ( particularly Firefox ) seem to make their own rules for the initial vertical spacing/line height/baseline/etc for text, and images are as specified, inline, thus subject to 'text rules' for placement.
If it only works in Internet Explorer; it doesn't work.
Reply With Quote  
Join Date: Oct 2006
Location: India
Posts: 1,289
Reputation: vishesh is on a distinguished road 
Rep Power: 4
Solved Threads: 32
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: White Space Between Table Images

  #14  
Oct 14th, 2007
But Matt, I reckon, I also tried that thing, but didn't work on firefox.
Reply With Quote  
Join Date: Jul 2006
Location: Deptford, London
Posts: 954
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 5
Solved Threads: 48
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Posting Shark

Re: White Space Between Table Images

  #15  
Oct 14th, 2007
Have you got code for a page that I can look at?
If it only works in Internet Explorer; it doesn't work.
Reply With Quote  
Join Date: Oct 2006
Location: India
Posts: 1,289
Reputation: vishesh is on a distinguished road 
Rep Power: 4
Solved Threads: 32
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: White Space Between Table Images

  #16  
Oct 14th, 2007
I used the page posted by Matty, but modified by me posted before.
Reply With Quote  
Join Date: Jul 2006
Location: Deptford, London
Posts: 954
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 5
Solved Threads: 48
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Posting Shark

Re: White Space Between Table Images

  #17  
Oct 14th, 2007
Hm, I can't seem to reproduce the problem.. Using the code in post #4 with no modifications ( except changing the imgs' srcs to point at Matty's server )... Firefox 2 on Linux, screenshot attached.. But I can't see any gaps...

With the link Matty posted (in #5), I also see no gaps.. but the layout breaks down at widths larger than a certain threshold in Firefox and Opera, and I imagine also IE..

Can you post a screenshot of how you see the code in post #4, on your FF vishesh. Put 'http://stormtrooper.webng.com/' infront of all of the image srcs.. sorry about the hotlinking Matty =P
Attached Images
File Type: png t1.png (202.5 KB, 9 views)
If it only works in Internet Explorer; it doesn't work.
Reply With Quote  
Join Date: Jan 2007
Posts: 2,556
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 114
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: White Space Between Table Images

  #18  
Oct 15th, 2007
Originally Posted by MattEvans View Post
Try this, aswel as the code recommended by MidiMagic to ensure that the relevant cells have no inner padding.
img{ 
display:block;
margin:0;
}


Actually, the margins, borders, and padding are all OUTSIDE an image on both browsers.

But block objects are different on the two browsers:

- FF puts the margins, borders, and padding OUTSIDE the set size of a div or other block object.

- IE puts the margins, borders, and padding INSIDE the set size of a div or other block object.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Oct 2006
Location: India
Posts: 1,289
Reputation: vishesh is on a distinguished road 
Rep Power: 4
Solved Threads: 32
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: White Space Between Table Images

  #19  
Oct 15th, 2007
Using the code in post #4 with no modifications ( except changing the imgs' srcs to point at Matty's server )
Err...I changed img src's to Matty's server cause I didn't wanted to copy each image to my computer, so I simply pointed it directly since I'm using my regular editor. Also I set cellpadding and cellspacing to 0 and removed width="60%", didn't used styles. This removed big large spaces.

But I tried to several things including the remedy above before to remove the small pixel width spaces still left, but didn't worked on FF.

Can you post a screenshot
It's too late, I suppose. He has changed several things and the that problem couldn't be seen now(just observed this now). I didn't have copies of those images.

Also I see the images changed(basically background to white). So I think those small white spaces(since the page background was white) been covered by white images. Will have to check if they still exist by changing the page background.
Last edited by vishesh : Oct 15th, 2007 at 8:42 am.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 9:16 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC