473,544 Members | 1,241 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

typepad (blog sw) -- wrong syntax on their class names??

hi,

I'm writing about generated code in a blog-sw.. (typepad..)
this is from their code:

<div class="module-typelist module">

as far as I know this is wrong syntax for a class-name, right (with an
empty space in the middle of it)????

thank you...

Oct 12 '07 #1
6 1727
Scripsit maya:
<div class="module-typelist module">

as far as I know this is wrong syntax for a class-name, right (with an
empty space in the middle of it)????
No, it's correct syntax for a list of class names, with a space as
separator. The <divelement belongs to the two classes. This is well
supported by browsers. (Very few people use browsers like Netscape 4 which
didn't get it.)

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Oct 12 '07 #2
Jukka K. Korpela wrote:
Scripsit maya:
> <div class="module-typelist module">

as far as I know this is wrong syntax for a class-name, right (with an
empty space in the middle of it)????

No, it's correct syntax for a list of class names, with a space as
separator. The <divelement belongs to the two classes. This is well
supported by browsers. (Very few people use browsers like Netscape 4
which didn't get it.)
my gosh, this is crazy.. as if all this blog-code weren't confusing
enough...

so I have to do:

.module-typelist, .module { }

to style this? (since can't change this generated code..)

why use two different classes for one element? oh man.. ok.. thank you...

I absolutely hate editing blogs... it's a nightmare....
Oct 12 '07 #3
Scripsit maya:
>> <div class="module-typelist module">
- -
my gosh, this is crazy.. as if all this blog-code weren't confusing
enough...
Blog code can be confusing, but this is really a _simple_ thing.
so I have to do:

.module-typelist, .module { }

to style this? (since can't change this generated code..)
No, you can use either

..module-typelist { ... }

or

..module { ... }

as you like, or both, as long as you understand that the rules apply to all
elements in the given class. Or if you really want to restrict the rule to
those elements that belong to both classes, you can use

..module-typelist.module { ... }

though this might have some limitations in browser support (sorry, I'm not
sure about this).
why use two different classes for one element?
Well, it's like saying "he is a male engineer", i.e. he belongs to the class
of engineers and to the class of male people. Rather logical, really. You
might want style an element both by the rules for one class and by the rules
for another class. Say, you make all engineers red and all male people huge
(in font). Then male engineers will look huge and red, whereas other
engineers just look red and other males just huge.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Oct 12 '07 #4
Jukka K. Korpela wrote:
Scripsit maya:
> <div class="module-typelist module">

as far as I know this is wrong syntax for a class-name, right (with an
empty space in the middle of it)????

No, it's correct syntax for a list of class names, with a space as
separator. The <divelement belongs to the two classes. This is well
supported by browsers. (Very few people use browsers like Netscape 4
which didn't get it.)
ok, so can I do

.module-typelist, .module { ... }

asking b/c am doing like this but it's not working..

thank you..
Oct 12 '07 #5
In article <Oe************ *********@reade r1.news.saunala hti.fi>,
"Jukka K. Korpela" <jk******@cs.tu t.fiwrote:
why use two different classes for one element?

Well, it's like saying "he is a male engineer", i.e. he belongs to the class
of engineers and to the class of male people.
Yes, rather than that he is a male-engineer in the sense that
this is a class different to female-engineers, the odd male or
odd female possibly being in an unexpected one of these
categories.

Some farsighted universities have separate courses for males and
females, recognising the great differences in their brains. Just
to take one facet by way of illustration, men tend to over
simplify their control systems:

<http://members.optusho me.com.au/droovies/pics/engineer.jpg>

Rather logical, really. You
might want style an element both by the rules for one class and by the rules
for another class. Say, you make all engineers red and all male people huge
(in font). Then male engineers will look huge and red, whereas other
engineers just look red and other males just huge.
--
dorayme
Oct 12 '07 #6
In article
<do************ *************** *******@news-vip.optusnet.co m.au>,
dorayme <do************ @optusnet.com.a uwrote:
In article <fe**********@a ioe.org>, maya <ma********@yah oo.com>
wrote:
ok, so can I do

.module-typelist, .module { ... }

asking b/c am doing like this but it's not working..
I meant to mention that if somehow you are trying this css
inline, it will not work, these combined css instructions are for
css sheets either external or in the head (see urls I exampled in
last post).

If you want it to "work" via inline, you just style directly:

http://netweaver.com.au/test/combine...Combined4.html

The truth is that it can get complicated. Maybe these urls will
inform you a bit anyway?

--
dorayme
Oct 13 '07 #7

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

Similar topics

699
33344
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro capabilities, unfortunately. I'd like to know if it may be possible to add a powerful macro system to Python, while keeping its amazing syntax, and if it...
37
2573
by: Bengt Richter | last post by:
ISTM that @limited_expression_producing_function @another def func(): pass is syntactic sugar for creating a hidden list of functions. (Using '|' in place of '@' doesn't change the picture much (except for people whose tools depend on '@' ;-)). I.e., (not having the source or time to delve) the apparent semantics of the above is...
8
3315
by: Jan van Veldhuizen | last post by:
The UPDATE table FROM syntax is not supported by Oracle. I am looking for a syntax that is understood by both Oracle and SqlServer. Example: Table1: id name city city_id 1 john newyork null
8
2062
by: Rich Grise | last post by:
I think I've finally found a tutorial that can get me started: http://www.zib.de/Visual/people/mueller/Course/Tutorial/tutorial.html and I've been lurking for awhile as well. What happened is, I've been playing with Qt in KDE on a Slackware 10.0 system, and following their cookbook exercises, and everything's working, and I have no clue...
8
4321
by: tom | last post by:
I am new to SQL administration. >From a list of IDs that are the primary key in one table (i.e. Customer Table), I want to make changes in tables that use those IDs as a foreign key. Basically I want to say: If fk_ID is in list then do these statements to that record
267
10512
by: Xah Lee | last post by:
Python, Lambda, and Guido van Rossum Xah Lee, 2006-05-05 In this post, i'd like to deconstruct one of Guido's recent blog about lambda in Python. In Guido's blog written in 2006-02-10 at http://www.artima.com/weblogs/viewpost.jsp?thread=147358
18
2309
by: bsruth | last post by:
I tried for an hour to find some reference to concrete information on why this particular inheritance implementation is a bad idea, but couldn't. So I'm sorry if this has been answered before. Here's the scenario: We have a base class with all virtual functions. We'll call this the Animal class. We then make two classes Fish and Bird...
2
2489
by: JJA | last post by:
I'm looking at some code I do not understand: var icons = new Array(); icons = new GIcon(); icons.image = "somefilename.png"; I read this as an array of icons is being built. An element of the array is an object itself but what is this syntax of the consecutive double quotes inside the brackets ?
1
3470
by: judacris | last post by:
I've seen the threads here about molding 2 divs in a centered fashion. but I can't seem to solve this thing. my blogger blog is functioning well on my site for now, but the blog feed (left) and the sidebar (right) doesn't center here's the css i'm modifying to center it. i apologise for the mess. <html> <head> <title>cris-kun's 'Blog -...
0
7424
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...
0
7607
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
7772
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
7376
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
5909
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...
0
3409
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1841
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
1
988
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
661
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.