Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   How do I get my featured images to span the whole of the page post on excerpts? (http://forum.bytesforall.com/showthread.php?t=19972)

Mooniemad Mar 23, 2013 09:10 AM

How do I get my featured images to span the whole of the page post on excerpts?
 
I have just moved over from Atahualpa to Montezuma. As an amateur with coding I would be grateful for any support on the below:

How do I get my featured images to span the whole of the page post on excerpts?

The site can be found here: http://www.nicholasmoon.co.uk.

Thanks,

lmilesw Mar 23, 2013 09:29 AM

On the "Online Dating" post your image is only 240px by 180px. On my laptop the container for the image is about 835px when the browser is set to full screen.

In my desktop with a larger monitor the box would be even bigger.

I don't know how you would get a 240px wide image to fill a 835px box without pixelating but you could add the following to the CSS to stretch the image to the full width of the container.

HTML Code:

.post-thumb a {
    overflow: hidden;
}
.img_wrapper img {
    width: 100%;
}

Plus the variable width site adds another wrinkle.

Mooniemad Apr 28, 2013 10:34 AM

Thanks for looking into this. I see what you mean about pixelating.

Is there a way for me to centre the image in the container?

Thanks

juggledad Apr 28, 2013 12:48 PM

What CSS haveyou tried?


All times are GMT -6. The time now is 05:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.