Jump to content

Recommended Posts

Been at this one for so long that I'm not seeing the wood for the trees. You know what it's like...

 

Anyway, here's the problem... I've got a nested list on my site navigation. The parent list font size is set to 1.2em (12px). I want the sub-list to be 1em (10px). The code, I thought, should look something like this:

Code:

#sitenav ul li ul li{font-size:1em;}

I've tried every combination I can think of and just can't get the font to the size I want! Could someone please put me out of my misery?!?!

 

And yes, I am embarrassed to be asking such an easy question!

 

Link to comment
https://forums.phpfreaks.com/topic/212518-css-is-driving-me-nuts/
Share on other sites

as long as the font-size for "#sitenav ul li" is set before "#sitenav ul li ul li" that css would be correct for a nav set out something like this:

 

<div id="sitenav">
<ul>
	<li>Item 1</li>
	<li>Item 2</li>
	<li>Item 3</li>
	<li>Item 4
		<ul>
			<li>SubMenu Item 1</li>
			<li>SubMenu Item 2</li>
			<li>SubMenu Item 3</li>
		</ul>
	</li>
</ul>
</div>

 

...does this html resemble your code?... if not can you post your html please

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.