Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-09-24 09:59:14

grahamH
New Member
From: Oxford UK
Registered: 2007-05-08
Posts: 9
Website

Getting navigation links to align

Hi everyone,

I want my navigation bar to be aligned horizontally across my footer, but HOME appears above all the other links.
Any suggestions as to what I’m doing wrong ? The following coding is in the PRESENTATION > STYLE section …

#footnav
{ margin: -10px; 0px; 0px; -10px;
}

#footnav li
{ margin: 0px; position: left; float: none; width: 18px; background-color: #0099ff; height: auto; display: inline
}

#footnav ul li
{ display: inline;
}

#footnav a
{ display: inline; text-decoration: none; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-style: normal; color: #999; text-transform: uppercase;
}

#footnav li ul
{ background-color: #CCC;
}

#footnav li ul li
{ display: inline; width: 800px;
}

#footnav li ul li a
{ display: inline; background-color: #24ff00;
}

Any guidance would be appreciated.

Graham

Offline

#2 2007-09-24 10:05:16

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Getting navigation links to align

er what does the html part look like?

Offline

#3 2007-09-24 10:10:04

grahamH
New Member
From: Oxford UK
Registered: 2007-05-08
Posts: 9
Website

Re: Getting navigation links to align

Hi thêta,

<!— BEGIN ph_closepage —>
</div> <!— close styled padding div from openpage —> <div id=“footer”> <div style=“width: 728px; height: 20px;”>

<div> <ul id=“footnav”> <li><a href=“http://www.photohistories.com/”>Home</a>

<ul>
<li><a href=“http://www.photohistories.com/About”>About</a></li>
<li><a href=“http://www.photohistories.com/Interviews”>Interviews</a></li>
<li><a href=“http://www.photohistories.com/Innovations”>Innovations</a></li>
<li><a href=“http://www.photohistories.com/Photo-Books”>Photo Books</a></li>
<li><a href=“http://www.photohistories.com/Photo-Histories”>Photo Histories</a></li>
<li><a href=“http://www.photohistories.com/events-competitions”>Events/Competitions/Grants</a></li>

</ul>

</li> <!— correct syntax: the full ul-li section lists belongs to the top level li —>

</ul>

Best,

Graham

Offline

#4 2007-09-24 10:51:17

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Getting navigation links to align

ahh i see. looks like your “Home” link is in its own unordered list. any reason you need that?

without knowing the structure around your navigation, you can move the “Home” link:

<li><a href=“http://www.photohistories.com/”>Home</a>

into the unordered list of your other links like so:

<!— BEGIN ph_closepage —>
</div> <!— close styled padding div from openpage —> <div id="footer"> <div style="width: 728px; height: 20px;">
<div>

<ul id="footnav"> 
<li><a href="http://www.photohistories.com/">Home</a></li>
<li><a href="http://www.photohistories.com/About">About</a></li>
<li><a href="http://www.photohistories.com/Interviews">Interviews</a></li>
<li><a href="http://www.photohistories.com/Innovations">Innovations</a></li>
<li><a href="http://www.photohistories.com/Photo-Books">Photo Books</a></li>
<li><a href="http://www.photohistories.com/Photo-Histories">Photo Histories</a></li>
<li><a href="http://www.photohistories.com/events-competitions">Events/Competitions/Grants</a></li>
</ul>

is this part of a theme/template? it looks like Home was purposely set to be in its own list for whatever reason. either way the above should work for you if thats what you want. if not, post again if it breaks the rest of your page.

Offline

#5 2007-09-24 11:01:32

grahamH
New Member
From: Oxford UK
Registered: 2007-05-08
Posts: 9
Website

Re: Getting navigation links to align

Yep. That is logical, but when I have tried it I get two HOMEs, one above the other.

Offline

#6 2007-09-24 11:25:47

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Getting navigation links to align

do you see “Home” twice in your html code? there should only be one now..

Offline

#7 2007-09-26 11:52:25

grahamH
New Member
From: Oxford UK
Registered: 2007-05-08
Posts: 9
Website

Re: Getting navigation links to align

Yes. Sorted. Help appreciated, although somehow I think I may need some more shortly.

Many thanks !

Offline

#8 2007-09-26 12:08:44

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Getting navigation links to align

not sure if i fixed anything but you’re welcome nonetheless!

Offline

Board footer

Powered by FluxBB