close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

CSS menu writer, blocks other SpryAssets

Thread began 10/07/2009 2:05 pm by romeo370381 | Last modified 10/13/2009 11:40 am by romeo370381 | 6573 views | 10 replies



You could do this a number a ways... probably the easiest way is to just add a border of 1 px set to your desired color (white in this case). Then on your last menu item, you could make it so the menu spans the entire width and therefore the final 1 px white border becomes part of the "gutter" assuming you have a white gutter.

The other way to do this is to calculate the width of your entire menu when your finished adding all the buttons you will add. Let's say for example your background is grey... so you have a div holder that is the same height as your menu will be and this holder spans the entire width and has a background color set to the grey you want. Then nested inside that, you will have another div which will hold your menu. So to get the desired effect, you first get the width of the entire menu system. Pretend that with the borders, your menu width comes to 704 px. To cover up the last border, you would just need to make the "nested" div which holds the menu 703 px and then set the overflow to "hidden".

So in the end, your code looks like this (please note, I am using arbitrary names for example purposes only):

<div id="menuHolder">
<div id="menuFocus">
<?php include_once ("menu"); ?>

Now for the styling:

#menuHolder {
width: 800px;
height: 40px;
background: #333333;

#menuFocus {
width: 703 px;
height: 40px;
overflow: hidden;



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





Ease of use


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...