On posts, the feature image width 100% seems to be overridden #304
-
DescriptionFirst of all, love your work. Using a couple of your themes in my projects, thanks! Not sure when I noticed this, but it seems that the img width 100% is getting overridden. Screenshot of the Dev Console: I'm not great at debugging CSS but when I set width 100% the image spans the screen on desktop. Environment
Expected behaviorI like the image spanning the entire window, as shown below in the screenshot. Could you take a look? Steps to reproduce the behaviorCurrent look:Desired outcome: |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Yup, looks like setting But the following will do the trick if you want to keep it isolated to just cover images. .page-image {
img {
width: 100%;
}
} |
Beta Was this translation helpful? Give feedback.
-
Very strange. Looks like I have CSS already that should be applying https://github.com/mmistakes/so-simple-theme/blob/master/_sass/so-simple/_page.scss#L21-L39 |
Beta Was this translation helpful? Give feedback.
-
Are you sure you're using the latest version of the theme and not overwriting any of the Sass (CSS)? I just checked the theme's demo site and feature images are correctly getting Looking at the DLC source I see this, which would imply it's using an much older version that likely doesn't have the feature image fix.
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Augh, you're right, thanks for the help! Ruby version problem debugged on the Netlify side! |
Beta Was this translation helpful? Give feedback.
Yup, looks like setting
width: 100%
to those images will scale them up. Potential downside of doing this would be that it will emphasize artifacts due to smaller (lower quality) images being enlarged.But the following will do the trick if you want to keep it isolated to just cover images.