|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
SpawnBR Smarty n00b
Joined: 28 Apr 2010 Posts: 1
|
Posted: Wed Apr 28, 2010 11:16 am Post subject: Problema com Css |
|
|
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 |
|
psantos10 Smarty n00b
Joined: 03 May 2010 Posts: 1
|
Posted: Mon May 03, 2010 7:30 am Post subject: |
|
|
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 |
|
migas Smarty Regular
Joined: 07 Apr 2004 Posts: 73 Location: Porto, Portugal
|
Posted: Mon May 10, 2010 11:11 am Post subject: |
|
|
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 |
|
|
|
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
|