Solved

How did youtube do this?

Posted on 2014-09-15
3
95 Views
Last Modified: 2014-09-15
https://www.youtube.com/static?gl=CA&template=terms

I am trying to do what youtube did with the (A. B. C.). I used firebug in firfox to examine the code and could only find the paragraph, but not the letter that proceeds it. The A. should be next to the <ol> and <li>. I looked up the hierarchy and could not find the letter A. and B.
Thanks for your help.

aa
0
Comment
Question by:kadin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 10

Assisted Solution

by:jtwcs
jtwcs earned 250 total points
ID: 40324102
They are using a styled order list.

Here's the declaration they are using for the A, B, C...

#page ol.upper-alpha {
    list-style-type: upper-alpha;
}

Open in new window

0
 
LVL 22

Accepted Solution

by:
Kim Walker earned 250 total points
ID: 40324107
You can specify the list-style-type using CSS to set it to upper-alpha. See list-style-type reference.
<ol style="list-style-type: upper-alpha">
<li>line 1</li>
<li>line 2</li>
</ol>

Open in new window

Or you can specify using the type attribute.
<ol type="A">
<li>line 1</li>
<li>line 2</li>
</ol>

Open in new window

0
 

Author Closing Comment

by:kadin
ID: 40324116
I learn something every day. Thanks.
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question