Jump to content

How to apply css to nested lists


newcoder1010

Recommended Posts

Hello,

 

I have this list:

<ol>

<li>Get your Facebook page URL.
<ol><li>hhhh </li>
<li>Click </li>
<li>hhh.</li>
<li>Copy </li>
</ol></li>

<li>Get your twitter URL.
<ol><li>hhhh </li>
<li>Click </li>
<li>hhh.</li>
<li>Copy </li>
</ol></li>


</ol>

I am not able to give any class names. How can I apply css to outer li and inner li.

 

I like to say outer li

font-size: 22px

and inner li

font-size: 12px;

Thanks.

 

Link to comment
Share on other sites

I would like to bring the 2nd ol li to little bit left in mobile version. Desktop looks good. 2nd ol li has texts plus images. so in mobile 2nd ol li floated to almost right I used float left but top ol li overlaps. How can I fix it to bring the 2nd ol li to center of the page?

@media only screen and (max-width: 500px) {
ol ol li { font-size:12px; float:left}
    
}

https://drive.google.com/file/d/0B7xIEuVi005yOHJySTYtcmI3NkE/view?usp=sharing

Edited by newcoder1010
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...