Eliminate margins around image graphic in page content

General questions pertaining to how certain issues can be resolved
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

Eliminate margins around image graphic in page content

Postby Alstin » 21 May 2012, 11:12

How can I eliminate the margins around my collage image graphic (benefits-collage.jpg) on this page http://templehealthcareers.com/benefits/? I want the sides and bottom of the image benefits-collage.jpg to touch the sides/bottom of the white box (r-corner-box).
Last edited by Alstin on 21 May 2012, 20:16, edited 1 time in total.
Alstin
 
Posts: 26
Joined: 22 Mar 2012, 10:51

Re: Eliminate margins around image graphic in page content

Postby drake » 21 May 2012, 12:21

Try to add at Custom Style:
Code: Select all
img.wp-img-107 {max-width:130%;margin-left:-30px;width:660px;margin-bottom:-5px;}
drake
 
Posts: 3777
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania

Re: Eliminate margins around image graphic in page content

Postby Alstin » 21 May 2012, 13:35

Hi Drake. It doesn't seem to be having an effect. I'm not sure I'm calling it correctly. I tried a '.' a '#' and also with nothing in front - just copying/pasting your code as is. Do you know what I'm doing wrong? Thanks.
Alstin
 
Posts: 26
Joined: 22 Mar 2012, 10:51

Re: Eliminate margins around image graphic in page content

Postby drake » 21 May 2012, 17:25

Ok, you can try this. Go and edit the page. Switch to HTML mode and go to the bottom where the <img> tag is located. Now it look like this:
Code: Select all
<img class="alignnone size-full wp-image-107" title="benefits-collage" src="http://templehealthcareers.com/wp-content/uploads/2012/05/benefits-collage.jpg" alt="" width="649">


Change width to "660" and add the remaining styles from my previous post. Your tag shoul look after that like this:
Code: Select all
<img class="alignnone size-full wp-image-107" title="benefits-collage" src="http://templehealthcareers.com/wp-content/uploads/2012/05/benefits-collage.jpg" alt="benefits" width="660" style="max-width:130%;margin-left:-30px;margin-bottom:-5px;">


Now the styles becames inline styles and should take precedence over other definitions so it not will be overwritten at execution time.
drake
 
Posts: 3777
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania

Re: Eliminate margins around image graphic in page content

Postby Alstin » 21 May 2012, 20:15

That did it. Thanks my friend.
Alstin
 
Posts: 26
Joined: 22 Mar 2012, 10:51


Return to Support Requests

Who is online

Users browsing this forum: Google [Bot] and 6 guests