Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Centering menuCentering menu
Previous
 
Next
New Post
5/11/2009 11:59 AM
 

Hi Experts

I want to get my menu bar centered i tried these keywords  (text-algin , vertical-align , margin , padding) but it didn't work please any help is appreciated.

 
New Post
8/10/2009 4:06 PM
 

Haven't seen a div only menu centered yet and it's very nearly impossible to do.  We need a "float:center" to complete the set since we have "float:left" and "float:right".  It's amazing that "float:center" doesn't exist considering how often it's really needed for objects that don't get affected by "text-align: center" or don't behave as expected when text-align is applied to them.

Anyway, if you place the dnn nave menu inside a table that does not have a set width, then you can center that table using css as long as the element containing that table has a set width that is wider than the table.

Also, in DNN Nav, the vertical-align won't work on menu items, you'll have to use padding as needed to simulate vertically centered menu text.  The text, can, however, be centered using text-align on the menu item.

Anyone catch 60 minutes last night?  Computers controlled by direct connection to the mind... a monkey was able to eat using a robotic arm that simply "read" his mind or interpreted the brains electrical impulses and translated them into movement.  So, it looks like one of these days we WILL finally have computers that can read our fricken minds and do what we want them to do!  I suppose we'll still be bound by cross-browser compatibility issues and css limitations.  Anyway, if you didn't catch that story, look it up.  A guy with advanced ALS is able to communicate via his computer that is actually reading his mind via a cap with ekg-like electrodes that transmit brain wave activity to the computer to spell words and communicate, a mute paraplegic is driving a cart with her thoughts, etc.  Way cooler than anything Star Trek ever had and it's real!


JOHN GIESY
DotNetNuke Hosting Expert

DotNetNuke 7 Hosting $70 /year
DNN4Less.com Team DotNetNuke  

New Post
8/11/2009 3:38 PM
 

Placing menu into centered table does the trick. But css centering does not work with non-IE browsers. Use align tag instead.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Centering menuCentering menu


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out