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

Vertical Alignment?

Thread began 8/11/2010 12:02 pm by Nathon Jones Web Design | Last modified 8/13/2010 4:02 pm by Jason Byrnes | 617 views | 4 replies |

Nathon Jones Web Design

Vertical Alignment?

Hi. Is it possible to vertical align text so that it's centered vertically as well as horizontally?
I don't see an option for that in the properties.

Here's my problem:
indexNEW.asp

I've tried searching the forum for this, but I don't notice any other posts that deal with the issue. Hope someone can point me in the right direction, thanks.

Regards
Nath.

Sign in to reply to this post

Jason ByrnesWebAssist

verticle alignment with CSS can be tricky since it will not be treated the same in all browsers.

one way to accomplish this for most modern browsers is to add;
display:table-cell;
vertical-align:middle;

to the ul#cssmw > li > a selector in the CSSMenuWriter/cssmw/menu.css file:

ul#cssmw > li > a {
background-color: #819D40;
background-image: none;
color: #FFFFFF;
display: block;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 14px;
font-style: normal;
font-weight: normal;
height: 40px;
margin: 0 0 0 0;
padding: 0px 0px 0px 0px;
text-align: center;
text-decoration: none;
text-transform: uppercase;
width: 87px;
display:table-cell;
vertical-align:middle;
}


You can read about other techniques for vertical centering here:
vertical-centering-with-css/

Sign in to reply to this post

Nathon Jones Web Design

compatibility issues

Thanks Jason.

That sure works for IE8 and Firefox 3.6, but it completely trashes the menu in earlier browsers!

I'll check out that link and see if there isn't a cross-browser compatible view.

Appreciate the help. Thanks.
Nath.

Sign in to reply to this post

Nathon Jones Web Design

working with CSS Menu Writer

Regarding the other methods in the link you've provided:
tutorial...ring-with-css/

...how would I integrate these with CSS Menu Writer? Would I need to directly edit the menu.css file? If so, do you know where?

Appreciate the help. I think the simplest solution would be to reduce the number of buttons on this page (although, typically, the client likes it as it is - but only if they can have middle alignment!). :o)

Regards
Nath.

Sign in to reply to this post

Jason ByrnesWebAssist

yes, you would edit the menu.css file. Most likely the ul#cssmw > li > a element.

depending on which method you choose, you may also need to add div elements around the menu.

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