473,398 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

loose.dtd & quirks

I've got the following url (centre generated by cgi, and including
banner, menus, etc designed by someone else) -
http://services.ccagroup.co.uk/upbin...whsmithwedding
This looks as intended on a fair range of browsers (the dark blue menu
separators are about 5-6mm).

here's identical html, but with the loose dtd referenced on the doctype-
http://services.ccagroup.co.uk/proofs/unquirktest.html
This gets lots of unwanted padding - the menu separators are about 12mm,
and the blue bar above the menu is missing.

I believe the absence of loose.dtd triggers quirks mode, which I'd
prefer to avoid.
I particularly don't like being reliant on quirks mode for the desired
appearance.
I'm guessing that cellspacing & cellpadding get ignored when I move into
standards mode - am I correct ?
Can anyone tell me what CSS replaces them ?
I've tried various combinations of padding & border-collapse, without
success.

Thanks,
Chris
Jul 21 '05 #1
8 2387
in comp.infosystems.www.authoring.stylesheets, Chris Sharman wrote:
I particularly don't like being reliant on quirks mode for the desired
appearance.
I'm guessing that cellspacing & cellpadding get ignored when I move into
standards mode - am I correct ?


No. As your code is so horrible to look at, I can't say much. But the
problem is likely that you set some widths somewhere, and don't take
account paddings, which are always added to width. Cellpadding is
padding.

Propably easiest way to fix is build it ground up. As you create
something with cgi, I really hope you didn't hardcode too much
presentional stuff in it...

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
Support me, buy Opera:
https://secure.bmtmicro.com/opera/bu...tml?AID=882173
Jul 21 '05 #2
Lauri Raittila wrote:
in comp.infosystems.www.authoring.stylesheets, Chris Sharman wrote:

I particularly don't like being reliant on quirks mode for the desired
appearance.
I'm guessing that cellspacing & cellpadding get ignored when I move into
standards mode - am I correct ?

No. As your code is so horrible to look at, I can't say much. But the
problem is likely that you set some widths somewhere, and don't take
account paddings, which are always added to width. Cellpadding is
padding.


You're talking about the stripping out of spaces & returns, or something
else ? That's a feature of my include - it throws away superfluous
indentation from included header files - seemed like a good idea at the
time.

It's something like:
include(banner);
include(menu);
blah blah
include(footer);

Propably easiest way to fix is build it ground up. As you create
something with cgi, I really hope you didn't hardcode too much
presentional stuff in it...


Thanks, but no thanks - if that's "easiest" I'll leave it in quirks
mode, I think.

Chris
Jul 21 '05 #3
Chris Sharman <ch***********@sorry.nospam> writes:
I've got the following url (centre generated by cgi, and including
banner, menus, etc designed by someone else) -
Well, that's where you actually should fix things. There's a truckload
of bogus markup, including decorational table cells, spacer GIFs and
totally redundant P elements.
http://services.ccagroup.co.uk/upbin...whsmithwedding
This looks as intended on a fair range of browsers (the dark blue menu
separators are about 5-6mm).


Oh dear, as everybody knows the only appropriate length unit on the web
are feet (for optimal results you still need to sniff the
accept-language header since Italian feet are much smaller than those of
the rest of the world). :->
Anyway, as far as stylesheets are concerned, the differences are mostly
due to margins, a oneliner like

td p,td form {margin: 0}

gets rid of most of them in Mozilla, but you need to remove the cause,
not the symptoms, really.
--
| ) Più Cabernet,
-( meno Internet.
| ) http://bednarz.nl/
Jul 21 '05 #4
in comp.infosystems.www.authoring.stylesheets, Chris Sharman wrote:
Lauri Raittila wrote:

No. As your code is so horrible to look at, I can't say much.


You're talking about the stripping out of spaces & returns, or something
else ?


Yes.
> Propably easiest way to fix is build it ground up. As you create
> something with cgi, I really hope you didn't hardcode too much
> presentional stuff in it...


Thanks, but no thanks - if that's "easiest" I'll leave it in quirks
mode, I think.


Actually, rebuilding sites take very little time - you already have
graphics and colors, all you need to do is write stylesheet. Takes maybe
half hour.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
Support me, buy Opera:
https://secure.bmtmicro.com/opera/bu...tml?AID=882173
Jul 21 '05 #5
Eric B. Bednarz wrote:
Oh dear, as everybody knows the only appropriate length unit on the web
are feet (for optimal results you still need to sniff the
accept-language header since Italian feet ^^^^^^^^
Italian speaking feet
are much smaller than those of
the rest of the world). :->

--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 21 '05 #6
Johannes Koch <ko**@w3development.de> writes:
Eric B. Bednarz wrote:

accept-language header since Italian feet

^^^^^^^^
Italian speaking feet


English speaking feet. Italian speaking, piedi.
(you could have checked that first with a feet validator :)
--
| ) Più Cabernet,
-( meno Internet.
| ) http://bednarz.nl/
Jul 21 '05 #7
Eric B. Bednarz wrote:
Anyway, as far as stylesheets are concerned, the differences are mostly
due to margins, a oneliner like

td p,td form {margin: 0}


Brilliant, thank you: "td p" does the business (a missing # on a bgcolor
attribute :( was the cause of the missing bar).
Can't see any impact from "td form" - don't think there is any in the menu.

I'd like to sort it all out, but the guy who's responsible for the
design is only slowly weaning himself off dreamweaver, so the bad shit
has a way of creeping back in.

Now I can make it look right, we can keep incrementally creeping in the
right direction.

How many Italian feet to the mm ? (on a wet Thursday) ?
Cheers,
Chris
Jul 21 '05 #8
Chris Sharman wrote:
Eric B. Bednarz wrote:
Anyway, as far as stylesheets are concerned, the differences are mostly
due to margins, a oneliner like

td p,td form {margin: 0}

Brilliant, thank you: "td p" does the business (a missing # on a bgcolor
attribute :( was the cause of the missing bar).


Now valid html+css !

Thanks again,
Chris
Jul 21 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: annoyedtuna | last post by:
I'm having nightmares with CSS at the moment. Can anyone help me out? I'm including my stylesheet using the following code <head> <title>My Title.</title> <link rel="stylesheet"...
7
by: R0bert Nev1lle | last post by:
Internet Explorer always presents me with a challenge (partial repost). The current issue involves emulating max-width in IE using the technique described by Svend Tofte. ...
12
by: Dan | last post by:
Hi, I just started using this DTD statement (auto-inserted by Dreamweaver MX 2004): <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> ...
81
by: Michael Rozdoba | last post by:
I've been wandering around the results of numerous googles for several hours without reaching a conclusive solution, so I'm dipping a tentative toe back in ciwah... I've been persuaded here in...
24
by: abracad_1999 | last post by:
I'm told the standards way of referencing page content is document.getElementById() What is the lowest version of each browser type with which this will work? Thank you
7
by: John Nagle | last post by:
I've been parsing existing HTML with BeautifulSoup, and occasionally hit content which has something like "Design & Advertising", that is, an "&" instead of an "&amp;". Is there some way I can get...
18
by: Neil Cherry | last post by:
I'm in the process of redesigning my web page and started working more with CSS. I have, what I think is, a nice web layout (I'm no expert so I could be wrong). When I tested it with Konqueror and...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
13
by: ray | last post by:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"/ <TITLE>HTML to Text...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.