close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

menu wraps when browser resized

Thread began 1/21/2010 11:01 am by Mike396835 | Last modified 1/21/2010 3:08 pm by neilo | 1592 views | 3 replies |

Mike396835

menu wraps when browser resized

My menu works fine, but when the browser is resized (smaller), the menu wraps to a second or third line. Is there a setting I can use to make the menu ignore browser resizing?

Sign in to reply to this post

neilo

Two ways - you can give your menu a fixed width, or the div that is containing it a fixed width.

To set a width for the menu itself, in your menu.css:

ul#cssmw2 {
cursor: default;
list-style-type: none;
margin: 0 0 0 0;
padding: 0 0 0 0;
}


You can add a width to this, so:

ul#cssmw2 {
cursor: default;
list-style-type: none;
margin: 0 0 0 0;
padding: 0 0 0 0;
width:960px;
}


and adjust the width and see the results in the page. Start with a width deliberately smaller (so the menu 'collapses'), and increase it until your menu fits in. This is easiest in Dreamweaver in 'split' view, with your menu showing in design view, and the menu.css stylesheet showing in the top.

The other way is to add a fixed width to the div containing your menu or include.

Sign in to reply to this post

Jason ByrnesWebAssist

For the menu to handle being re sized, you will need to create the menu using ems instead of pixels. you will need to change the font heights, box widths and heights, padding, margins etc. anything that is sized using pixels, will need to be converted to ems.

Sign in to reply to this post

neilo

Hi Jason,

I'm not sure that would be necessary, in that I'm not sure Mike is asking for his menu to be re-sizable, but merely not to collapse when the browser is re-sized.

I may have got the wrong end of the stick again, but that's my interpretation.

Sign in to reply to this post

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