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 June 21st 2012, 8: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 June 24th 2012, 2:15 am; edited 1 time in total

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 June 21st 2012, 8: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>

Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6783
Reputation : 430
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 June 21st 2012, 8:42 pm

tried it, doesnt work

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 June 21st 2012, 9: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.

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Centering Drop Down Menu

Post by PorkyPine V10 on June 22nd 2012, 3: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?

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 June 22nd 2012, 5:47 am

Topic Locked because I helped him out on his website

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 June 22nd 2012, 9:00 pm

actually, i decided to get a new one, and i wanna center it

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 June 24th 2012, 1:44 am

i tried that, but it didnt center it

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 June 24th 2012, 2:13 am

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

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 June 24th 2012, 2:14 am

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

thanks Smile

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 June 24th 2012, 3:49 am

Topic Solved & Locked


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


SLGray
Administrator
Administrator

Male Posts : 36639
Reputation : 2441
Language : English
Location : United States

http://ztwds.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