The XHTML file below creates a 2x2 matrix of square images. There is
always some space at the bottom borders of the cells (when rendered
with Gecko and KHTML, not with IE) and I've found no way so far to
make it disappear. If I use XHTML 1.0 Transitional instead of Strict
the extra space below the cells disappears.
Is it impossible to create seamless images tables in XHTML Strict?
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
table.puzzle{
border-collapse: collapse;
border: 1px solid red;
}
.puzzle td {
padding: 0;
}
img {
}
</style>
</head>
<body>
<table class="puzzle">
<tr>
<td><img src="p00.jpg" /></td>
<td><img src="p10.jpg" /></td>
</tr>
<tr>
<td><img src="p01.jpg" /></td>
<td><img src="p11.jpg" /></td>
</tr>
</table>
</body>
</html>
--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0 BtcGx1c3IuZGU=\ n'.decode('base 64')
-------------------------------------------------------------------
Jul 24 '05
16 7672
Alan J. Flavell schrieb: Or to put it another way, I can understand that there's a sentiment in favour of doing things the bad old way - but then why would one want to move to Strict XHTML "just for the sake of itself"? One of the aims of "Strict" (and that means HTML/4.01 Strict just as much as it means XHTML Strict) was to get rid of presentational clutter from the logical markup.
That's why I'm using XHTML.
So you got yourself a new dog but you're still barking like the old one yourself, it seems.
You can't tell how I bark because you don't know what I'm doing. There are situations when a grid layout is appropriate (e.g. to visualize relations) and the HTML tool for this is the table tag.
I think you've got that back to front. The table is the tool to *mark up* the logical relations.
You are right. I shouldn't have used the word "layout" when talking
about HTML. But I'm creating a 2D board game so layout was on my mind.
The board layout is done with CSS. The table related tags have only
class attributes.
As far as I'm concerned, this is a discussion about theory.
As far as I'm concerned, I wanted to solve a practical problem with
XHTML. I could have easily solved it with messy HTML but I didn't
want to. Thanks for your help.
--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0 BtcGx1c3IuZGU=\ n'.decode('base 64')
-------------------------------------------------------------------
Alan J. Flavell schrieb: I think you've got that back to front. The table is the tool to *mark up* the logical relations.
Formally you are right. But HTML was created solely for presentational
purposes and this is still true for XHTML. If you only cared about
logic then you would't need (X)HTML at all. You would create an XML
file representing the special logic of your document and format it
with CSS. (X)HTML is only useful because there are browsers with
default stylesheets for HTML tags otherwise nobody would use HTML.
So your understanding of presentation-free HTML may be theoretically
interesting but is practically useless.
--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0 BtcGx1c3IuZGU=\ n'.decode('base 64')
-------------------------------------------------------------------
On Wed, 20 Apr 2005 11:55:43 +0200, Peter Maas <pe***@somewher e.com>
wrote: If you only cared about logic then you would't need (X)HTML at all. You would create an XML file representing the special logic of your document
You can't represent "logic" in XML alone. XML goes no further than
Infoset (a very crude data model), it doesn't have any implied
semantics. If you want to communicate semantics with XML, then as a
minimum you need to use a schema that's pre-agreed by both parties.
A convenient schema to use in this case would be that of (X)HTML. You
could just as well use DocBook, but you have to use _something_ if
there's to be any notion of "meaning". As such, then you might as well
use one of these pre-established schema.
It's also not possible to practically render XML by using CSS alone -
CSS' output is restricted to static rendering, so no <img> or <a>
--
Cats have nine lives, which is why they rarely post to Usenet.
On Wed, 20 Apr 2005, Peter Maas wrote: Alan J. Flavell schrieb: Or to put it another way, I can understand that there's a sentiment in favour of doing things the bad old way - but then why would one want to move to Strict XHTML "just for the sake of itself"? One of the aims of "Strict" (and that means HTML/4.01 Strict just as much as it means XHTML Strict) was to get rid of presentational clutter from the logical markup. That's why I'm using XHTML.
I hear what you say, but this seems to be the wrong category.
Here's a broad-brush analysis:
Transitional: Strict:
HTML: Presentational clutter Content/presentation split
XHTML: Presentational clutter Content/presentation split
Now tell me again, why should one choose XHTML rather than HTML
on *that* basis?
You say you want to avoid presentational clutter. So I say you should
choose Strict.
By all means choose XHTML if you know why you want to choose XHTML,
but this isn't the reason. So you got yourself a new dog but you're still barking like the old one yourself, it seems.
You can't tell how I bark because you don't know what I'm doing.
We can all read what you -say- you are doing - and that's the basis
for discussion here. If you're not telling the truth about what
you're really doing, then who cares what it is that you're really
doing? As far as I'm concerned, this is a discussion about theory.
As far as I'm concerned, I wanted to solve a practical problem with XHTML.
Welcome to usenet. I responded in the course of discussion. If that
happens to solve your original problem, that's fine too. But I don't
treat usenet as my personal help desk, and neither should you. IMHO as
a long-time usenet participant, that is.
I could have easily solved it with messy HTML
You *could* equally have solved it with messy XHTML Transitional, if
you had been happy with a Transitional solution. Whether you are or
aren't willing to do that, has rather little to do with the direct
choice of HTML versus XHTML, but a great deal to do with your choice
of Strict over Transitional.
Bye for now.
On Wed, 20 Apr 2005, Peter Maas wrote: But HTML was created solely for presentational purposes and this is still true for XHTML.
You're remarkably stubborn.
I was aware of the early life of HTML at the time. I know that you
will find some evidence which supports your claim. I also know that
you are, in principle and on balance, quite wrong. HTML was motivated
from the start by the need to present content on widely diverse
presentation devices. They were different then than the devices we
use today, but they were nevertheless widely diverse.
Consequently, the idea of HTML specifying details of the presentation
(as promoted by the Mosaic/Netscape axis) was an ultimately doomed
digression, if the original intentions of HTML were ever to be
realised.
If you only cared about logic then you would't need (X)HTML at all. You would create an XML file representing the special logic of your document and format it with CSS.
When the structural elements of HTML are so totally inappropriate as
to be useful for the purpose, then naturally some other markup is
needed. MathML, music markup, whatever. I don't see how that relates
to our discussion of transitional (x)html versus strict (x)html.
(X)HTML is only useful because there are browsers with default stylesheets for HTML tags otherwise nobody would use HTML.
I don't disagree with what you say - but I don't see what light it
throws on the points that we were discussing.
So your understanding of presentation-free HTML
I'd rather say "HTML free of unnecessary presentational detail".
may be theoretically interesting but is practically useless.
CSSzengarden.
On Wed, 20 Apr 2005 11:55:43 +0200, Peter Maas <pe***@somewher e.com>
wrote: Alan J. Flavell schrieb: I think you've got that back to front. The table is the tool to *mark up* the logical relations.
Formally you are right. But HTML was created solely for presentational purposes and this is still true for XHTML.
That's not true:
The specific incentive that TBL had for his "invention" of HTML (and
HTTP) was to make it possible to access information in a uniform way
regardless of where that information was stored and/or produced.
It still holds today, as it does not matter what kind of hardware or
filing system you have at each end of an HTTP transaction.
Mind you also that the browser that TBL wrote to demonstrate his idea,
and to get funds to realize it, _did_ have its presentational aspect
controlled by a separate style sheet.
The first history of HTML/HTTP is available at the W3 site if you would
find it interesting to read up on it.
--
Rex
Alan J. Flavell schrieb: But HTML was created solely for presentational purposes and this is still true for XHTML.
You're remarkably stubborn.
I surrender.
--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0 BtcGx1c3IuZGU=\ n'.decode('base 64')
------------------------------------------------------------------- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Firas D. |
last post by:
http://www.firasd.org/scrapbook/poetry/robinson-edwin/minivercheevy.html
This is probably wishful thinking, but it's worth a shot.. is there a
way to put four different images on the corners of the bordered div? To
make it look framed, kinda?
|
by: DM |
last post by:
If I put three images next to each other (each within an anchor tag) they all
line up horizontally as expected with no space between them. I.e., they're
sitting flush up against each other.
However, in my design I need them to be laid out like this:
XXXXXXXXooooooooo
XXXXXXXXooooooooo
XXXXXXXXooooooooo
XXXXXXXXLLLLLLLLL
|
by: Roberto |
last post by:
Hallo,
I'm building a page that wants to respect XHTML 1.0 strict and CSS2
specifics. In this page I have to present thumbnails arranged to cover the
entire width of the window, but there are problems that are easier to see
than to explain...
http://www.wildzone.it/stage/thumbs/thumbs.php?galleria=samburu
the CCS code is readable in a click. The document is correct in his xhtml
and css sintax, and the code has been completely cleared from...
|
by: Woodmon |
last post by:
I want to flow text in an "irregular" column on the left and place a
large image at the top of an "irregular" column to the right. Then after
the bottom of the large image I want the text column on the left to
expand part way to the right, but not all the way to the right, as I want
a smaller image on the right. Then this will continue to the bottom of
the page. The text needs to flow down in the left column. And the right
edge of the...
|
by: arbeizaf |
last post by:
Hi:
I am using CSS instead of tables for the layout of a webpage but I
don't know how to do something.
I need to place three images with the same distance among them and the
border of the page. Something like this:
---------------------------------------------
| |
| |
by: Jeb Hunter |
last post by:
Well, how can I describe this succinctly? I have a page with DIVs that us
background images to produce a border effect. It works perfectly well, but
I want to make up (for now) 3 different border/background effects. Rather
than duplicate the entire chunk of CSS 3 times, I thought "Gee, I should
only have to specify the 3 backgrounds (all the other placement directives
would be identical). However I must not be correctly specifying the...
|
by: DesertPrince |
last post by:
I like making pages with the XHTML strict doctype.
So I was building a page where I have two images that need to be next
to each other, one on top of the other, so the colors match up. In
Firefox 2 and Opera 9 there was always a space in between. But not in
IE7. You can see the effect at http://members.cox.net/desertprince/
Strict.html.
If I change the doctype from strict XHTML to transitional XHTML the
problem goes away. You can...
|
by: marckatsambis |
last post by:
Hi,
I'm struggling to find answers on the problem I'm having, and I
desperately need some closure :)
I have a bunch of background-images in a css file that are visible
locally, but when I upload to a remote server they won't show.
I checked the actual link, which is correct (e.g '../images/main/
brc.gif'). To make sure I also tried the URL approach (e.g. 'http://
|
by: matheussousuke |
last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails.
The goal is: Make it send the email with the URL http://mghospedagem.com/images/controlpanel.jpg
instead of
http://mghospedagem.comhttp://mghospedagem.com/images/controlpanel.jpg
As u see, there's the website URL before the image URL.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |