navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

contextual selectors

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> contextual selectors
Page: [1]
 
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
contextual selectors - 9/24/2003 19:00:12   
Ok, I have been trying to get this to sink into my head. Now after many searches and reads on this I do need help.

I don't understand contextual selectors. I need to do this for my homework assignment. I have printed out so many pages on this, and looked in all my books. This is like the Includes of front page. Only I hope it doesn't take as long to grasp.:):):)

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/
Gil

 

Posts: 7533
From: North Carolina, USA
Status: offline

 
RE: contextual selectors - 9/24/2003 19:11:33   
Are you taking a CSS1 class?

Here's what I've got:
Descendent Selector
[CSS1|CSS2] [IE3|N4|O3.5]
Description:
Also known as a 'Contextual Selector' in CSS1. This selector allows an element to be matched based upon its ancestry in the document tree. The names of two elements are listed, separated by white-space. The element on the left is the direct or indirect ancestor of the element to the right, via an arbitrary nesting depth.
Syntax:
[Element1] S+ [Element2] { [Declaration Block] }
Example:
h3 em { font-weight: bold }
[would match
<h3>hello <em>there</em></h3>
and
<h3>hello <b><em>there</em></b></h3>]

_____________________________

Gil Harvey, 1947-2004

(in reply to c1sissy)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: contextual selectors - 9/24/2003 21:03:03   
Hi Gil:
I hve been trying to get an answer to you since you posted this. LOL, not even sure it this will make it in.

I'm not sure if it is a css1 or not. It is through virtual University online.

Anyhow, if I am correctly reading the selector,

it states that all ems within the h3 would be bold?

If I am able to read this correctly, why isn't the brain focusing and working out the style rules??????:) Am I just pushing too hard with it?

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to Gil)
Nancy

 

Posts: 3626
Joined: 11/9/1999
From: Nebraska
Status: offline

 
RE: contextual selectors - 9/25/2003 0:59:11   
I think what you said sounds right. I am not sure my brain is focusing either.

Here's a little snippet of information from a help file for a program I have.

"Contextual selectors are merely strings of two or more simple selectors separated by white space. These selectors can be assigned normal properties and, due to the rules of cascading order, they will take precedence over simple selectors. For example, the contextual selector in

P EM { background: yellow }

is P EM. This rule says that emphasized text within a paragraph should have a yellow background; emphasized text in a heading would be unaffected."

So in the other words, the second selector of the pair (EM) only has a background of yellow when it is in a paragraph, and not if used within an H3 tag.

At least I think that's right. :)

Nancy

_____________________________

Easy Estimates -- is a simple to use tool to quickly build a Web site page enabling visitors to quickly and easily create an estimate of the cost of services that you provide.

(in reply to c1sissy)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: contextual selectors - 9/25/2003 1:03:57   
Hi Nancy,
I think that i might have got it right! And it was in the way that I had explained it. I guess I just needed to sort of write it out to have it make sense, if that makes sense.

I'll upload it tomorrow so that you can see it. I had to go over all the pages as I'm doign embeded along with linked and was messing some things up that I didn't want to change, and had to go and fix them.

So after work tomorrow I'll double check all, load them up, and then rest! lol.

Actually, have more homework to get to, so rest isn't too much of an option, lol!

Thanks again for your response. I tried to solve this on my own. I searched, read and printed tons of material. I still have a long way to go, but I think that I am making a tad bit of progress along the way now!:)

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to Nancy)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> contextual selectors
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts