Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Complication with margins
Message
De
11/11/2016 13:08:25
 
 
À
10/11/2016 15:10:17
Information générale
Forum:
CSS
Catégorie:
Autre
Divers
Thread ID:
01643109
Message ID:
01643196
Vues:
34
Hi Michel,

Did you try :last-child pseudo-class selector? https://www.w3.org/TR/css3-selectors/#last-child-pseudo


>I have a series of images being displayed such as the image attached. Those images are wrapped inside a div. The div has a margin-right of 10 pixels. The div is defined to be inline-table so as the browser width is decreased, the number of images being shown will moved from 4 to 3 to 2, etc.
>
>The blue area represents the margin between the main content of the site and the right section which contains some marketing items and such. I have highlighted it in blue in the image attached so to make it easy to see the margin I am making reference to.
>
>What I would like to know if there is a way to avoid the margin-right of the div when it is the last image before it wraps. Because, as is, this creates an extra 10 pixels between the main content and the right section.
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform