fil79 Posted December 7, 2009 at 05:43 PM Report Share #299094 Posted December 7, 2009 at 05:43 PM Boas Gostaria de fazer uma coisa em CSS que consite em ter várias imagens de background:~ a)Nos primeiros 10% do monitor seria uma imagem; b)Na parte central, 80% do monitor seria uma outra imagem; a)Nos últimos 10% do monitor seria uma a mesma imagem de a); Como posso fazer isso? Desde já agradeço MCITP-MCTS-MCP Link to comment Share on other sites More sharing options...
yoda Posted December 7, 2009 at 06:37 PM Report Share #299106 Posted December 7, 2009 at 06:37 PM Os ecrãs variam hoje em dia, de 1800 a 800px .. É complicado fazeres isso, a nao ser com imagens gigantes ou javascript (pouco recomendado) before you post, what have you tried? - http://filipematias.info sense, purpose, direction Link to comment Share on other sites More sharing options...
fil79 Posted December 7, 2009 at 06:40 PM Author Report Share #299107 Posted December 7, 2009 at 06:40 PM e com uma tabela? MCITP-MCTS-MCP Link to comment Share on other sites More sharing options...
yoda Posted December 7, 2009 at 06:43 PM Report Share #299109 Posted December 7, 2009 at 06:43 PM continuavas com o problema das dimensões do ecrã, porque uma das células "teria" (penso eu que é isso que pretendes) de ter valor fixo e as outras 2 valor percentual. O que podes fazer é arranjar uma imagem para o fundo que possas repetir, e que quando se repita, "bata" bem com os cantos da seguinte .. Não sei se me fiz entender. before you post, what have you tried? - http://filipematias.info sense, purpose, direction Link to comment Share on other sites More sharing options...
fil79 Posted December 7, 2009 at 06:50 PM Author Report Share #299112 Posted December 7, 2009 at 06:50 PM se usar: <td width="10%" > imagem1 que se repete </td> <td width="80%" > imagem2 que se repete </td> <td width="10%" > imagem1 que se repete </td> não funciona? MCITP-MCTS-MCP Link to comment Share on other sites More sharing options...
yoda Posted December 7, 2009 at 07:07 PM Report Share #299118 Posted December 7, 2009 at 07:07 PM Não tás a perceber. Essas percentagens são sempre percentagens, num ecrã correspondem a 50px, noutro a 200px .. Para conseguires ter isso como queres, terias de arranjar imagens grandes. before you post, what have you tried? - http://filipematias.info sense, purpose, direction Link to comment Share on other sites More sharing options...
fil79 Posted December 7, 2009 at 07:38 PM Author Report Share #299124 Posted December 7, 2009 at 07:38 PM ok, estou a perceber, mas isso não será problema pois é uma imagem muito fina que faz um degerade, para depois fazer repeat-x MCITP-MCTS-MCP Link to comment Share on other sites More sharing options...
yoda Posted December 7, 2009 at 08:04 PM Report Share #299125 Posted December 7, 2009 at 08:04 PM Já podias ter dito isso .. e é a mesma do lado direito e esquerdo? before you post, what have you tried? - http://filipematias.info sense, purpose, direction Link to comment Share on other sites More sharing options...
fil79 Posted December 8, 2009 at 04:36 PM Author Report Share #299285 Posted December 8, 2009 at 04:36 PM tens razão, não me expliquei bem..é a mesma imagem nas bordas e uma outra no centro (container principal) MCITP-MCTS-MCP Link to comment Share on other sites More sharing options...
yoda Posted December 8, 2009 at 11:27 PM Report Share #299405 Posted December 8, 2009 at 11:27 PM Ah bom .. outra coisa : o container central tem largura fixa ou percentual? Se for fixa é mais simples .. before you post, what have you tried? - http://filipematias.info sense, purpose, direction Link to comment Share on other sites More sharing options...
fil79 Posted December 9, 2009 at 12:35 AM Author Report Share #299421 Posted December 9, 2009 at 12:35 AM poderá ser fixa MCITP-MCTS-MCP Link to comment Share on other sites More sharing options...
yoda Posted December 9, 2009 at 03:56 AM Report Share #299427 Posted December 9, 2009 at 03:56 AM Nesse caso podes aplicar o background a repetir nos cantos no body directamente, e meter uma div para o site assim : #site { width: 900px; height: 400px; margin: 0 auto 0 auto; background: url(coise.png) no-repeat top left; } before you post, what have you tried? - http://filipematias.info sense, purpose, direction Link to comment Share on other sites More sharing options...
fil79 Posted December 9, 2009 at 05:34 PM Author Report Share #299505 Posted December 9, 2009 at 05:34 PM ok..muito obrigado MCITP-MCTS-MCP Link to comment Share on other sites More sharing options...
yoda Posted December 10, 2009 at 10:54 AM Report Share #299563 Posted December 10, 2009 at 10:54 AM faltou uma coisa : clear: both; before you post, what have you tried? - http://filipematias.info sense, purpose, direction Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now