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 8 2400
in comp.infosystem s. 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
Lauri Raittila wrote: in comp.infosystem s.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
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/
in comp.infosystem s. 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
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.)
Johannes Koch <ko**@w3develop ment.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/
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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" href="stylesheet.css" type="text/css"></link>
</head>
In IE this works fine
|
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.
http://www.svendtofte.com/code/max_width_in_ie/
The CSS code uses JavaScript expressions and feeds the browser's width
to the style. The CSS code follows.
* html #Content {
|
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">
Suddenly, the font sizes on my pages decreased by one level (e.g., from
small to x-small). I tested this by increasing them in the .css, and they
looked OK again.
|
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 the past that serving xhtml is a bad thing (tm).
I want the extra constraints xhtml imposes.
It has been suggested before to create a DTD which requires these &
includes all the requirements of HTML 4.01 & validate against that.
|
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
| |
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 "&". Is there some way I can get BeautifulSoup
to clean those up? There are various parsing options related to "&"
handling, but none of them seem to do quite the right thing.
If I write the BeautifulSoup parse tree back out with "prettify",
the loose "&" is still in there. So...
|
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 Firefox it
works well (a few minor problems) but when I test it with IE 6.0 it
doesn't display or it jumbles everything up. I've tried using various
examples (conditionals) to get around IE problems but they are causing
more problems that they...
|
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
********************************************************
For this teeny job, please refer to:
http://feeds.reddit.com/feed/8fu/?o=25
|
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 Test Page</TITLE>
<SCRIPT type="text/javascript" src="test.js"/>
<SCRIPT type="text/javascript">
function onload(){
|
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: 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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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.
| |