Content width in portfolio posts

Hello

I have some difficulties with my portfolio content width. It won’t fill the whole width of the container (right side).

Global Layout is fullwidth, I turn of the inner container at all the containers on the page and I tried some custom css I found in the forum.

.entry-title.entry-title-portfolio {
display: none;
}
.single-x-portfolio .entry-featured {
display: none;
}
.single:not(.single-post) .entry-wrap,
.single:not(.single-x-portfolio) .entry-wrap {
padding: 0;
}
.single:not(.single-post) .entry-content.content,
.single:not(.single-x-portfolio) .entry-content.content {
margin-top: 0;
margin-left: 50px;
margin-right: 10px;
margin-bottom: 10px;
max-width: 100%;
width: 100%
}

All the margins except the right one are perfectly with this, on the right it is still not width enough to fill the whole container.

Could you please give me a hint, where my error is?

Thanks Michaela

Hi There,

Please remove your custom CSS and add this CSS instead:

.x-portfolio .entry-info,
.x-portfolio .entry-extra {
    width: 100%;
}

.x-portfolio .entry-wrap {
    padding: 25px;
    margin: 0;
}

Hope it helps :slight_smile:

Hello

Sorry, it didn’t work. Margin-top is even worse than before. Any other idea?

Greeting Michaela

Hi Michaela,

The code did not work when you placed it in the Global CSS because there was a missing closing } on the code before the new lines of code you have added,

I went ahead and fixed it and you should now see the effect of the code where the padding of the portfolio container is lessened.

Hope this helps.

Hello Jade

Thanks a lot - I think I need some coffee :wink: Now it looks perfect.

All the best
Michaela