close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Center Align Nav Text Vertically

Thread began 1/31/2011 11:43 pm by ebonixs | Last modified 2/01/2011 10:52 am by ebonixs | 1455 views | 3 replies |

ebonixs

Center Align Nav Text Vertically

Hi WA

I'm building a site called Ebonikal Beatz (www.ebonikalbeatz.depidesign.com). The problem is that the navigation (located at the very top) has some text (home, links, etc)that I would like to vertically center align. I've tried padding and margin top changes but it alters the entire navigation. Any tips on ways to accomplish this?

Sign in to reply to this post

neilo

Hi ebonixs,

You could change a couple of values in the ul#cssmw > li > a rule in menu.css at line 36:

ul#cssmw > li > a {
background-color: #333333;
background-image: none;
color: #FFFFFF;
display: block;
font-family: "Trebuchet MS",Helvetica,sans-serif;
font-size: 10px;
font-style: normal;
font-weight: bold;
height: 16px;
margin: 0;
padding: 22px 5px;
text-decoration: none;
text-transform: uppercase;
width: 65px;
}
Sign in to reply to this post

ebonixs

@neilo

Thanks! I've been trying the same step for a while but it didn't accur to me to change the actual with of the div tag. Nice! Now I need to apply the same step to make them vertically aligned. The only problem is the text "contact" is shifted more to the right than center (I assume because of the length of the text). Hmmm...I wonder

Thanks again... if you hve any advice, I'm all ears. Again Thanks!

Sign in to reply to this post

ebonixs

Instead of messing around with the left and right padding or margin. I've added text-align:center.

ul#cssmw > li > a {
background-image: none;
color: #FFF;
display: block;
font-family: "Trebuchet MS", Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
font-weight: bold;
height: 16px;
margin: 0 auto;
text-decoration: none;
text-transform: uppercase;
width: 65px;
background-color: #333;
padding: 22px 5px;
text-align: center;

Again thanks for your help

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