Re: [WSG] Semantically creating 'pipes' for footer links

2005-01-12 Thread Richard Czeiger
Ah yes - now I remember  :o)

Richard

- Original Message -
From: "Neerav" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, October 05, 2004 2:36 PM
Subject: Re: [WSG] Semantically creating 'pipes' for footer links


Richard

See how I display the pipes on the horizontal menu at www.bhatt.id.au
using css borders.

the list itself has a border-left, and all list items have a border-right

Neerav Bhatt
http://www.bhatt.id.au
Web Development & IT consultancy
Mobile: +61 (0)403 8000 27

http://www.bhatt.id.au/blog/ - Ramblings Thoughts
http://www.bookcrossing.com/mybookshelf/neerav

Richard Czeiger wrote:
>
> Sure but this only works on, like, two browsers!
> Is there a funckier CSS hack kind of way?
>
> :o)
>
> Richard
>
> - Original Message -
> *From:* Kevin Futter <mailto:[EMAIL PROTECTED]>
> *To:* wsg@webstandardsgroup.org <mailto:wsg@webstandardsgroup.org>
> *Sent:* Tuesday, October 05, 2004 12:02 PM
> *Subject:* Re: [WSG] Semantically creating 'pipes' for footer links
>
> For the line wrapping issue, you could try:
>
> whitespace: nowrap;
>
> On whatever element is giving you trouble.
>
> Cheers,
> Kevin Futter
>
> On 5/10/04 11:28 AM, "Richard Czeiger" <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hi guys,
>
> I'm putting together a semantically correct UL of links for my
> footer.
> I'd like to have them separated by 'pipes' as this is a common
> and easily recognised technique.
> But the pipes themselves are irrelevant (semantically). So
> here's what I've come up with...
>
> ALSO! My one thing is that if the text inside the links is made
> up of two or more words, then they get pushed to separate lines.
> Is there a way to avoid this without specifying a width or
> without putting a 'no broken spaces' between the words?
> Can you suggest anything better?
>
>
> 
> #footer {
>  text-align: center;
> }
> #footer ul li {
>  display: inline; width: 1px;
>  margin: auto 5px; padding-left: 10px; border-left: 1px solid
> #00;
>  line-height: 120%;
> }
> #footer ul li:first-child { border-left: none; }
> /* Not rendered by a few agents, so we'll use the
> 'footerBorderKill' javascript function switches off the first
> child's left border */
> 
>
> 
>   
>  accesskey="1">link
> link
> with multiple words
>  accesskey="3">link
>  accesskey="4">link with NoBrokenSpaces
>  accesskey="5">link
>   
>   
> http://validator.w3.org/check/referer";
> rel="external" title="Check XHTML">xhtml
>  href="http://jigsaw.w3.org/css-validator/check/referer";
> rel="external" title="Check CSS">css
>  href="http://creativecommons.org/licenses/by-nc-sa/2.0/";
> rel="external" title="View license">cc
>   
> 
>
> //<![CDATA[
> // Kills the Left Border on the Footer Navigation
> function footerBorderKill() {
>  myBody=document.getElementById('footer');
>  myBodyElements=myBody.getElementsByTagName("ul"); // Gets all
> the UL elements that are children of 'footer'
>  for( var i = 0; i < myBodyElements.length; i++ ) {
>   myList=myBodyElements.item(i); // Loops through all the ULs in
> the footer
>   myListElements=myList.getElementsByTagName("li"); // Gets all
> the LI elements that are children of the ULs
>   myLI=myListElements.item(0); // Gets the first item of the
> list of LI elements
>   myLI.style.borderLeft = 'none'; // And sets its border to
nothing
>  }
> }
> window.onload = footerBorderKill;
> file://]]>
>
>
>
**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
**


**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
**



Re: [WSG] Semantically creating 'pipes' for footer links

2004-10-05 Thread Lindsay Evans
On Wed, 6 Oct 2004 06:13:17 +1000, Geoff Deering
<[EMAIL PROTECTED]> wrote:
>  
> I think this is a weakness and failing in the CSS spec.  I feel designers
> should be able to assign any (relevant) ASCII character or Special Character
> set to list elements. 



> They should have added this in the CSS spec. 

They did.
See the :before pseudo element and the content property:
http://www.w3.org/TR/REC-CSS2/generate.html#q11
http://www.w3.org/TR/REC-CSS2/generate.html#q12

Of course, certain browsers don't implement these features at all,
which makes them kinda useless in most cases, but they do exist.

-- 
Lindsay Evans
http://lindsayevans.com/
**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
**



RE: [WSG] Semantically creating 'pipes' for footer links

2004-10-05 Thread Geoff Deering



I 
think this is a weakness and failing in the CSS spec.  I feel designers 
should be able to assign any (relevant) ASCII character or Special Character set 
to list elements.
 
 &rsaquo; and 
» would be 
good to be able to use as well.  Because designers do this anyway, I've 
seen it.  You have to make the tool kit available to give them a chance to 
be semantically correct, otherwise they are forced to add 
semi-garbage.
 
They 
should have added this in the CSS spec.
 

Geoff

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Trusz, 
  AndrewSent: Tuesday, 5 October 2004 10:29 PMTo: 
  '[EMAIL PROTECTED]'Subject: RE: [WSG] Semantically creating 
  'pipes' for footer links
  
   
   
  
  
  
  
  From: i] 
  On Behalf Of Richard 
  CzeigerSubject: [WSG] 
  Semantically creating 'pipes' for footer 
  links
   
  
  Hi guys,
  
   
  
  I'm putting together a semantically correct UL of 
  links for my footer.
  
  I'd like to have them separated by 'pipes' as this is 
  a common and easily recognised technique.
  
  But the pipes themselves are irrelevant 
  (semantically). So here's what I've come up 
  with...
  
  
   
  
   
  Why not save yourself 
  all the trouble and just use the ascii vertical bar "|" for the 
  pipe?
   
  drew  
   


RE: [WSG] Semantically creating 'pipes' for footer links

2004-10-05 Thread Trusz, Andrew








 

 









From: i] On Behalf Of Richard Czeiger
Subject: [WSG] Semantically
creating 'pipes' for footer links



 



Hi guys,





 





I'm putting together a semantically correct UL of links for my footer.





I'd like to have them separated by 'pipes' as this is a common and
easily recognised technique.





But the pipes themselves are irrelevant (semantically). So here's what
I've come up with...







 







 

Why not save yourself all the trouble and
just use the ascii vertical bar "|" for the pipe?

 

drew 










Re: [WSG] Semantically creating 'pipes' for footer links

2004-10-04 Thread Richard Czeiger
Good point - I guess I might settle for Neerav's option and have the pipes
at the beginning and the end

phooey! wish i could've gotten a solution to that one  :o(
that's for eveyone's input though...

Richard


- Original Message -
From: "Nick Gleitzman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 05, 2004 2:15 PM
Subject: Re: [WSG] Semantically creating 'pipes' for footer links


I have to say I'd use an extra class on the first li over that big
chunk o' Javascript any day. Apart from the extra code, what if I have
Javascript disabled?

My 2c...

N
___
Omnivision. Websight.
http://www.omnivision.com.au/
On Tuesday, Oct 5, 2004, at 13:55 Australia/Sydney, Richard Czeiger
wrote:

> Thanks for the feedback guys but the problem persists !  :o)
>
> While Neerav's solution puts pipes before the first and after the last
> - I
> am trying to get rid of these so that it looks like this:
>
> link | link | link | link
>
> and NOT
>
> | link | link | link | link |
>
> see?
>
> Ben's solution requires a separate class attached to the first list
> item.
> Again - this is kind of clunky when you're trying to work with the best
> possible form of an inherited cascade.
> That's why I used the JavaScript to kill the first LI in each UL in the
> "footer" - at least until the pseudo class firstChild is implemented by
> browsers.
>
> Also the Taming Lists article looses it's styling for IE 5 and above
> (same
> with the Practical CSS Layout Tips article).
>
> Anyone else?
>
> Richard  :o)

**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
**



**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
**



RE: [WSG] Semantically creating 'pipes' for footer links

2004-10-04 Thread Bert
Hi Richard

> Ben's solution requires a separate class attached to the 
> first list item. Again - this is kind of clunky when you're 
> trying to work with the best possible form of an inherited 
> cascade. That's why I used the JavaScript to kill the first 
> LI in each UL in the "footer" - at least until the pseudo 
> class firstChild is implemented by browsers.

To me, adding something like: class="FirstItem" to a couple of elements is
much less clunky than adding a dozen or so lines of JavaScript that may or
may not work, depending on browser settings.  I'd only use JavaScript as a
very last resort

Regards
--
Bert Doorn, Better Web Design
www.bwdzine.com
Fast-loading, user-friendly websites

**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
**



Re: [WSG] Semantically creating 'pipes' for footer links

2004-10-04 Thread Nick Gleitzman
I have to say I'd use an extra class on the first li over that big 
chunk o' Javascript any day. Apart from the extra code, what if I have 
Javascript disabled?

My 2c...
N
___
Omnivision. Websight.
http://www.omnivision.com.au/
On Tuesday, Oct 5, 2004, at 13:55 Australia/Sydney, Richard Czeiger 
wrote:

Thanks for the feedback guys but the problem persists !  :o)
While Neerav's solution puts pipes before the first and after the last 
- I
am trying to get rid of these so that it looks like this:

link | link | link | link
and NOT
| link | link | link | link |
see?
Ben's solution requires a separate class attached to the first list 
item.
Again - this is kind of clunky when you're trying to work with the best
possible form of an inherited cascade.
That's why I used the JavaScript to kill the first LI in each UL in the
"footer" - at least until the pseudo class firstChild is implemented by
browsers.

Also the Taming Lists article looses it's styling for IE 5 and above 
(same
with the Practical CSS Layout Tips article).

Anyone else?
Richard  :o)
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**


Re: [WSG] Semantically creating 'pipes' for footer links

2004-10-04 Thread Richard Czeiger
Thanks for the feedback guys but the problem persists !  :o)

While Neerav's solution puts pipes before the first and after the last - I
am trying to get rid of these so that it looks like this:

link | link | link | link

and NOT

| link | link | link | link |

see?

Ben's solution requires a separate class attached to the first list item.
Again - this is kind of clunky when you're trying to work with the best
possible form of an inherited cascade.
That's why I used the JavaScript to kill the first LI in each UL in the
"footer" - at least until the pseudo class firstChild is implemented by
browsers.

Also the Taming Lists article looses it's styling for IE 5 and above (same
with the Practical CSS Layout Tips article).

Anyone else?

Richard  :o)


- Original Message -
From: "Neerav" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 05, 2004 1:36 PM
Subject: Re: [WSG] Semantically creating 'pipes' for footer links


Richard

See how I display the pipes on the horizontal menu at www.bhatt.id.au
using css borders.

the list itself has a border-left, and all list items have a border-right

Neerav Bhatt
http://www.bhatt.id.au
Web Development & IT consultancy
Mobile: +61 (0)403 8000 27

http://www.bhatt.id.au/blog/ - Ramblings Thoughts
http://www.bookcrossing.com/mybookshelf/neerav

Richard Czeiger wrote:
>
> Sure but this only works on, like, two browsers!
> Is there a funckier CSS hack kind of way?
>
> :o)
>
> Richard
>
> - Original Message -
> *From:* Kevin Futter <mailto:[EMAIL PROTECTED]>
> *To:* [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>     *Sent:* Tuesday, October 05, 2004 12:02 PM
> *Subject:* Re: [WSG] Semantically creating 'pipes' for footer links
>
> For the line wrapping issue, you could try:
>
> whitespace: nowrap;
>
> On whatever element is giving you trouble.
>
> Cheers,
> Kevin Futter
>
> On 5/10/04 11:28 AM, "Richard Czeiger" <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hi guys,
>
> I'm putting together a semantically correct UL of links for my
> footer.
> I'd like to have them separated by 'pipes' as this is a common
> and easily recognised technique.
> But the pipes themselves are irrelevant (semantically). So
> here's what I've come up with...
>
> ALSO! My one thing is that if the text inside the links is made
> up of two or more words, then they get pushed to separate lines.
> Is there a way to avoid this without specifying a width or
> without putting a 'no broken spaces' between the words?
> Can you suggest anything better?
>
>
> 
> #footer {
>  text-align: center;
> }
> #footer ul li {
>  display: inline; width: 1px;
>  margin: auto 5px; padding-left: 10px; border-left: 1px solid
> #00;
>  line-height: 120%;
> }
> #footer ul li:first-child { border-left: none; }
> /* Not rendered by a few agents, so we'll use the
> 'footerBorderKill' javascript function switches off the first
> child's left border */
> 
>
> 
>   
>  accesskey="1">link
> link
> with multiple words
>  accesskey="3">link
>  accesskey="4">link with NoBrokenSpaces
>  accesskey="5">link
>   
>   
> http://validator.w3.org/check/referer";
> rel="external" title="Check XHTML">xhtml
>  href="http://jigsaw.w3.org/css-validator/check/referer";
> rel="external" title="Check CSS">css
>  href="http://creativecommons.org/licenses/by-nc-sa/2.0/";
> rel="external" title="View license">cc
>   
> 
>
> //<![CDATA[
> // Kills the Left Border on the Footer Navigation
> function footerBorderKill() {
>  myBody=document.getElementById('footer');
>  myBodyElements=myBody.getElementsByTagName("ul"); // Gets all
> the UL elements that are children of 'footer'
>  for( var i = 0; i < myBodyElements.length; i++ ) {
>   myList=myBodyElements.item(i); // Loops through all the ULs in
> the footer
>   

Re: [WSG] Semantically creating 'pipes' for footer links

2004-10-04 Thread Neerav
Richard
See how I display the pipes on the horizontal menu at www.bhatt.id.au 
using css borders.

the list itself has a border-left, and all list items have a border-right
Neerav Bhatt
http://www.bhatt.id.au
Web Development & IT consultancy
Mobile: +61 (0)403 8000 27
http://www.bhatt.id.au/blog/ - Ramblings Thoughts
http://www.bookcrossing.com/mybookshelf/neerav
Richard Czeiger wrote:
Sure but this only works on, like, two browsers!
Is there a funckier CSS hack kind of way?
 
:o)

Richard
- Original Message -
*From:* Kevin Futter <mailto:[EMAIL PROTECTED]>
*To:* [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
*Sent:* Tuesday, October 05, 2004 12:02 PM
    *Subject:* Re: [WSG] Semantically creating 'pipes' for footer links
For the line wrapping issue, you could try:
whitespace: nowrap;
On whatever element is giving you trouble.
Cheers,
Kevin Futter
On 5/10/04 11:28 AM, "Richard Czeiger" <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi guys,
 
I'm putting together a semantically correct UL of links for my
footer.
I'd like to have them separated by 'pipes' as this is a common
and easily recognised technique.
But the pipes themselves are irrelevant (semantically). So
here's what I've come up with...
 
ALSO! My one thing is that if the text inside the links is made
up of two or more words, then they get pushed to separate lines.
Is there a way to avoid this without specifying a width or
without putting a 'no broken spaces' between the words?
Can you suggest anything better?
 
 
<br>
#footer {<br>
 text-align: center;<br>
}<br>
#footer ul li {<br>
 display: inline; width: 1px;<br>
 margin: auto 5px; padding-left: 10px; border-left: 1px solid<br>
#00;<br>
 line-height: 120%;<br>
}<br>
#footer ul li:first-child { border-left: none; }<br>
/* Not rendered by a few agents, so we'll use the<br>
'footerBorderKill' javascript function switches off the first<br>
child's left border */<br>

 

  

accesskey="1">link
link
with multiple words

accesskey="3">link

accesskey="4">link with NoBrokenSpaces

accesskey="5">link
  
  
http://validator.w3.org/check/referer";
rel="external" title="Check XHTML">xhtml

href="http://jigsaw.w3.org/css-validator/check/referer";
rel="external" title="Check CSS">css

href="http://creativecommons.org/licenses/by-nc-sa/2.0/";
rel="external" title="View license">cc
  

 
//<![CDATA[<br>
// Kills the Left Border on the Footer Navigation<br>
function footerBorderKill() {<br>
 myBody=document.getElementById('footer');<br>
 myBodyElements=myBody.getElementsByTagName("ul"); // Gets all<br>
the UL elements that are children of 'footer'<br>
 for( var i = 0; i < myBodyElements.length; i++ ) {<br>
  myList=myBodyElements.item(i); // Loops through all the ULs in<br>
the footer<br>
  myListElements=myList.getElementsByTagName("li"); // Gets all<br>
the LI elements that are children of the ULs<br>
  myLI=myListElements.item(0); // Gets the first item of the<br>
list of LI elements<br>
  myLI.style.borderLeft = 'none'; // And sets its border to nothing<br>
 }<br>
}<br>
window.onload = footerBorderKill;<br>
//]]>
 


**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**


Re: [WSG] Semantically creating 'pipes' for footer links

2004-10-04 Thread Ben Hamilton
The method your using looks similar to the one described on A List Apart 
www.a*list**apart*.com/articles/taming*list*s/ ?? or  it could have come 
from http://glazkov.com/blog/articles/CssPipedList.aspx

I have an example at http://hamilton.id.au/temp/pipedlist.html using 
multiple words per item.

Ben Hamilton.
Richard Czeiger wrote:
Sure but this only works on, like, two browsers!
Is there a funckier CSS hack kind of way?
 
:o)

Richard
- Original Message -
*From:* Kevin Futter <mailto:[EMAIL PROTECTED]>
*To:* [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
*Sent:* Tuesday, October 05, 2004 12:02 PM
    *Subject:* Re: [WSG] Semantically creating 'pipes' for footer links
For the line wrapping issue, you could try:
whitespace: nowrap;
On whatever element is giving you trouble.
Cheers,
Kevin Futter
On 5/10/04 11:28 AM, "Richard Czeiger" <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi guys,
 
I'm putting together a semantically correct UL of links for my
footer.
I'd like to have them separated by 'pipes' as this is a common
and easily recognised technique.
But the pipes themselves are irrelevant (semantically). So
here's what I've come up with...
 
ALSO! My one thing is that if the text inside the links is
made up of two or more words, then they get pushed to separate
lines. Is there a way to avoid this without specifying a width
or without putting a 'no broken spaces' between the words?
Can you suggest anything better?
 
 
<br>
#footer {<br>
 text-align: center;<br>
}<br>
#footer ul li {<br>
 display: inline; width: 1px;<br>
 margin: auto 5px; padding-left: 10px; border-left: 1px solid<br>
#00;<br>
 line-height: 120%;<br>
}<br>
#footer ul li:first-child { border-left: none; }<br>
/* Not rendered by a few agents, so we'll use the<br>
'footerBorderKill' javascript function switches off the first<br>
child's left border */<br>

 

  

accesskey="1">link
link
with multiple words

accesskey="3">link

accesskey="4">link with NoBrokenSpaces

accesskey="5">link
  
  
http://validator.w3.org/check/referer";
rel="external" title="Check XHTML">xhtml

href="http://jigsaw.w3.org/css-validator/check/referer";
rel="external" title="Check CSS">css

href="http://creativecommons.org/licenses/by-nc-sa/2.0/";
rel="external" title="View license">cc
  

 
//<![CDATA[<br>
// Kills the Left Border on the Footer Navigation<br>
function footerBorderKill() {<br>
 myBody=document.getElementById('footer');<br>
 myBodyElements=myBody.getElementsByTagName("ul"); // Gets all<br>
the UL elements that are children of 'footer'<br>
 for( var i = 0; i < myBodyElements.length; i++ ) {<br>
  myList=myBodyElements.item(i); // Loops through all the ULs<br>
in the footer<br>
  myListElements=myList.getElementsByTagName("li"); // Gets<br>
all the LI elements that are children of the ULs<br>
  myLI=myListElements.item(0); // Gets the first item of the<br>
list of LI elements<br>
  myLI.style.borderLeft = 'none'; // And sets its border to<br>
nothing<br>
 }<br>
}<br>
window.onload = footerBorderKill;<br>
//]]>
 



--
Ben Hamilton
0410 460 333
[EMAIL PROTECTED]
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**


Re: [WSG] Semantically creating 'pipes' for footer links

2004-10-04 Thread Richard Czeiger
Title: Re: [WSG] Semantically creating 'pipes' for footer links



Sure but this only works on, like, two browsers!
Is there a funckier CSS hack kind of way?
 
:o)
Richard

  - Original Message - 
  From: 
  Kevin Futter 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, October 05, 2004 12:02 
  PM
  Subject: Re: [WSG] Semantically creating 
  'pipes' for footer links
  For the line wrapping issue, you could 
  try:whitespace: nowrap;On whatever element is giving you 
  trouble.Cheers,Kevin FutterOn 5/10/04 11:28 AM, "Richard 
  Czeiger" <[EMAIL PROTECTED]> 
  wrote:
  Hi guys, I'm putting together a 
semantically correct UL of links for my footer.I'd like to have them 
separated by 'pipes' as this is a common and easily recognised 
technique.But the pipes themselves are irrelevant (semantically). So 
here's what I've come up with... ALSO! My one thing is that if 
the text inside the links is made up of two or more words, then they get 
pushed to separate lines. Is there a way to avoid this without specifying a 
width or without putting a 'no broken spaces' between the words?Can you 
suggest anything better?  <BR>#footer {<BR> text-align: center; 
<BR>}<BR>#footer ul li {<BR> display: inline; width: 1px; 
<BR> margin: auto 5px; padding-left: 10px; border-left: 1px solid 
#00; <BR> line-height: 120%; <BR>}<BR>#footer ul li:first-child { 
border-left: none; }<BR>/* Not rendered by a few agents, so we'll use the 
'footerBorderKill' _javascript_ function switches off the first child's left 
border */<BR>   linklink with multiple 
wordslinklink with NoBrokenSpaceslinkhttp://validator.w3.org/check/referer" 
rel="external" title="Check 
XHTML">xhtmlhttp://jigsaw.w3.org/css-validator/check/referer" 
rel="external" title="Check 
CSS">csshttp://creativecommons.org/licenses/by-nc-sa/2.0/" 
rel="external" title="View 
license">cc   //<![CDATA[<BR>// Kills the Left Border on the 
Footer Navigation<BR>function footerBorderKill() 
{<BR> myBody=document.getElementById('footer');<BR> myBodyElements=myBody.getElementsByTagName("ul"); 
// Gets all the UL elements that are children of 'footer'<BR> for( var 
i = 0; i < myBodyElements.length; i++ ) 
{<BR>  myList=myBodyElements.item(i); // Loops through all the ULs 
in the 
footer<BR>  myListElements=myList.getElementsByTagName("li"); // 
Gets all the LI elements that are children of the 
ULs<BR>  myLI=myListElements.item(0); // Gets the first item of 
the list of LI elements<BR>  myLI.style.borderLeft = 'none'; // 
And sets its border to nothing<BR> }<BR>}<BR>window.>//]]> 


Re: [WSG] Semantically creating 'pipes' for footer links

2004-10-04 Thread Kevin Futter
Title: Re: [WSG] Semantically creating 'pipes' for footer links



For the line wrapping issue, you could try:

whitespace: nowrap;

On whatever element is giving you trouble.

Cheers,
Kevin Futter

On 5/10/04 11:28 AM, "Richard Czeiger" <[EMAIL PROTECTED]> wrote:

Hi guys,
 
I'm putting together a semantically correct UL of links for my footer.
I'd like to have them separated by 'pipes' as this is a common and easily recognised technique.
But the pipes themselves are irrelevant (semantically). So here's what I've come up with...
 
ALSO! My one thing is that if the text inside the links is made up of two or more words, then they get pushed to separate lines. Is there a way to avoid this without specifying a width or without putting a 'no broken spaces' between the words?
Can you suggest anything better?
 
 
<BR>
#footer {<BR>
 text-align: center; <BR>
}<BR>
#footer ul li {<BR>
 display: inline; width: 1px; <BR>
 margin: auto 5px; padding-left: 10px; border-left: 1px solid #00; <BR>
 line-height: 120%; <BR>
}<BR>
#footer ul li:first-child { border-left: none; }<BR>
/* Not rendered by a few agents, so we'll use the 'footerBorderKill' _javascript_ function switches off the first child's left border */<BR>

 

  
link
link with multiple words
link
link with NoBrokenSpaces
link
  
  
http://validator.w3.org/check/referer" rel="external" title="Check XHTML">xhtml
http://jigsaw.w3.org/css-validator/check/referer" rel="external" title="Check CSS">css
http://creativecommons.org/licenses/by-nc-sa/2.0/" rel="external" title="View license">cc
  

 
//<![CDATA[<BR>
// Kills the Left Border on the Footer Navigation<BR>
function footerBorderKill() {<BR>
 myBody=document.getElementById('footer');<BR>
 myBodyElements=myBody.getElementsByTagName("ul"); // Gets all the UL elements that are children of 'footer'<BR>
 for( var i = 0; i < myBodyElements.length; i++ ) {<BR>
  myList=myBodyElements.item(i); // Loops through all the ULs in the footer<BR>
  myListElements=myList.getElementsByTagName("li"); // Gets all the LI elements that are children of the ULs<BR>
  myLI=myListElements.item(0); // Gets the first item of the list of LI elements<BR>
  myLI.style.borderLeft = 'none'; // And sets its border to nothing<BR>
 }<BR>
}<BR>
window.>
//]]>