473,657 Members | 2,493 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Inheritance question I think?

Hi,

I don't have this on a public server anywhere, so I'm just going to
paste a very much simplified version code here:

Stylesheet:
body {
background-color: #FFFFEF;
margin: 0%;
padding: 0;
height: 100%;
}
body, div, p, blockquote, ol, ul, dl, li, dt, dd, th, td {
font-family: Arial, Helvetica, sans-serif;
color: #000000;
font-size: xx-small;
}
#extra {
position: relative;
width: 200px;
padding: 0px;
margin-left: 10px;
margin-bottom: 10px;
border: 1px dashed #6B1894;
}
#extra th {
padding: 5px;
text-align: center;
background: #6B1895;
color: #FFFFFF;
font-weight: normal;
font-size: 90%;
}
#extra td {
padding: 5px;
font-size: 90%;
}

HTML Page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html lang="en">
<head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<link href="styles2.c ss" rel="stylesheet " type="text/css">
</head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body>
<p>This is a bunch of meaningless text.</p>
<div id="extra">
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<th>Title Text</th>
</tr>
<tr>
<td>This is some more text.</td>
</tr>
</table>
</div>

</body>
</html>

I made the text size very small, so you can tell the difference
easily. If I delete the font-size: 90% in the extra tags, the
font-size for those tags is the same as the body - xx-small, so it
looks like it's inheriting that value. Shouldn't 90% of xx-small be
super small? The text in the extra div is bigger than the text in the
body if I leave the font-size: 90% in there. I can't figure out what
the heck is going on here. Anyone have any suggestions?

Thanks!
Holli
Jul 20 '05 #1
8 1765
Holli Graham:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html lang="en">
<head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<link href="styles2.c ss" rel="stylesheet " type="text/css">
</head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
Lots and lots of coding errors here. It seems you're trying to write HTML4,
but you're declaring XHTML 1.0. The code is wrong for both versions of HTML
anyway.

Decide which version of HTML you want to use, and then try to get the code
right using a validator, e.g.:

<URL:http://validator.w3.or g/>
The text in the extra div is bigger than the text in the
body if I leave the font-size: 90% in there. I can't figure out what
the heck is going on here. Anyone have any suggestions?


Get the HTML code right first. Then you can start working on CSS and start
worrying about text sizes.

--
Bertil Wennergren <be******@gmx.n et> <http://www.bertilow.co m>
Jul 20 '05 #2
Bertilo Wennergren <be******@gmx.n et> wrote in message news:<be******* ******@news.t-online.com>...
Holli Graham:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html lang="en">
<head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<link href="styles2.c ss" rel="stylesheet " type="text/css">
</head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>


Lots and lots of coding errors here. It seems you're trying to write HTML4,
but you're declaring XHTML 1.0. The code is wrong for both versions of HTML
anyway.

Decide which version of HTML you want to use, and then try to get the code
right using a validator, e.g.:

<URL:http://validator.w3.or g/>
The text in the extra div is bigger than the text in the
body if I leave the font-size: 90% in there. I can't figure out what
the heck is going on here. Anyone have any suggestions?


Get the HTML code right first. Then you can start working on CSS and start
worrying about text sizes.


Other than the fact that I accidently pasted something twice:

<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

What else is wrong? This is not available on a publicly accessible
server, so I can't run anything through a validator. Is there some
validator I can download to test through localhost? I'm trying to
make this site 508 accessible and yet degrade acceptably in older
browsers. I've tested this code in Opera, NN4, NN7, and IE 5.5, and
everything works fine except for the font size issue.
Jul 20 '05 #3
Bertilo Wennergren <be******@gmx.n et> wrote in message news:<be******* ******@news.t-online.com>...
Holli Graham:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html lang="en">
<head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<link href="styles2.c ss" rel="stylesheet " type="text/css">
</head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>


Lots and lots of coding errors here. It seems you're trying to write HTML4,
but you're declaring XHTML 1.0. The code is wrong for both versions of HTML
anyway.

Decide which version of HTML you want to use, and then try to get the code
right using a validator, e.g.:

<URL:http://validator.w3.or g/>
The text in the extra div is bigger than the text in the
body if I leave the font-size: 90% in there. I can't figure out what
the heck is going on here. Anyone have any suggestions?


Get the HTML code right first. Then you can start working on CSS and start
worrying about text sizes.


The following code validates in the Dreamweaver XML validator.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="styles2.c ss" rel="stylesheet " type="text/css" />
</head>

<body>
<p>This is a bunch of meaningless text.</p>
<div id="extra">
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<th>Title Text</th>
</tr>
<tr>
<td>This is some more text.</td>
</tr>
</table>
</div>

</body>
</html>

So, I'm still asking if anyone has any ideas why the font sizes aren't working?

Thanks!
Holli
Jul 20 '05 #4
On 10 Jul 2003 21:18:51 -0700, Holli Graham <hg*****@bcbsal .org> wrote:

[snip]
What else is wrong? This is not available on a publicly accessible
server, so I can't run anything through a validator. Is there some
validator I can download to test through localhost? At < http://validator.w3.org/ > you can upload a local file to have it
validated.
browsers. I've tested this code in Opera, NN4, NN7, and IE 5.5, and
everything works fine except for the font size issue.

If you have Opera it's even easier:
1) open the local file in Opera
2) press Ctrl + Alt + V
3) answer OK

Regards

Lars
Jul 20 '05 #5
Holli Graham:
Bertilo Wennergren
Get the HTML code right first. Then you can start working on CSS and
start worrying about text sizes.

Other than the fact that I accidently pasted something twice: <title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head> What else is wrong?
For example:

<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">

That is not correct XHTML 1.0 Transitional (as you declared the code to be).
In XHTML you have to write this:

<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />

There are other mistakes too.

Or you can change the doctype to some HTML 4 variety (and take out the
duplicate code).
This is not available on a publicly accessible
server, so I can't run anything through a validator.


Yes you can. You can upload pages to the W3C Validator.

--
Bertil Wennergren <be******@gmx.n et> <http://www.bertilow.co m>
Jul 20 '05 #6
Holli Graham:
The following code validates in the Dreamweaver XML validator.
Dreamweaver is not an HTML validator. And the code is not valid. There is no
"title" element in "head".
So, I'm still asking if anyone has any ideas why the font sizes aren't
working?


Get the HTML right first, then we'll worry about font sizes.

--
Bertil Wennergren <be******@gmx.n et> <http://www.bertilow.co m>
Jul 20 '05 #7
Bertilo Wennergren wrote:
Holli Graham:

[snip]
This is not available on a publicly accessible
server, so I can't run anything through a validator.


Yes you can. You can upload pages to the W3C Validator.


Or install a validator locally. The code to the W3C validator is available,
the same applies to the WDG validator, and I'm pretty sure one of the
Windows all-in-one packages includes a validator (along with tidy, etc).

--
Jim Dabell

Jul 20 '05 #8
I'm going to check out these validators, and get the HTML straight and
go from there. Just wanted to say thanks to everyone for the help!
Jul 20 '05 #9

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

Similar topics

11
3232
by: Ricky Romaya | last post by:
Hi, Are there any ways to get multiple inheritace in PHP4? For example, I have 3 parent class, class A, B, and C. I want class X to inherit all those 3 classes. Consider merging those 3 classes is out of the question, as there are class Y which only inherits from class A, etc. TIA
4
2890
by: JKop | last post by:
I'm starting to think that whenever you derive one class from another, that you should use virtual inheritance *all* the time, unless you have an explicit reason not to. I'm even thinking that there shouldn't have been a "virtual" keyword for this purpose, but instead, a "nonvirtual" keyword! In teaching inheritance, you see the common example: class Vehicle {}
20
10072
by: km | last post by:
Hi all, In the following code why am i not able to access class A's object attribute - 'a' ? I wishto extent class D with all the attributes of its base classes. how do i do that ? thanks in advance for enlightment ... here's the snippet #!/usr/bin/python
14
12901
by: Steve Jorgensen | last post by:
Recently, I tried and did a poor job explaining an idea I've had for handling a particular case of implementation inheritance that would be easy and obvious in a fully OOP language, but is not at all obvious in VBA which lacks inheritance. I'm trying the explanation again now. I often find cases where a limited form of inheritance would eliminate duplication my code that seems impossible to eliminate otherwise. I'm getting very...
22
23347
by: Matthew Louden | last post by:
I want to know why C# doesnt support multiple inheritance? But why we can inherit multiple interfaces instead? I know this is the rule, but I dont understand why. Can anyone give me some concrete examples?
7
12871
by: Hazz | last post by:
Are there any good references/articles/books which provide clarity toward my insecurity still on deciding how to model a complex system? I still feel uncomfortable with my understanding, even though I have worked with these systems on when to decide to use interfaces (and how they should be developed) as opposed to or complemented by the use of inheritance from base classes. If I am thinking from the point of view of some specific activity...
0
1188
by: Terry Hancock | last post by:
I've been discussing PyProtocols with a a friend collaborating with me on a SF game project, about the benefits and design concept of "component architecture", and I'm a little confused by what I'm learning. I learned the concepts of "component architecture" from the Zope project, where if I'm not mistaken, "components" are essentially python "mix-in" classes, and you make a class from components by using multiple inheritance and...
47
3625
by: Mark | last post by:
why doesn't .NET support multiple inheritance? I think it's so silly! Cheers, Mark
60
4903
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the 'target' programming community herein) to get some community input and verify (or not) the following two statements. Few programmers (3 to7%) UNDERSTAND 'Strategic Functional Migration
3
2548
by: Jess | last post by:
Hello, I've been reading Effective C++ about multiple inheritance, but I still have a few questions. Can someone give me some help please? First, it is said that if virtual inheritance is used, then "the responsibility for initializing a virtual base is borne by the most derived class in the hierarchy". What does it mean? Initializing base class is usually done automatically by the compiler, but a derived class can invoke the base...
0
8421
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, 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...
0
8325
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,...
0
8742
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 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...
1
8518
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,...
0
8621
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 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...
0
7354
agi2029
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...
0
5643
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();...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1971
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.