473,574 Members | 2,511 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Misc. questions

Hi there,

I'm migrating my pages towards XHTML 1.1 and have run into some
trouble. For example, I can't figure out how to translate these
into classes:

<table cellpadding="5" align="center" width="80%" border="0">

<td witdh="5%">

Also, I'm not sure what a class for the blue color would look like
here:

<p>not <font color="blue">bl ue</font></p>

It's a <span> tag I would need, right? How would I define this in the
CSS?

And what about classes for

<hr size="2" noshade="noshad e" />

and

<img ... border="0" />

?

Thanks!

-Andre
Jul 20 '05 #1
5 1662
Andre Berger <an**********@w eb.de> wrote:
I'm migrating my pages towards XHTML 1.1
Rather pointless as MSIE is incapable of displaying proper XHTML 1.1
and have run into some trouble. For example, I can't figure out how
to translate these into classes:
What does using classes have to do with XHTML 1.1? The precise same
problem exists regardless of which version of (X)HTML you are using.
<table cellpadding="5" align="center" width="80%" border="0">
table.yourClass Name {
margin-left: auto; margin-right: auto; /* same effect as
align="center" but only works in IE if it's IE6 in standards mode */
width: 80%;
border: none;
}

table.yourClass Name td, table.yourClass Name th {
padding: 5px;
}
<td witdh="5%">
td.yourOtherCla ssName {
width: 5%;
}
Also, I'm not sure what a class for the blue color would look like
here:

<p>not <font color="blue">bl ue</font></p>

It's a <span> tag I would need, right? How would I define this in the
CSS?
It may be a span element. But the question you need to ask is _why_ is
the text blue? Is it some form of emphasis? In which case <em> is the
correct element to use.

em {
font-style: normal
color: #0000FF;
background-color: #FFFFFF;
}
And what about classes for

<hr size="2" noshade="noshad e" />
Slightly trickier, <hr> is an odd element at the best of times. The
easiest solution is to specify a 2px wide top or bottom border on some
adjacent element.

whatever {
border-top: 2px solid #000000;
}

One belt and braces method is as follows:

<div class="hr"><hr /><div>

div.hr {margin: 0; padding: 0; border-top-width: 2px; border-style:
solid; border-color: #000000; border-right-width: 0;
border-bottom-width: 0; border-left-width: 0;}
hr { display: none;}

Which works well with most browser bugs (if you don't care about NN4
you can use the border-top shorthand instead of specifying all the
border properties individually) and degrades to a plain <hr> when CSS
isn't available.

Generally almost everyone has their own method of styling <hr>s.
and

<img ... border="0" />


img {
border-width: 0;
}

cheers,
Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Jul 20 '05 #2
On Wed, 07 Apr 2004 09:50:07 +0100, Steve Pugh <st***@pugh.net > wrote:
Andre Berger <an**********@w eb.de> wrote:
I'm migrating my pages towards XHTML 1.1


Rather pointless as MSIE is incapable of displaying proper XHTML 1.1


Yes. People who, for some reason, want to switch to XHTML syntax instead
of HTML syntax for producing web pages, are IMHO best of using XHTML 1.0
Strict.

...

--
Rijk van Geijtenbeek

The Web is a procrastination apparatus:
It can absorb as much time as is required to ensure that you
won't get any real work done. - J.Nielsen
Jul 20 '05 #3
On Wed, 7 Apr 2004, Steve Pugh wrote:
Andre Berger <an**********@w eb.de> wrote:
I'm migrating my pages towards XHTML 1.1


Rather pointless as MSIE is incapable of displaying proper XHTML 1.1


More exactly "is incapable of rendering XHTML 1.1" - if MSIE can
render it, then it isn't XHTML 1.1(tm). The compatibility guidelines
of XHTML/1.0 Appendix C (in so far as they can be followed at all,
since there are some mutual contradictions) are applicable only to
XHTML/1.0, not to anything later. And, as has been said so many times
before, in practical WWW terms, XHTML/1.0 brings no benefits and some
disadvantages, relative to a "normalised " usage of HTML/4.01.

(Oh, I told MS to use a helper application for opening XHTML
content-types, leaving IE to deal with the text/html content-type for
itself. I defined the helper application to be Mozilla. That works,
and in a sense IE is "displaying " XHTML - but Mozilla is doing the
actual rendering ;-)
Jul 20 '05 #4
On Wed, 07 Apr 2004 11:50:06 +0200, "Rijk van Geijtenbeek"
<ri**@opera.com > wrote:
On Wed, 07 Apr 2004 09:50:07 +0100, Steve Pugh <st***@pugh.net > wrote:
Andre Berger <an**********@w eb.de> wrote:
I'm migrating my pages towards XHTML 1.1


Rather pointless as MSIE is incapable of displaying proper XHTML 1.1


Yes. People who, for some reason, want to switch to XHTML syntax instead
of HTML syntax for producing web pages, are IMHO best of using XHTML 1.0
Strict.


but it can't display that either, unless you're prepared to agree to
the nonsense that is Appendix C.

Jim.
--
comp.lang.javas cript FAQ - http://jibbering.com/faq/

Jul 20 '05 #5
On Wed, 07 Apr 2004 11:50:06 +0200, "Rijk van Geijtenbeek"
<ri**@opera.com > wrote:
On Wed, 07 Apr 2004 09:50:07 +0100, Steve Pugh <st***@pugh.net > wrote:
Andre Berger <an**********@w eb.de> wrote:
I'm migrating my pages towards XHTML 1.1


Rather pointless as MSIE is incapable of displaying proper XHTML 1.1


Yes. People who, for some reason, want to switch to XHTML syntax instead
of HTML syntax for producing web pages, are IMHO best of using XHTML 1.0
Strict.


but it can't display that either, unless you're prepared to agree to
the nonsense that is Appendix C.

Jim.
--
comp.lang.javas cript FAQ - http://jibbering.com/faq/

Jul 20 '05 #6

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

Similar topics

1
3665
by: Staz | last post by:
Hi all I am getting a NoClassDefFoundError from sun.misc.Unsafe.ensureClassInitialized, but the exception has no message so I have no way of knowing what class it cannot find. The application is a servlet that has just been loaded onto a new server, and is (I believe) trying to read in a serialised report definition built by Jasper...
0
1505
by: . | last post by:
comp.infosystems.www.authoring.html,news.admin.hierarchies,comp.bugs.misc,comp.os.ms-windows.programmer.networks,comp.os.os2.bugs
0
1305
by: Support4John | last post by:
a2k (9.0.6926) SP-3 Jet 4.0 SP-7 Does anybody have US Accounts Payable Miscellaneous Income Form 1099-Misc report object they want to share? Thanks, John
0
1536
by: Bjørn Augestad | last post by:
Hello, everyone. It's time to add a new module to the libclc library, so this is an invitation for all to contribute misc. functions which doesn't fit into a category of their own. Not the big stuff like an implementation of STL in C, but more like small and useful functions. Don't know about you guys, but I have a few functions I'd like...
3
1905
by: Mochuelo | last post by:
Hi, I'm working with an asynchronous TCP server. I have a few questions that may seem silly, but I can't get to understand all this. Let's say that BeginAccept will cause the AcceptCallback method being executed, and that BeginReceive will cause the ReadCallback method being execute. I have played a little bit with them, it looks like the...
0
4080
by: softwareengineer2006 | last post by:
All Interview Questions And Answers 10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP) I have listed over 10000 interview questions asked in interview/placement test papers for all companies between year 2000-2005 in my website http://www.geocities.com/allinterviewquestion/ So please have a look and make use of it.
1
1122
by: ASP Developer | last post by:
I have a user control with exposed properties. I have about 100 properties. I would like to organize them so they are easier for other programmers to peruse. Is it possible to organize the misc section and add +/- sections to make it easier to read?
2
7178
by: freepdfforjobs | last post by:
Full eBook with 4000 C#, JAVA,.NET and SQL Server Interview questions http://www.questpond.com/SampleInterviewQuestionBook.zip Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of attending interviews. If you own a company best way to judge if the candidate is...
1
17613
eyeofsoul
by: eyeofsoul | last post by:
Hello again..i have a problem on importing sun.misc.BASE64Decoder, when i type for example System.out.println("Cipher Text: " + new sun.misc.BASE64Decoder(ciphertext)); i get an error saying cannot find symbol..i already put import sun.misc.BASE64Decoder.*; but when i type return new...
2
1986
by: selvamariappan | last post by:
Hi all, I am using vb.net 2008, how to create a misc properties for a textbox in windows forms, Please help me its very urgent.. Regards selvamariappan.c
0
8040
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8225
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...
1
7800
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...
0
8092
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...
0
6437
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...
1
5610
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5296
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...
0
3738
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...
1
2230
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 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.