- This topic has 18 replies, 3 voices, and was last updated 5 years, 5 months ago by Tom.
September 5, 2015 at 5:48 am #134542Oskar
I wonder if its possible show an image on a page with full container widht, in other words with no space between the image and the container?September 5, 2015 at 9:23 am #134578TomLead DeveloperLead Developer
So you want the image to push right up against the edges of the container?
Do you want this with regular images you’ve added to your content or with the page header/featured images?September 6, 2015 at 6:02 am #134752Oskar
Yes exactly! Is it possible? I want to to this with regular images added to the site, for example on my first page!
Thanks! OskarSeptember 6, 2015 at 9:40 am #134786TomLead DeveloperLead Developer
You can wrap regular images in this class:
<div class="ignore-xy-spacing"> My image HTML in here </div>
That should do it 🙂September 6, 2015 at 12:01 pm #134820Oskar
Thanks! Im a bit new to this: Can I use the Jetpack plugin and “edit css” for this?
Should I write:
<div class="ignore-xy-spacing"> http://www.kbtterapistockholm.se/wp-content/uploads/2015/09/ImageResizer.net-42nhjz88gudcv2p.jpg </div>
Thank you, OskarSeptember 6, 2015 at 12:12 pm #134821TomLead DeveloperLead DeveloperSeptember 6, 2015 at 12:26 pm #134824OskarSeptember 6, 2015 at 1:14 pm #134827TomLead DeveloperLead DeveloperSeptember 7, 2015 at 1:35 am #134932Oskar
Great, thanks!! Is it also possible to remove the space abow the image? (between the image and the container)September 7, 2015 at 9:31 am #135019TomLead DeveloperLead DeveloperSeptember 7, 2015 at 1:20 pm #135095Oskar
Here is an example with the space abow present: http://www.kbtterapistockholm.se/
Regards, OskarSeptember 7, 2015 at 11:41 pm #135185TomLead DeveloperLead Developer
Are you using GP Premium? If so, use the Disable Elements add-on to disable the headline/page title.
That should remove that gap.
Let me know 🙂September 8, 2015 at 12:03 am #135196Oskar
I use the GP premium but when Im trying to make it dissapear with the disable elements add-on nothing happens. Do u know whats wrong?
I checked the Post Image / Page Header
Headline / Post Title boxes in the disable elements section on the page…
//OskarSeptember 8, 2015 at 9:02 am #135305TomLead DeveloperLead DeveloperSeptember 9, 2015 at 12:08 am #135453Oskar
Cleared my cache and it worked! Thanks alot!
- You must be logged in to reply to this topic.