Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Does anyone know

Featured Replies

this sign |

 

what is it called and how do you change the colour of it in css has a class ??

It's a vertical bar - usually the keyboard button just to the right of the left Shift key. The bar is plain text so it inherits whatever text colour you've assigned for it's parent container.

is it possible to wrap the vertical bars (if there is more than one) in span tags and then give the span tags a class and then set the color:#ff0000; like that?

is it possible to wrap the vertical bars (if there is more than one) in span tags and then give the span tags a class and then set the color:#ff0000; like that?

 

Yes of course:

 

<p id="footer_a">About us <span class="vertical">|</span> Resources<span class="vertical">|</span> Links <span class="vertical">|</span> RSS</p>

 

Should output something like this with a working stylesheet:

 

About us | Resources | Links | RSS

 

Dave,

Just a couple of things if you are indeed using it to separate a list of links:

 

Don't! It's not semantic! Better to put the links in an unordered list and use CSS to make it inline and put a border on the right-hand edge.

But if you really want to then if you've got:

 

<p><a>link</a>|<a>link</a>|<a>link</a></p>

 

Just set the paragraph font colour to the colour you want the bars to be and set the link font colour to a different colour if needs be - no need to put extra spans in.

 

:D

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.