Solved

How did youtube do this?

Posted on 2014-09-15
3
87 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
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 21

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
CSS question related to hyperlinks 9 38
Search box won't work. 22 25
Element alignment and word wrapping 9 27
HTML CSS 7 19
This article discusses four methods for overlaying images in a container on a web page
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now