Centering Drop Down Menu
+2
Sir Chivas™
PorkyPine V10
6 posters
Page 1 of 1
Centering Drop Down Menu
How do i center this?
http://awesomescreenshot.com/0598mye64
or at least make it look like this:
http://awesomescreenshot.com/0d98mzje6
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
Re: Centering Drop Down Menu
Hi,
Did you placed the code in the Homepage message?
If so, try wrapping the whole code with the following;
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>
Re: Centering Drop Down Menu
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.
Giving auto margin on the left and right side means it is shared out equally, AKA centered.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Centering Drop Down Menu
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
what should i add to the CSS?
Re: Centering Drop Down Menu
add to CSS:
- Code:
div.menu {text-align: center}
.menu li {float:none;display: inline-block}
Re: Centering Drop Down Menu
c3vietk wrote:add to CSS:
- Code:
div.menu {text-align: center}
.menu li {float:none;display: inline-block}
thanks
Re: Centering Drop Down Menu
Topic Solved & Locked |
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Main Menu isn't centering.
» ipb drop down menu
» drop down menu with jQuery and CSS
» Drop down menu problem
» Color Changes with a Drop-Down Menu
» ipb drop down menu
» drop down menu with jQuery and CSS
» Drop down menu problem
» Color Changes with a Drop-Down Menu
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum