RE: [EWD] CSS Styles - Select All Instances Error

7 views
Skip to first unread message
Message has been deleted

Ian Haynes

unread,
Apr 27, 2008, 9:37:20 AM4/27/08
to expression-...@googlegroups.com
<snip>
1. In the CSS, create an element, "a", and an ID, "#nav a"
2. In the markup, create 1 instance of element "a" and 2 instances of
ID "#nav a".
</snip>

You can only have one instance of #nav on the page, so this may be confusing
the issue.


Ian Haynes
http://www.ew-resource.co.uk

Cheryl D Wise

unread,
Apr 27, 2008, 1:05:13 PM4/27/08
to expression-...@googlegroups.com
While you can only have one instance of an id you can have multiple
descendent selectors. His #nav a should select all anchor elements contained

in an element (div, table or list) .

<ul id="nav">
<li><a href="a.html">A</a></li>
<li><a href="b.html">B</a></li>
<li><a href="c.html">C</a></li>
<li><a href="d.html">D</a></li>
</ul>

Is a very common method of creating menus. In the above instance if you were

to select #nav a you should get 4 items selected. If Expression is
reporting 5 then that would be a bug since it should not be selecting the
ul.

For some reason I didn't get the original of this message, guess I better
check my spam filters. Sigh.

Cheryl D Wise
MS MVP Expression - Author: Foundations of Microsoft Expression Web
http://by-expression.com
Adobe Community Expert - Dreamweaver
http://starttoweb.com

Reply all
Reply to author
Forward
0 new messages