Make an Image the Full Width of a Page
-
I am trying to get an image on a page to expand to the entire width of the page/site. Here is my site. The image I am trying to expand is on the home page:
https://www.jakehuddleston.com
The image dimensions, the code in the page HTML editor, and the code in the style sheet all indicate full-width dimensions, and yet the image only expands part of the way across the site width.
Style Sheet:
LAYOUT: One column, no sidebar DESCRIPTION: One centered column with no sidebar */ .one-column #content { margin: 0 auto; width: 940px; } /* LAYOUT: Full width, no sidebar DESCRIPTION: Full width content with no sidebar; used for attachment pages */ .single-attachment #content { margin: 0 auto; width: 940px;
Page HTML Editor:
<p style="text-align: center;"><img class=" wp-image-469 aligncenter" alt="Website Slideshow - About Jake-01" src="https://www.jakehuddleston.com/wp-content/uploads/2012/12/Website-Slideshow-About-Jake-01-e1355439825424.png" width="940" height="343" /></p>
Image dimensions are 940×343.
Even with all these indicating a width of 940px for both the page width and the image, the image appears to only expand perhaps about 600px across the page. I would like to enlarge the image so it fills the width of the entire page from side to side.
- The topic ‘Make an Image the Full Width of a Page’ is closed to new replies.