Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using two CSS Classes

0 views
Skip to first unread message

Joe Mumbauer

unread,
Jan 30, 2003, 9:42:50 AM1/30/03
to

If I have two css classes declared and for some element I want to use both...is
this possible or do I have to declare a third class that has both of the other
two?
In other words...let's say I have:
.marked { color: red}
.big {font-weight: bold}
Is there a way (and syntactically correct) to say something like:
<SPAN CLASS="marked, big">...</SPAN>

Joe Mumbauer.


Rowland Shaw

unread,
Jan 30, 2003, 10:29:28 AM1/30/03
to

You may find some mileage with:
<SPAN CLASS="marked big">...</SPAN>

But I'd reccomend:
<SPAN CLASS="marked"><SPAN CLASS="big">...</SPAN>
</SPAN>
instead...


"Joe Mumbauer" <mumb...@kutztown.edu> wrote...

Joe Mumbauer

unread,
Jan 30, 2003, 11:34:25 AM1/30/03
to

Just curious...why would you recommend using two SPAN tags?

Joe Mumbauer.


"Rowland Shaw" <spamf...@anotherpointless.org> wrote in message
news:OnZ5VRHyCHA.440@TK2MSFTNGP12...

Rowland Shaw

unread,
Jan 31, 2003, 4:51:02 AM1/31/03
to
backward compatability, in fact it doesn't realy matter what kind of tags
they were, but it does mean that even IE3 will apply both styles.

If you want to see how I've seen it used in the wild, check out
http://www.colchester-angle.com/

You'll notice that there's stuff like:
<div class="events">
<p class="section">
<A HREF="events/" class="toc">colchester.<span
class="events">events</span></A><BR>
<a href="events/place.cgi">Advertise your events</a> and clubs in
colchester.<span class="events">events</span>
</p>
</div>
So you've got the .section which deines margins, border sizer and style, the
.events .section that sets the border-color and stuff...


"Joe Mumbauer" <mumb...@kutztown.edu> wrote...


> Just curious...why would you recommend using two SPAN tags?
>
> Joe Mumbauer.
>
>

> "Rowland Shaw" <spamf...@anotherpointless.org> wrote...

Joe Mumbauer

unread,
Jan 31, 2003, 9:14:31 AM1/31/03
to
Thanks,

Joe Mumbauer.


"Rowland Shaw" <spamf...@anotherpointless.org> wrote in message
news:#aVx44QyCHA.2288@TK2MSFTNGP09...

Philip Miller

unread,
Feb 2, 2003, 2:32:43 PM2/2/03
to

I still don't see why anyone is worried about IE anything less than 5.0.
4.0 is history. 3.0 is dead. When you can just download the latest ones
why would you assume anyone had anything less than 5.0. NS is the same
issue.

bodywise


"Rowland Shaw" <spamf...@anotherpointless.org> wrote in message

news:#aVx44QyCHA.2288@TK2MSFTNGP09...

Disco

unread,
Feb 2, 2003, 7:43:24 PM2/2/03
to
This is why....

http://www.browsermonitor.com/

notice the fourth highest use browser.

IE3 is way down the list, but it still has .01% of the current 8.56 million
hits (and if just one of those hits comes from a potential client, then that
is reason enough for me).

"Philip Miller" <www7...@earthlink.net> wrote in message
news:ekK0RHvyCHA.1264@TK2MSFTNGP09...

David C Holley

unread,
Feb 3, 2003, 1:23:40 AM2/3/03
to
It also provides a means to highlight particular information. Its quite
interesting that this thread brought up different browsers since I'm
using a double span to point out when a user is not using IE or
Netscape. The CSS contains a class entitled sectionHeaders. I use this
class to provide headlines for content (ex: WELCOME, NEWS, UPDATES,
etc.). The class sets the color for these as black. The double span
comes into play when I display a WEB BROWSER ALERT. For this, I want the
exact same size and font as the other headlines, but in red (actually
#CC0000). In the HTML, the first span sets the font, size and color per
the CSS. The second span overrides the color to red. I suppose that you
could take this one step further and possibly utilize double spans as a
way to provide users with the option of selecting a color scheme to view
your site. (Not going to go there since I'm not even thinking about
trying that.)

Rowland Shaw

unread,
Feb 3, 2003, 3:46:32 AM2/3/03
to
There's a very good reason to develop for *any* (read: all) browsers, there
was an article written way back in 1996 that makes a very good version of
the argument -- It's titled "Arguing with Customers" and has been reproduced
many times, so I'll just link to this version:
http://www.jahns-home.de/rentmei/html/opti.html

Or, in German:
http://www.anybrowser.org/campaign/anybrowser_de.html

And that's without even mentioning all the download time issues for
upgrading, at least in the UK where there are great areas of the country
where Broadband service is just not available, and budget ISPs have cut off
times to cope with high demand (typically 2 hours)


"Philip Miller" <www7...@earthlink.net> wrote...


> I still don't see why anyone is worried about IE anything less than 5.0.
> 4.0 is history. 3.0 is dead. When you can just download the latest ones
> why would you assume anyone had anything less than 5.0. NS is the same
> issue.
>
>

> "Rowland Shaw" <spamf...@anotherpointless.org> wrote...

Philip Miller

unread,
Feb 3, 2003, 11:35:15 AM2/3/03
to

Thanks for this list. This is interesting. But try this. Go down to your
local auto supply dealer and ask him for some parts to your 1948 Plymouth.
At some point you can't support everyone. Not even the large software
companies will support all products -- forever. At some point you just
stop. I won't go into this further. But to capture the less than 1-5% crowd
is diminishing returns.

bodywise


"Disco" <discoo...@yahoo.com> wrote in message
news:MWi%9.1597$YU1....@news.optus.net.au...

David C Holley

unread,
Feb 3, 2003, 2:38:31 PM2/3/03
to
Of course, I would ask the simple question - if they're not using a
relatively recent version of any browser, are they really going to be
worth their business?

Rowland Shaw

unread,
Feb 4, 2003, 3:44:57 AM2/4/03
to
This is just a sheer display of arrogance.

There are many specialist markets (with specalist profit margins) where the
users aren't always technically aware. For example, the consumer market in
the UK.

A case example:
I visit www.argos.co.uk using a popular browser, say Opera.
I get told "The Argos site runs off all browsers from Internet Explorer
version 4.01 upwards, and Netscape version 4.07 upwards."
I follow the link on the page telling me to "upgrade" and install the
current version of Netscape (7.01)
I go back, after following their instructions, only to get told "Sorry, the
Argos Internet site cannot currently be viewed using Netscape 6"

This leaves me with an online store that I cannot use. Nor anyone else that
doen't use wintel architecture.

I may be just one customer (although this particular example came from a
friend who was genuinely trying to browse their catalogue), but it means I
go blabbing my mouth off in public forums about how they don't seem to care
about their potential customers and ignore their needs. What's worse for
them is that all I've stated is factual based on the content of their
website.

In their favor (almost), some of the groups other brands (like kaysnet.com)
work in those browsers.

By the way, my local car spares company asked if their was a specific part
for your 1948 Plymouth you were after, as they were willing to try and trace
it down for you...


"David C Holley" <DavidC...@netscape.net> wrote...

Philip Miller

unread,
Feb 4, 2003, 8:41:10 PM2/4/03
to
I wonder how deep this can go? This will be the last post.

Arrogance or practicality?

I go back to the auto supply store example. You already found out they
don't stock it. They can't. No drug store (pharmacy or chemist) can
stock all drugs available any longer. Too much. No cosmetic store will
all lines. You can't be all things to all people.

You do the best you can do for the greatest good. But you never reach 100%

Besides, I go back to my original contention, why are there so many browsers
out there? Aside from banalities, and loyalties and other highly charged
emotional issues, a browser is basically a browser. I, personally, see no
advantage of Netscape over IE series. I have played with both. And
Netscape does not display some really common attributes according to CSS
that follow the DOM and the DOC 4.01 conventions.

I can't even get my Netscape 7.01 browser to display the ALT tags.

So you download IE5 or 6.0 and you will have no problems with any site.
Virtually none. I don't care where you are or how long it takes. May this
is the one thing you download all month.

But ... I know there are more opinions .... more heat than light

with regards,
bodywise


"Rowland Shaw" <spamf...@anotherpointless.org> wrote in message

news:uYiNmmCzCHA.2488@TK2MSFTNGP12...

Cybarber

unread,
Feb 11, 2003, 6:40:24 PM2/11/03
to
It is just a matter of time and money. If you feel you need to target some
minority do so but then be prepaired to spent extra time and money. In the
majority of case that investment will not me amortized.

It is all very nice but pratically it is efficient to make a webpage which
works well in IE55 and IE6 and forget about the rest (use the very nice
"conditional comments" feature to make a standard page for anyone else)

<!--[if lte IE 5.5]>
<H2>Hello there, stoneage people, gather your bone hammers and stone wedges
and follow us in the modern age!</h2>
<![endif]-->

Cybarber

"Rowland Shaw" <spamf...@anotherpointless.org> schreef in bericht
news:uYiNmmCzCHA.2488@TK2MSFTNGP12...

Rowland Shaw

unread,
Feb 12, 2003, 5:24:45 AM2/12/03
to
All well and good, but this then gets crawled by search cngines (as well as
browsers on non-wintel platforms and users of browsers from other vendors on
wintel platforms)

In my experience, it's no cost to support older browsers, if you go in with
a mindset for writing accessible content. An example I've found that I'm
quite fond of is http://www.ipswich-angle.com/ - it looks pretty much the
same in IE5, IE5.5, IE6, Opea, Gecko based (so NS/7, Pheonix and friends) as
well as IE/5.1

It's all about approach. If you go into a project with the mindset of "I
want to make this as easy to use as possible" you'll end up with a more
accessible site than if you go in thinking "I want a site that looks kewl".
Even simple things like alt tags on images so your site doesn't just turn
into "[IMG][IMG][IMG][IMG]______[ Submit ][IMG][ Aanmelden ][ Registreren ]"


"Cybarber" <luc...@emergo.nl> wrote...


> It is just a matter of time and money. If you feel you need to target some
> minority do so but then be prepaired to spent extra time and money. In the
> majority of case that investment will not me amortized.
>
> It is all very nice but pratically it is efficient to make a webpage which
> works well in IE55 and IE6 and forget about the rest (use the very nice
> "conditional comments" feature to make a standard page for anyone else)
>
> <!--[if lte IE 5.5]>
> <H2>Hello there, stoneage people, gather your bone hammers and stone
wedges
> and follow us in the modern age!</h2>
> <![endif]-->
>
> Cybarber
>

> "Rowland Shaw" <spamf...@anotherpointless.org> schreef...

Cybarber

unread,
Feb 12, 2003, 8:09:25 PM2/12/03
to
http://www.ipswich-angle.com

Are you kidding? Anyone can write something like that with some table inputs
an colors and images. nothing special at all no dynamics just some text.

Your standars are rather low any version 4 browser could do the same.
As most people are now using IE55 and IE6 one should use the features those
browsers provided to the fulles to make an attractive website.

But this discussion is arlready so old and all viewpoints have been aired
many times.

The end.
Cybarber


"Rowland Shaw" <spamf...@anotherpointless.org> schreef in bericht

news:#FO3ZFo0CHA.1132@TK2MSFTNGP10...

Rowland Shaw

unread,
Feb 13, 2003, 3:59:38 AM2/13/03
to
"Cybarber" <luc...@emergo.nl> wrote...

> http://www.ipswich-angle.com
>
> Are you kidding? Anyone can write something like that with some table
inputs
> an colors and images. nothing special at all no dynamics just some text.
>
> Your standars are rather low any version 4 browser could do the same.
> As most people are now using IE55 and IE6 one should use the features
those
> browsers provided to the fulles to make an attractive website.
>
> But this discussion is arlready so old and all viewpoints have been aired
> many times.


And you still seem to ignore the possibility that people want websites that
they can get information from, and not ones that look pretty.

The example site is reasonably visually appealing and very backward
compatible. There's no need for DHTML, so there isn't any. This is a good
thing.

At the end of the day it's a qualitive thing. The original question of
multiple classes is demostrated well but said site, in a backwards
compatible manner -- there's no point locking out other users purely because
you can -- there's no extra effort starting off with <div
class="events"><div class="section">Blah</div></div> instead of <div
class="events section">Blah</div>


0 new messages