Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Problema com Css

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Portuguese
View previous topic :: View next topic  
Author Message
SpawnBR
Smarty n00b


Joined: 28 Apr 2010
Posts: 1

PostPosted: Wed Apr 28, 2010 11:16 am    Post subject: Problema com Css Reply with quote

galera, tentei achar alg parecido no fórum mas não encontrei...
estou com o seguinte problema.

na template do meu site, inseri o seguinte código:

Code:
<link rel="stylesheet" href="styles/style.css" type="text/css" media="screen"/>


e o css está assim

Code:
/* CSS Document */

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

body {
   background: gray;
}

hr {display:none;}
img {border:0;}

body {
   font: 12px Verdana, Geneva, Arial, Helvetica, sans-serif;
   color: #343434;
   background: #121212;
   margin: 0;
   padding: 0;
}
#cabecalho {
   width: 710px;
   margin: 30px auto;
   background-image:url(../images/header.jpg) no-repeat;
        background: #0d0d0d;
   padding: 55px 25px 25px 25px;
   border: 12px solid #2e2e2e;
   position:relative;
}
h1 {
   text-transform: uppercase;
   text-align: center;
   margin: 0;
   padding: 0.3em 0;
   text-indent:-99999px;
}
#navegacao {
   list-style: none;
   padding: 0;
   margin: 10px 0 20px 0;
   background-image:url(/images/nav_bar.jpg) repeat-x;
   background: #2e2e2e;
   display: block;
   overflow: hidden;
   font-size: 0.9em;
   height:46px;
   text-transform:capitalize;
}
#navegacao li {
   display: inline;
}
#navegacao li a {
   display: block;
   float: left;
   padding: 10px 20px;
   color: white;
   text-decoration: none;
}
#navegacao li a:hover {
   background: #1b1b1b url(images/nav_bar_o.jpg) repeat-x;
}
#loading {
   display: none;
   position: absolute;
   right: 10px;
   top: 10px;
   background: url(images/loading.gif);
   width: 43px;
   height: 11px;
   text-indent: -9999em;
}

#conteudo {
}
h2 {
   margin: 0;
   padding: 0.5em 0;
   color:#568945;
   font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;
}
p {
   margin: 0;
   padding: 0.4em 0;
   color:#686868;
   line-height:1.4em;
}
#conteudo img.right {
   float: right;
   margin: 0 0 8px 8px;

}
#footer {
   padding: 15px;
   color: white;
   text-align: center;
   margin: 30px 0 0 0;
   border-top:1px solid #222222;
}


o problema é que o Smarty processa tudo, menos a url das imagens !! vejam que testei de 2 maneiras, mas mesmo assim tudo funciona menos as imagens que não aparecem !

alguém sabe como resolver ?
Back to top
View user's profile Send private message
psantos10
Smarty n00b


Joined: 03 May 2010
Posts: 1

PostPosted: Mon May 03, 2010 7:30 am    Post subject: Reply with quote

e aí irmão, diz lá algo...

como está a estrutura dos seus directórios...?


a principio, como está no seu código, a pasta imagens deve estar localizado dentro da pasta "styles"...


espero ter ajudado...


Cumps
Back to top
View user's profile Send private message
migas
Smarty Regular


Joined: 07 Apr 2004
Posts: 73
Location: Porto, Portugal

PostPosted: Mon May 10, 2010 11:11 am    Post subject: Reply with quote

As imagens estão espalhadas pela raiz ?

Code:

...
#cabecalho {
   width: 710px;
   margin: 30px auto;
   background-image:url([b]../images/header.jpg[/b]) no-repeat;

...
#navegacao {
   list-style: none;
   padding: 0;
   margin: 10px 0 20px 0;
   background-image:url([b]/images/nav_bar.jpg[/b]) repeat-x;
...
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Portuguese All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP