close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

CSS Nav Inline Help

Thread began 10/09/2013 9:11 am by Daniel | Last modified 11/01/2013 12:14 pm by Daniel | 3348 views | 25 replies |

Daniel

CSS Nav Inline Help

Hi

I'm looking for a little help. I'm starting on a new design and would like some help please. I have created a nav and the css but I want the nav links to be horizontal navigation and not vertical

Could you please tell me what css to change or add to make this happened.

I have tried #nav li as inline but that don't work

Thanks
Daniel

Sign in to reply to this post

Jason ByrnesWebAssist

add a width to the nav style, for example:

#nav {
width: 800px;
}

then on the nav li style, add a width and float property, for example:
#nav li {
float: left;
font-size: 85%;
list-style-type: none;
width: 110px;
}

Sign in to reply to this post

Daniel

Thanks Jason. That's great could you tell me what one to change as I only have a width of 550 and I need to make it fit?

Sign in to reply to this post

Jason ByrnesWebAssist

you have 8 items in your menu. you have set the menu item width to 120px

that means that the nav width you need is 960:
8 * 120 = 960

if you wish to use 550px for the menu width, the menu item width would need to be set to 68px
550 / 8 = 68.75

Sign in to reply to this post

Daniel

I have done that and the TESTIMONIALS link don't fit in a size of 68 and the links after are squished up.

Please have a look again and thanks for the help / info

Sign in to reply to this post

Jason ByrnesWebAssist

you wither need to use a smaller font so it will fit, use a shorter word, or use a larger div.

Sign in to reply to this post

Daniel

I think it would be ok as I have 85% font size but its getting some strange gap after contact.

Please see attached image. Also in my photoshop design the width is the same so it should all fit

Sign in to reply to this post

Jason ByrnesWebAssist

the word testimonials does not fit the 68px box, even with the font size of 85%.

you are trying to fit something that is larger than 68px into a 68 pixel box. you need to make the available spacer for the word bigger.

Sign in to reply to this post

Daniel

ok so I need to use another word then but what is the blank space on the right hand side. The links should be right up to the right hand side and its not?

Sign in to reply to this post

Jason ByrnesWebAssist

it is going up to the right hand side of the box, then going beyond because it is longer than the box you have have available.

the space you see is forced because you have a word that requires 72px width placed in a box that is 68px wide, the next box that contains the contact link is being pushed over to accommodate the testimonials link causing a space to show between the 2 68px boxes.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...