•
•
•
•
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
![]() |
•
•
Join Date: Jul 2006
Location: Deptford, London
Posts: 954
Reputation:
Rep Power: 5
Solved Threads: 48
•
•
•
•
It isn't accessible for users who use such things as screenreaders
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.
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.
•
•
Join Date: Jul 2006
Location: Deptford, London
Posts: 954
Reputation:
Rep Power: 5
Solved Threads: 48
Try this, aswel as the code recommended by MidiMagic to ensure that the relevant cells have no inner padding.
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.
img{
display:block;
margin:0;
} If it only works in Internet Explorer; it doesn't work.
•
•
Join Date: Jul 2006
Location: Deptford, London
Posts: 954
Reputation:
Rep Power: 5
Solved Threads: 48
•
•
Join Date: Jul 2006
Location: Deptford, London
Posts: 954
Reputation:
Rep Power: 5
Solved Threads: 48
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
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
If it only works in Internet Explorer; it doesn't work.
•
•
•
•
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
•
•
•
•
Using the code in post #4 with no modifications ( except changing the imgs' srcs to point at Matty's server )
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
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.
![]() |
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
blackhole cancellation code css development div dreamweaver earth engine firefox google google checkout google checkout vat gpt guid partition table hack hacking html html api inbox it javascript jobs linux microsoft nasa news noise partition pink search space storage symantec tables universe unlimited w3c web white white hat hacker wysiwyg xml yahoo
- Open In New Window Php (PHP)
- javascript works in IE but not working in firefox (JavaScript / DHTML / AJAX)
- Photoshop: add a white photo frame to your images (Web Design Tutorials)
- Table breaking div (HTML and CSS)
- How can I create database/table images in MySQL (PHP)
- Pesky IE Hickey (HTML and CSS)
- Problem with buttons on a site (Site Layout and Usability)
- Help building Table, Images dont cleanly come together (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: DIVs are seperating
- Next Thread: Alt - for search engines



Linear Mode