Alignment of end cell in nav bar

This is a discussion on "Alignment of end cell in nav bar" within the Web Page Design section. This forum, and the thread "Alignment of end cell in nav bar are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 4th, 2006, 14:48
Junior Member
Join Date: Jan 2006
Age: 42
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Alignment of end cell in nav bar

I am trying to work out how to get the end cell in the nav bar (contact) so that it aligns with the right hand side in both the forum and guestbook.
I have tried but simply cannot get it to work.


http://www.club-amigos.co.uk/mboard/mboard.php
http://www.club-amigos.co.uk/guestbook/gbook.php



css:

Code: Select all
html, body { 
margin:0; 
padding:0; 
} 
body { 
font-family:"lucida sans unicode",verdana,sans-serif; 
font-size:12px; 
color:#333; 
background-color:#e9eef4; 
} 
#wrapper { 
text-align:left; 
border:1px solid #66635c; 
margin:5px auto; 
width:761px; 
background-repeat:repeat-y; 
} 
 
#header { 
background-image:url(http://clubamigos.port5.com/club_amigo_logo.jpg); 
background-repeat:no-repeat; 
height:107px; 
} 
a:link { 
color:blue; 
background-color:inherit; 
text-decoration:none; 
} 
a:visited { 
color:purple; 
text-decoration:none; 
} 
a:hover { 
color:red; 
background-color:inherit; 
} 
a:active { 
color:red; 
background-color:inherit; 
} 
#content { 
color:#000; 
background-color:#fff; 
} 
#content p { 
margin:0 60px 9px 10px; 
font-family:verdana,arial,helvetica,sans-serif; 
} 
 
 
h1 { 
font-family:"lucida sans unicode",verdana,sans-serif; 
font-size:17px; 
text-align:center; 
padding-top:2px; 
padding-bottom:0px; 
margin-top:0; 
} 
 
.italic {font-style:italic} 
 
p{line-height: 1.8em; } 
 
#image_container { 
margin:35px 0 25px 0; 
text-align:center; 
} 
 
#navcontainer { 
margin-top:0; 
} 
#navcontainer ul { 
list-style:none; 
margin:0 0 0 0px; /* adjust left margin to suit */ 
padding:0; 
text-align:center; 
} 
#navcontainer li { 
display:block; 
float:left; 
} 
#navcontainer li a { 
border-right:#84979c 1px solid; 
border-top:#84979c 1px solid; 
border-bottom:#84979c 1px solid; 
display:block; 
background-color:#deffff; 
width:94px; 
color:#444; 
text-decoration:none; 
text-align:center; 
padding-top:2px; 
padding-bottom:2px; 
} 
 
#navcontainer .last { 
 
    BORDER-RIGHT: none; 
 
    WIDTH: 100px; 
 
    overflow: hidden; 
 
} 
#navcontainer ul li a:hover { 
color:#000; 
background-color:#fcc; 
} 
#navcontainer a:active { 
background-color:#ffecd2; 
color:#fff; 
} 
 
#footerhome { 
font-family:"lucida sans unicode",verdana,sans-serif; 
font-size:10px; 
border-top:1px solid #000; 
text-align:center; 
margin:60px 0px 0px 0px; 
padding:6px 0px 5px 0px; 
} 
 
#footer { 
font-family:"lucida sans unicode",verdana,sans-serif; 
font-size:1px; 
     color:#ffffff; 
text-align:center; 
margin:4px 0px 0px 0px; 
padding:2px 0px 0px 0px; 
}
Mod edit: Please use code tags

Last edited by benbacardi; Apr 6th, 2006 at 15:51.
Reply With Quote

  #2 (permalink)  
Old Apr 21st, 2006, 16:41
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Alignment of end cell in nav bar

Your error is in this style definition.

Code: Select all
#navcontainer .last {
    border-right: none;
    width: 95px;
    overflow: hidden;
}
You don't have a nav container with a class of last.

What you do have is a a tag in a list item with an id of last.

Change the first line of the above code to:
Code: Select all
#navcontainer li a#last
Oh and I can't see why you need the overflow attribute.
Reply With Quote
  #3 (permalink)  
Old Apr 24th, 2006, 11:46
Junior Member
Join Date: Jan 2006
Age: 42
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Alignment of end cell in nav bar

Hi,

That works great, many many thanks for your help.
Reply With Quote
Reply

Tags
alignment, end, cell, nav, bar

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
site on Cell onebrightbudgie Web Page Design 0 May 7th, 2008 18:34
Cell background JIM_genius5 Web Page Design 7 Nov 2nd, 2007 10:27
cell won't align to top vertically CSpoon Web Page Design 12 Oct 4th, 2006 00:22
Changing cell id? moojoo JavaScript Forum 2 Aug 30th, 2006 20:16
Table cell not stretching julie Web Page Design 3 May 18th, 2006 01:48


All times are GMT. The time now is 02:50.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43