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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Menu will not align center

Thread began 12/13/2009 9:37 pm by snowbunnie1229392302 | Last modified 10/14/2010 7:49 am by charles.ying01407254 | 2081 views | 2 replies |

snowbunnie1229392302

Menu will not align center

I can not get my menu to align in the center of the page no matter where I try to tell it to align. I read some things on chaning the float: left to display: inline. That didn't help either. Any ideas???

index3.html

Sign in to reply to this post

neilo

Two ways you could try:

1. Add a cell before the menu cell to force it to the right (you would need to remove the width or adjust the width of the cell containing the menu). Change lines 44 and 45 of your code to read:

html:
<tr align="center"><td width="105"></td>
<td align="center">



OR

2. Centre the menu in a new div. Add div tags before and after your 'include (require_once):

html:
<div id="menu">
<?php require_once("CSSMenuWriter/cssmw12/menu.php"); ?>
</div>


then add the following css style to the head of your document (in code view), say after line 12:

html:
<style type="text/css" media="all">
#menu {
width: 825px;
margin:auto;
}
</style>
Sign in to reply to this post

charles.ying01407254

hi

<div id="centered_MenuBar">
<ul id="MenuBar">
<li>list element 1</li>
<li>list element 2</li>
<li>list element 3</li>
</ul>
</div>And the CSS rule will be:

#centered_MenuBar {
widht: 600px;
margin-left: auto;
margin-rigt: auto;

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