← Desenvolvimento

Como faço um background em duas partes?

Lida 3644 vezes

Offline

JOAOTHA 
Membro
Mensagens 312 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

boas
Eu tou a fazer um template para o blogger parecido (não posso fazer igual, devido à licença) com um template premium de wordpress, mas como eu não tenho qualquer formação em html (só sei algumas coisas issenciais), tudo o que faço é por pura matemática, fiquei com uma dúvida que não consigo resolver...

Como é que eu faço para pôr uma imagem de fundo (repetindo-a) só até aos primeiros 300px (por exemplo) e depois, até ao fim, repetir outra diferente?

 :obrigado: pela ajuda
Offline

CasaTuga 
Membro
Mensagens 397 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Avatar Tenth year Anniversary Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3

dividir em divs ?
Offline

JOAOTHA 
Membro
Mensagens 312 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Não sei...
O que eu quero é colocar dois fundos diferentes no mesmo site, ou seja, pôr um background (com uma imagem) só até acabar o header, e do header para baixo, pôr outro background com uma imagem repetida...
Entendes?
Offline

davids 
Membro
Mensagens 217 Gostos 0
Feedback +2

Troféus totais: 24
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 4 Level 3 Level 2 Level 1 100 Posts

Offline

JOAOTHA 
Membro
Mensagens 312 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Não é bem isso, mas anda lá perto...  O que eu queria era simplesmente dois backgrounds diferentes onde pudesse dizer exactamente quando acabava um, e começava o outro....
Offline

davids 
Membro
Mensagens 217 Gostos 0
Feedback +2

Troféus totais: 24
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 4 Level 3 Level 2 Level 1 100 Posts

pois.... sem ser em css dizia-te para fazer em html frames!
Offline

mix_93 
Membro
Mensagens 1630 Gostos 0
Troféus totais: 29
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Mete aqui um exemplo....
Offline

Nuno 
Administrador
Mensagens 7780 Gostos 216
Feedback +2

Troféus totais: 42
Trófeus: (Ver todos)
100 Poll Votes Level 7 Search Mobile User Level 6 Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes

vê o css do background do +tráfego, ficas logo com um ideia!
Offline

JOAOTHA 
Membro
Mensagens 312 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Mas aqui no +trafego só estão a usar uma imagem de fundo... :-k