Centralizar Menu Horizontal
#1
Posted 15/02/2008, 12:51
Um menu horizontal feito com listas, preciso alinhar os itens do menu no centro da div #menu como se todos os itens fossem um bloco só. Não posso definir width para ul ou li pois os tamanhos dos itens serão variáveis e não tenho como prever de antemão.
[codebox] <div id="menu">
<ul>
<li><a href="#">Tab One</a></li>
<li><a href="#">Tab Two: Longer</a></li>
<li><a href="#">Tab Three: Longest</a></li>
<li><a href="#">Tab Four</a></li>
</ul>
</div>[/codebox]
[codebox]#menu {
float:left;
width:574px;
}
#menu ul {
display:block;
list-style:none;
}
#menu ul li {
display:inline;
border:#000 solid;
border-width:0 1px;
padding:0 0.5em;
}
[/codebox]
#2
Posted 15/02/2008, 15:01
[codebox]
#menu ul li {
display:inline;
border:#000 solid;
border-width:0 1px;
padding:0 0.5em;
text-align:center
}
[/codebox]
Fórum WMO - Conselheira - Na equipe desde 31/01/2006.
Links importantes: Regras de conduta - Busca do fórum
#3
Posted 15/02/2008, 19:11
Cada barra colorida representa um dos <li> e o conjunto das barras é o <ul> o fundo cinza é a div#menu
Preciso que a ul fique posicionada no centro horizontal da div#menu sem que para isso eu precise definir um valor de width, pois o mesmo irá variar de acordo com os tamanhos e quantidade de li que vão haver no menu.
Note que os li também variam em width e esse tamanho não tem como se saber de antemão.
Grato pela ajuda até agora, mas continua no aguardo de uma resposta pra esse problema sem envolver javascript.
Achei um método pra resolver meu problema no cssplay
Ainda não estou totalmente contente porque o método não é lá muito semântico, mas trocando o tag del por span já fica bem melhor.
De qualquer maneira se alguém descobrir uma técnica 100% semântica avise.
#4
Posted 15/02/2008, 19:18
#5
Posted 19/02/2008, 15:46
#6
Posted 12/09/2017, 19:32
Proscar Propecia Finasteride online pharmacy Fedex Shipping Dutasteride Mastercard Accepted
Farmacie On Line Italia Topical Propecia Risks Need To Order Levothyroxine 125 Mcg
Too Much Finasteride Propecia <a href=http://cialtobuy.com>cheap cialis</a> Direct Isotretinoin Next Day Delivery Discount
#7
Posted 13/09/2017, 07:35
Try to keep your mind increased when resting if you would like avoid heavy snoring. Staying in this place permits your muscle mass and air passages to get in just the right level of oxygen, which lowers the opportunity which you will snore. Just prop some bedroom pillows powering the head or make use of a dense pillow.
Snoring loudly is undoubtedly a very hard factor to manage, whether it be you who is afflicted or someone close. Often the best information is all it takes so as to deal with. Browse the report listed below to help you handle any snoring issues you or your loved ones may be having.
#8
Posted 13/09/2017, 08:19
Lexapro Colombia
Make Me Last Longer <a href=http://cialtobuy.com>generic cialis</a> Kamagra Free Sample
Cialis Costo Farmacia cialis online Comprare Viagra A Roma
Costo Cialis In Farmacia
Vente Baclofen En Canada <a href=http://cialtobuy.com>viagra cialis</a> 60mgs Dapoxtine With Levitra
#9
Posted 01/10/2017, 20:51
Misoprostol 2mg Propecia Barato Venta viagra Viagra Come Doping
Tadalafil Generic 4 All Viagra Cerebro Amoxicillin Prescription Drug online pharmacy Dove Acquistare Il Viagra Senza Ricetta Amoxicillin Doses For How Long
#11
Posted 10/10/2017, 18:52
Cialis 20 Bestellen online pharmacy Cytotec Commander Comprar Cialis En Mendoza Kamagra Sublinguale
Viagra Original Bestellen viagra Amoxicillin Drug Facts For Lyme Provera On Line Viagra Super Active Plus
#12
Posted 11/10/2017, 11:50
Levitra 20mg Filmtabletten Preisvergleich Cialis Generico Simi buy viagra online Propecia Espanol Can Amoxicillin Cause A Stuffy Nose Amoxicillin Information
#13
Posted 28/10/2017, 07:58
Doxycycline Hyclate 100mg Order Online Georgia Vermox 100 Mg viagra online Generic Actoplus Met 15 850 Priligy Andorra Precio Acheter Viagra Allemagne
Walmart Pharmacy Drug Prices Order Diflucan Online Canada cialis Can Women Take Kamagra Tamoxifen To Buy Super Kamagra
Propecia Covered By Benefits On Line Amoxicilina In Internet Overnight Shipping Windsor orderviagra levitra Viagra Rezeptfrei Bankeinzug Medsonline
#14
Posted 28/10/2017, 14:12
#15
Posted 13/11/2017, 01:27
Tadalafil Cialis cialis Cialis E Analisi Del Sangue Cialis Pericoloso
Generic Viagra With Overnight Delivery On Line Shipped Ups Elocon Store No Physician Approval Uso Viagra Hombre generic viagra Prednisolone For Sale Online Pet Cephalexin 500mg Cap
Canada Branded Viagra Cat And Amoxicillin 3 Hours Early viagra Viagra Prix Forum Cialis Corazon
Amiloride Offrir Amoxil viagra prescription Priligy In Sri Lanka Cialis Pas Cher Sur Internet Sale generic isotretinoin c.o.d. website
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)