Jump to content


Photo

Problema com Bordas

Css Bordas Responsivo

  • Faça o login para participar
10 replies to this topic

#1 Lucas99

Lucas99

    Normal

  • Usuários
  • 84 posts
  • Sexo:Masculino
  • Localidade:Santos

Posted 24/07/2015, 02:53

Fiz um menu responsivo, e estou tendo problemas com as bordas, elas estão escapando para direita quando tem a quebra de linha. Já tentei alterar algumas configurações de CSS mas nenhuma delas teve sucesso.

 

Segue o código e uma imagem do problema:

CSS:
 

*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration:none;
}

body {
    font: 16px san-serif;
}

.menu {
        width: 90%;
        max-width: 980px;
        margin: 20px auto;
        background: orange;
        border-radius: 5px;
        text-align: center;
        display: table;

}        
        .menu ul li { display: inline; }
        
        .menu ul li a{
        color: #fff;
        display: inline-block;
        padding: 10px;
        border-right: 1px solid #fff;
}
/* Tira última dorda do Menu */
        .menu ul li:last-child a{
        border-right: 0;
         /* Tira última dorda do Menu */
}
/* Se Resolução for no máximo ( px ), faça */
@media ( max-width: 768px ) {
        .menu ul li {
        width: 50%;
        float: left;
 }
        .menu ul li a{
        width: 100%;
        border-bottom: 1px solid #fff;
        border-left: 0;

}
         
}

@media ( max-width: 480px ) {
        .menu ul li {
        width: 100%
        }
}
HTML:
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Teste</title>
<!-- Bootstrap -->
<link href="../css/css.css" rel="stylesheet" type="text/css">

</head>
<body style="background:#eee;">
<!-- Inicio Menu -->
<nav class="menu" >
    <ul>
<li><a href="#" title="">Home</a></li>
                <li><a href="#" title="">Quem Somos</a></li>
                <li><a href="#" title="">Política</a></li>
                <li><a href="#" title="">Portifólio</a></li>
                <li><a href="#" title="">Equipe</a></li>
                <li><a href="#" title="">Contato</a></li>
    </ul>

</nav>
</body>
</html>


#2 Danilomaru

Danilomaru

    Ativo

  • Moderadores
  • 300 posts
  • Sexo:Masculino
  • Localidade:brasil

Posted 27/07/2015, 01:45

Isso por causa do padding

adicione box-sizing, neste seletor

 

.menu ul li a {
    color: #FFF;
    border-right: 1px solid #FFF;
    padding: 10px;
    display: inline-block;
    box-sizing: border-box; /*<<<<*/



#3 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 21/09/2017, 16:52

Site Serieux Vente Lioresal online pharmacy Prezzi Goccia Kamagra
Se Vende Cialis Sin Receta
Lisinopril <a href=http://cialtobuy.com>cialis price</a> Nuovo Cialis
Kamagra Vente 200 Mg cialis Zithromax Auxiliary Labels Zithromax Purchase Acheter Du Viagra Aux Pays online pharmacy Buy Valtrex Online
Canadian Viagara generic cialis Achat Kamagra Sur Internet
Canadian Pharmcy Pharmacy Canadian Chewable Viagra
Viagra Hemorroides <a href=http://cialtobuy.com>cialis online</a> Prescription For Amoxicillin

#4 MatthewCem

MatthewCem

    12 Horas

  • Usuários
  • 246 posts
  • Sexo:Feminino
  • Localidade:Montevideo

Posted 22/09/2017, 02:05

pgtakcz

http://www.clinicade...-women-848.html
http://www.dongpengv...hombre-164.html
http://www.littlenat...r-rojas-783.php
http://www.mainlinep...-bling-979.html
http://www.toysessio...1-vs-90-784.php

Stan Smith Adidas Original
Zapatillas Salomon Gore Tex Oferta
Chaussures New Balance Homme
Adidas Nmd High
Zapatos Manolo Blahnik El Corte Ingles
ohhkzkj

http://www.itcolorse...triot-8-969.asp
http://www.convergen...-argentina.html
http://www.galaresta...go-2018-202.php
http://www.probaiedu...e-bleu-gris.php
http://www.tv-gratui...r-et-or-050.htm

Gorras Washington Nationals
Zapatillas Salomon Running Hombre Argentina
Gucci Zapatos Costo
Pandora Disney Princess
Air Max Thea Mujer El Corte Ingles

#5 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 06/10/2017, 04:46

Dog Antibiotic Cephalexin viagra Women Viagra Generic Soft Cialis

#6 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 13/10/2017, 16:12

Viagra Generika Gunstig Bestellen Sildenafil Tablets To Buy Amoxicillin Sudafed viagra online prescription Levitra Fa Male
Forum Ou Acheter Cialis Amoxil Pregnancy Category viagra Cephalexin Through Iv Viagra Generico Principio Ativo
Gel Kamagra Fast Best Place To Get Viagra Online Buy Lexapro Online Us Pharmacy brand cialis and levitra Cost Of Cephalexin Cialis 10 Mg Tadalafil Filmtabletten Amoxicillin 400 Mg Adult Dose

#7 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 24/10/2017, 22:52

Priligy Preis cheap cialis Baclofene Automedication

#8 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 31/10/2017, 04:59

Buy Cephalexin On Line Propecia Kvinner cialis online Zithromax Effects On Birth Control Keflex And Being Pregnant Drug Similar To Dapoxetine

#9 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 22/11/2017, 08:58

T Is There A Generic Equivqlent For Zetia viagra Cialis En Las Farmacias Toradol Osu Levitra Sur Internet
List Of Reputable Online Pharmacies Prix De Levitra En Pharmacie Viagra 50mg Kaufen viagra Cialis Generique Serieux Buy Now Macrobid Next Day Without Rx Levitra Discount

#10 JeffMalm

JeffMalm

    Super Veterano

  • Usuários
  • 12254 posts
  • Sexo:Feminino
  • Localidade:Mount Carey

Posted 11/02/2023, 23:47

Ryan ereHcMCjCCV 6 18 2022 buy cialis pills Gersztenkor D, Lee AG 2014 Palinopsia revamped A systematic review of the literature
generic propecia for sale Critical Care Management of Traumatic Brain Injury
Brooke, USA 2022 06 27 22 26 56 buying ivermectin
nolvadex gynecomastia With typical IVF, if one cycle doesn t work, you usually will have some embryos left over to freeze

#11 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 13/02/2023, 18:57

The new Cancer Center Director was Dr finasterid The urinary sediment, electrolyte, and osmolality findings that can help to separate ATN from prerenal azotemia are listed in the following table
venta libre de kamagra In response to the secretions, the anterior pituitary secretes gonadotropins, follicle- stimulating hormone FSH, and luteinizing hormone LH
tamoxifen wiki Shah PR, Adlakha A
C UMAP of all hypothalamus POA derived cell types showing individual cells dots from the four treatment groups cheapest finasteride on the web





Veja alguns posts relacionados com: Css, Bordas, Responsivo

1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq