We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

css

eejk
eejk asked
on
Medium Priority
202 Views
Last Modified: 2013-07-29
I want to center this .jpg file that is 1224 width

This .jpg is attached and has a gradient that horizontally changes from light brown to darker brown

Now how can I create a background that will fit this color.

The only rule is that I can not change the .jpg file.

Please see attached file.
Comment
Watch Question

Brad Dobyns, CSMScrumMaster

Commented:
I don't see an image. Are you sure its attached?

Commented:
do you mean how will you create a background on an image that sits on your gradient that will fit?

if so itll need to be a transparent gif. best to set the transparency mid way between your two browns
Not sure exactly what you mean. You can check the article. It is about how to use large background images

http://www.webdesignerdepot.com/2008/11/dos-and-donts-of-large-website-backgrounds/

MD

Author

Commented:
sorry,  4got to attach image

brown-background-long.jpg
ScrumMaster
Commented:
In looking at this again, I am confused about what you said in the description. So, with that I have provided two examples of what I THINK you need. You can tell me if I am way off base or not.

CSS Gradient background: http://www.webdesignerwall.com/tutorials/cross-browser-css-gradient/

Centering image:

    img.center {   display: block;   margin-left: auto;   margin-right: auto; }

And here is the HTML that would be centered:

    <img src=brown-background-long.jpg" alt="" class="center" />

Hope that helps,
Brad

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
CERTIFIED EXPERT
Expert of the Year 2014
Top Expert 2014

Commented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.