← HTML + CSS

problema com hiperligação de imagem

Lida 3864 vezes

Offline

fantas 
Membro
Mensagens 303 Gostos 1
Feedback +1

Troféus totais: 25
Trófeus: (Ver todos)
Level 5 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary Super Combination Combination Topic Starter Poll Voter Level 4 Level 3

Boas pessoal, passa-se o seguinte, coloco a imagem com hiperligação no local que pretendo e a imagem fica um pouco abaixo do local pretendido, mas se a colocar sem hiperligação já fica no local correcto isto acontece pq ?
como posso resolver ?
abraços não tenho a certeza mas acho que é o codigo <a que está a fazer isso

    <a href="Link para o fórum"><img src="Imagem pretendida" /></a>
Offline

rtbfreitas 
Equipa
Mensagens 1497 Gostos 9
Feedback +24

Troféus totais: 30
Trófeus: (Ver todos)
Windows User Apple User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4

Estás aplicar algum reset.css? Os browsers aplicam por defeito estilos (CSS), pode ser disso.

Tens esse código online? Se preferires envia MP que eu vejo.
Offline

fantas 
Membro
Mensagens 303 Gostos 1
Feedback +1

Troféus totais: 25
Trófeus: (Ver todos)
Level 5 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary Super Combination Combination Topic Starter Poll Voter Level 4 Level 3

estou a meter o código acima no wordpress, no header, abc
Offline

mapb_1990 
Membro
Mensagens 109 Gostos 0
Feedback +2

Troféus totais: 26
Trófeus: (Ver todos)
Level 5 Tenth year Anniversary Windows User Super Combination Combination Topic Starter Poll Voter Level 4 Level 3 Level 2

solução + rpd: mexe no attr 'align', da img
mas o ideal é como o Mambley disse.
aplicar um reset.css e poosicionares a img por css
Offline

fantas 
Membro
Mensagens 303 Gostos 1
Feedback +1

Troféus totais: 25
Trófeus: (Ver todos)
Level 5 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary Super Combination Combination Topic Starter Poll Voter Level 4 Level 3

será que me podes dizer como posso fazer isso ?
Offline

rtbfreitas 
Equipa
Mensagens 1497 Gostos 9
Feedback +24

Troféus totais: 30
Trófeus: (Ver todos)
Windows User Apple User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4

Já te disse qual era o teu problema e qual a solução.
Offline

fantas 
Membro
Mensagens 303 Gostos 1
Feedback +1

Troféus totais: 25
Trófeus: (Ver todos)
Level 5 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary Super Combination Combination Topic Starter Poll Voter Level 4 Level 3

quando altero o css padding do header a imagem fica meia alinhada mas desfigura o header todo :X
Offline

rtbfreitas 
Equipa
Mensagens 1497 Gostos 9
Feedback +24

Troféus totais: 30
Trófeus: (Ver todos)
Windows User Apple User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4

Como te disse por MP tens de ajustar o CSS ao que queres, o theme não está feito para levar imagens no menu, se queres fazer isso tens de adaptar o teu CSS.
Offline

Jeckerson 
Membro
Mensagens 34 Gostos 0
Feedback +1

Troféus totais: 22
Trófeus: (Ver todos)
Level 5 Level 4 Nineth year Anniversary Eighth year Anniversary Super Combination Combination Topic Starter Poll Voter Level 3 Level 2

Código: (css) [Seleccione]
a
{
   padding: 0px;
   margin: 0px;
}

img
{
   padding: 0px;
   margin: 0px;
}