The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Centering Drop Down Menu

View previous topic View next topic Go down

Solved Centering Drop Down Menu

Post by PorkyPine V10 on Thu 21 Jun 2012, 9:16 pm

How do i center this?

http://awesomescreenshot.com/0598mye64

or at least make it look like this:

http://awesomescreenshot.com/0d98mzje6


Last edited by PorkyPine V10 on Sun 24 Jun 2012, 3:15 am; edited 1 time in total
avatar
PorkyPine V10
Forumember

Male Posts : 387
Reputation : 19
Language : English, Spanish, French, Japanese

http://gfx-creators.forumotion.com/

Back to top Go down

Solved Re: Centering Drop Down Menu

Post by Sir Chivas™ on Thu 21 Jun 2012, 9:34 pm

Hi, Hello

Did you placed the code in the Homepage message?

If so, try wrapping the whole code with the following;
Code:
<div align="center">
The code of the drop down menu
</div>
avatar
Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6801
Reputation : 433
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: Centering Drop Down Menu

Post by PorkyPine V10 on Thu 21 Jun 2012, 9:42 pm

tried it, doesnt work
avatar
PorkyPine V10
Forumember

Male Posts : 387
Reputation : 19
Language : English, Spanish, French, Japanese

http://gfx-creators.forumotion.com/

Back to top Go down

Solved Re: Centering Drop Down Menu

Post by LGforum on Thu 21 Jun 2012, 10:33 pm

Give a margin property of '0 auto' in the css.
Giving auto margin on the left and right side means it is shared out equally, AKA centered.
avatar
LGforum
Hyperactive

Male Posts : 2262
Reputation : 260
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Centering Drop Down Menu

Post by PorkyPine V10 on Fri 22 Jun 2012, 4:18 am

@LGforum wrote:Give a margin property of '0 auto' in the css.
Giving auto margin on the left and right side means it is shared out equally, AKA centered.

ok i dont really understand what you just said Laughing

what should i add to the CSS?
avatar
PorkyPine V10
Forumember

Male Posts : 387
Reputation : 19
Language : English, Spanish, French, Japanese

http://gfx-creators.forumotion.com/

Back to top Go down

Solved Re: Centering Drop Down Menu

Post by Dark_Code on Fri 22 Jun 2012, 6:47 am

Topic Locked because I helped him out on his website
avatar
Dark_Code
Forumember

Male Posts : 91
Reputation : 4
Language : CSS
Location : Modesto

http://csshelp.ipbhost.com/

Back to top Go down

Solved Re: Centering Drop Down Menu

Post by PorkyPine V10 on Fri 22 Jun 2012, 10:00 pm

actually, i decided to get a new one, and i wanna center it
avatar
PorkyPine V10
Forumember

Male Posts : 387
Reputation : 19
Language : English, Spanish, French, Japanese

http://gfx-creators.forumotion.com/

Back to top Go down

Solved Re: Centering Drop Down Menu

Post by PorkyPine V10 on Sun 24 Jun 2012, 2:44 am

i tried that, but it didnt center it
avatar
PorkyPine V10
Forumember

Male Posts : 387
Reputation : 19
Language : English, Spanish, French, Japanese

http://gfx-creators.forumotion.com/

Back to top Go down

Solved Re: Centering Drop Down Menu

Post by c3vietk on Sun 24 Jun 2012, 3:13 am

add to CSS:
Code:
div.menu {text-align: center}
.menu li {float:none;display: inline-block}
avatar
c3vietk
Forumember

Male Posts : 65
Reputation : 41
Language : Vietnamese, HTML, Javascript, C#, PHP
Location : Vietnam, HCMc

http://diendan.chinhphuc.info/

Back to top Go down

Solved Re: Centering Drop Down Menu

Post by PorkyPine V10 on Sun 24 Jun 2012, 3:14 am

@c3vietk wrote:add to CSS:
Code:
div.menu {text-align: center}
.menu li {float:none;display: inline-block}

thanks Smile
avatar
PorkyPine V10
Forumember

Male Posts : 387
Reputation : 19
Language : English, Spanish, French, Japanese

http://gfx-creators.forumotion.com/

Back to top Go down

Solved Re: Centering Drop Down Menu

Post by SLGray on Sun 24 Jun 2012, 4:49 am

Topic Solved & Locked


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 39198
Reputation : 2628
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum