Jump to content

[SOLVED] Simple list navigation


Letterbomb05

Recommended Posts

Hi,

 

I'm having some trouble creating this list navigation that I want. I was just creating the main frame for the menu with ugly background colours etc. I'd rather not use tables, not sure if this will work though.

 

	<ul>
		<li class="MainHeader">Main</li>
		<li>
			<ul>
				<li class="link"><a href="">Link 1</a></li>
				<li class="link"><a href="">Link 2</a></li>
			</ul>
		</li>
	</ul>

	<br />

	<ul>
		<li class="MainHeader">Main Header</li>
		<li>
			<ul>
				<li class="link"><a href="">Link 1</a></li>
				<li class="link"><a href="">Link 2</a></li>
				<li class="link"><a href="">Link 3</a></li>
				<li class="link"><a href="">Link 4</a></li>
			</ul>
		</li>
	</ul>

	<ul>
		<li class="MainHeader">Main Header</li>
		<li>
			<ul>
				<li class="link"><a href="">Link 1</a></li>
				<li class="link"><a href="">Link 2</a></li>
				<li class="link"><a href="">Link 3</a></li>
				<li class="link"><a href="">Link 4</a></li>
			</ul>
		</li>
	</ul>

 

The problem is clear when seen in the Demo (Full CSS is found there). I'm working in XHTML Strict. I need to get the lists appearing below each other so I have the Header, the links below, then the 2nd header with the other links below that, no gaps. Feel free to ask questions if I havn't been clear enough, thanks in advance for any help!

 

~Letterbomb05.

Link to comment
Share on other sites

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.