Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Complication with margins
Message
From
11/11/2016 04:24:30
 
 
To
10/11/2016 15:10:17
General information
Forum:
CSS
Category:
Other
Miscellaneous
Thread ID:
01643109
Message ID:
01643157
Views:
34
>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.

Hi Michel:

And why don't you just use a margin-left of 10, so you haven't the margin-right problem?
Fernando D. Bozzo
Madrid / Spain
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform