Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Complication with margins
Message
From
10/11/2016 15:10:17
 
 
To
All
General information
Forum:
CSS
Category:
Other
Title:
Complication with margins
Miscellaneous
Thread ID:
01643109
Message ID:
01643109
Views:
53
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.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform