Div Centralizada
#1
Posted 17/07/2005, 23:05
Mas eu sei que a galera vai ajudar
Quero fazer com que uma div de 500 pixels de largura fique centralizada horizontal e verticalmente. A primeira parte eu já consegui, mas a segunda não teve jeito.
Desde já, valeu
#2
Posted 18/07/2005, 09:41
#meio { position:absolute; top:50%; left:50%; width:500px; height:500px; margin-left:-250px; margin-top:-250px; }
Fiz uma div de 500 por 500 ai se vc quiser é só mudar a altura.
[]'s
Conheça meu blog para Aprender Laravel (Framework PHP)
#3
Posted 18/07/2005, 10:00
Sei não, mas acho que tem que mexer na altura do corpo. Como é que eu não sei
<html> <head> <title>CenterDIV</title> <style type="text/css"> .meio { position: absolute; top: 50%; left: 50%; width: 500px; height: 100px; margin-left: -250px; margin-top: -250px; background-color: #ccc } </style> </head> <body> <div class="meio">Rustin</div> </body> </html>
#4
Posted 18/07/2005, 13:06
.meio { position: absolute; top: 50%; left: 50%; width: 500px; height: 100px; margin-left: -250px; margin-top: -50px; background-color: #ccc }
Repare que a margin-top e margin-lef deve ser a metade negativo do tamanho e altura.
Troque a css por essa acima e veja que ficou no meio.
Se vc alterar o tamanho lateral e altura, vc deve mudar tb as margin's
Falowz!!
Conheça meu blog para Aprender Laravel (Framework PHP)
#5
Posted 18/07/2005, 13:43
O problema é que só vai funcionar quando a div tiver altura definida, o que não é o meu caso
Alguém teria uma alternativa?
#6
Posted 18/07/2005, 23:38
O problema e descobrir a quantidade de pixel usado no layout de acordo com o conteúdo...ainda mais se o site for de atualização dinâmica.
Ps .: Mas se o site utilizar 600px por exemplode altura porque ter a div geral centralizada verticalmente?
Conheça meu blog para Aprender Laravel (Framework PHP)
#7
Posted 20/07/2005, 17:36
#8
Posted 23/09/2017, 08:41
Cialis Ou Acheter Forum generic cialis Find Stendra Discount With Free Shipping Without Rx
Vigria Pills Cialis Y Vih
Under Eye <a href=http://cialtobuy.com>cialis</a> Buying Zithromax Online Overnight Shipping
Genaric Viagra Gold cialis Clomid Absence De Glaire Cervicale
Erectile Dysfunction Medications Online Ciprofloxacin 500mg To Buy Propecia Generic Finasteride Hair Growth
Noprescriptiondrugs <a href=http://cialtobuy.com>generic cialis</a> Canada Pharmacy Tadacip 10mg Paypal
#9
Posted 08/10/2017, 19:56
Buy Legit Accutane Cialis Effets Secondaires Forum Viagra Venta Muy Barata generic levitra Legally Levaquin Where To Buy Discount Overnight Shipping Buy Levothyroxine 125 Mcg Zithromax Information
Cialis Et Ulcere buy viagra online Donde Comprar Viagra En Usa Viagra Auswirkungen
Does Amoxicillin Treat Clymidia Cialis Usa Pharmacy Does Generic Viagra Really Exist levitra 40mg bulk prices El Cialis Para Que Sirve
#11
Posted 09/10/2017, 01:11
Buy Viagra Line Cialis En Inde online pharmacy Levitra Acquisto In Contrassegno Acheter Propecia
Canada Branded Viagra Propecia Buy Australia cheap 80 mg vardenafil hcl Viagra Pillen Preis Cialis Et Arythmie
#12
Posted 26/10/2017, 10:41
Mail Order Fluoxetine buy viagra Order Lasix Online Next Day Delivery Acheter Baclofene En France
Colchicine Tablet 0.6 Mg viagra Non Prescription Lithium Cheapest Levitra Professional
Retin A Without Prescription Usa viagra Allergic Itching Due To Amoxicillin Acquista Cialis On Line
#13
Posted 27/10/2017, 07:50
Discounts! beauty product awards
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).
READ MORE
купить аккаунт бателфилд 1
Ugarnie Prikoli iyul 2016 (Video)
Xiaomi Mi Max 32GB ROM 4G Phablet-293.18 $
battlefield 3 premium купить ключ дешево
Vinsic terminator p3 20000mah power bank qc3.0 quick charge 2.4a dual output with type c port for samsung, iphone, xiaomi ( 65.98 $)
Tollcuudda Solar Poverbank Mobile Phone Power Bank Cell Pover Portable Charger Battery External Cellphone Mi Powerbank 10000mah ( 42.98 $)
Peruvian full lace wigs human hair with baby hair full lace human hair wigs for black women body wave lace front human hair wigs ( 131.30 $)
Pu leather bags handbags women famous brands big women crossbody bag trunk tote designer shoulder bag ladies large bolsos mujer ( 38.57 $)
Delivery of sushi and rolls around the clock in Moscow - a Japanese restaurant Niyama
nike flyknit max black
2015 new kerui gsm alarm systems home alarm systems security englishrussianspanish voice gsm alarm security fire detector ( 116.36 $)
All Star Black Canvas High Top Sneaker ( 75.00 $)
магазин богатырь москва
боди скраб +для тела
Bronze Midi Ring wMouth ( 87.50 $)
Discounts! cool product design
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).
READ MORE
Original Smok X Cube II VV VW Box Mod-61.55 $
22 frets one piecetiger flame material canadian maple wood color electric guitar neck wholesale guitar parts accessories ( 138.57 $)
Inglourious Basterds Django Unchained Reservoir Dogs Kill Bill Quentin Tarantino Poster Videos ( 1.70 $)
Trendy bat sleeve jewel neck pure color t-shirt for women ( 9.48 $)
Electric Blue Suede Platform Tiger Espadrilles ( 175.00 $)
Trendy suede and zipper design women's sandals ( 27.87 $)
New hot intelligent wireless business house gsm alarm system wireless emergency button, 4 wireless fire detectors free ship ( 111.64 $)
Charming heat resistant synthetic soft curly mix color capless women's wig ( 12.87 $)
Original Youde 5 Meters 26AWG + 0.5 x 0.1mm 2 Wires Twisted Kanthal Resistance Wire Roll E - cigarette Coils for Atomizers DIY ( $3.05 )
Agent Provocateur - RS"RESâ PEP°R"SRS"R # Rers RSS'-We°RIR°R·RER PI R Rssii
Brazilian body wave 3 bundles brazilian virgin hair body wave wet and wavy virgin brazilian hair weave bundles remy human hair ( 45.00 $)
DHD X - RUN C1 Wall Climbing Car IR Control Climbing Mode-13.45 $
3pcsset Fashion Flower Newborn Baby Girl Clothes Bodysuit Pants Cardigan Wear Suit Infant Costume Kit Girl Children Clothing ( 10.50 $)
Original SJCAM Foldable Selfie Stick-5.47 $
15Pcs Makeup Brush Professional Women Foundation Eyeshadow Eyeliner Lip Brand Make Up Cosmetic Pincel Maquiagem Eye Brushes Set ( 4.30 $)
#14
Posted 06/11/2017, 10:26
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)