← HTML + CSS

[CSS] CSS float?

Lida 3869 vezes

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

Pessoal preciso de colocar estas duas divs lado a lado...

Código: [Seleccione]
#subnavright {

width: 124px;

float: right;

margin: 0px;

padding: 6px 10px 0px 0px;

text-align: right;

}

#subnavright2 {


width: 80px;

float: right;

margin: 0px;

padding: 6px 10px 0px 0px;

text-align: right;

}
Offline

bfms 
Equipa
Mensagens 1769 Gostos 40
Feedback +1

Troféus totais: 35
Trófeus: (Ver todos)
Search Level 6 Apple User Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes Poll Voter Poll Starter

Experimenta meter left - left.
ou então a primeira left e a segunda right.

Expero ter ajudado.
Offline

-RJ- 
Membro
Mensagens 1188 Gostos 0
Troféus totais: 30
Trófeus: (Ver todos)
Apple User Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes Poll Voter Level 5 Level 4 Level 3

Eu testei aqui e com ambas em right e funcionou... lado a lado na direita.
Offline

marsupillami 
Equipa
Mensagens 850 Gostos 4
Feedback +1

Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 500 Posts

Ficarão lado a lado excepto se o elemento que as contém tiver uma largura (width) inferior a 204px (124px + 80px).
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

Ficarão lado a lado excepto se o elemento que as contém tiver uma largura (width) inferior a 204px (124px + 80px).

Pois é capaz de ser isso!

Obrigado pelas respostas