Jump to content

Imagens


mmacedo
 Share

Recommended Posts

Boas.

Tipo :

<div style="width: 400px">
  <img src="img1" width="100px" height="100px" />
  <img src="img2" width="100px" height="100px" />
  <img src="img3" width="100px" height="100px" />
  <img src="img4" width="100px" height="100px" />
  <img src="img5" width="100px" height="100px" />
  <img src="img6" width="100px" height="100px" />
</div>

Assim como o "parent" é de "400px" e cada "img" é de "100px"

400/100=4

ficas com 4 "imgs" na primeira linha horizontal e duas na segunda.

O "margin" e o "padding" podem lixar isto, tens de adicionar o valor de cada um ao "width" do "parent".

Se a vida te voltar as costas aproveita e apalpa-lhe o cu.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.