Centering background image [was: I have inserted an image background...]

Here is the code. body{ background-image:url(backgrounds/MOMANDDAD.JPEG);}. what do i need to do to correct this mistake?
I have made an inline stylesheet on a html and put a background image in it and it will not center in ie8, but is okay in firefox 3.09. what is going on?
thanks mike

In the future, try to keep your subject brief: "Centering background image" would suffice.
Without seeing your site, image and other code, it's hard to guess what you have done so far.  Posting a URL to the live page is the best way to get a reply.
Try this in your CSS:
body {
     background: url (your_image.jpg) top center no-repeat;}
Nancy O.
Alt-Web Design & Publishing
Web | Graphics |  Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
HTML Validator - http://validator.w3.org
CSS Validator - http://jigsaw.w3.org/css-validator/
Tutorials  - http://w3schools.com/

Similar Messages

  • I have inserted an image into my form that does not reflect when i save it a a pdf

    I have insetred an image into my form that does not reflect when i save it as a pdf - please cna you assist?

    Hi leannedatel,
    There was a possible answer to this posted previously. Try this thread for a solution:
    http://forums.adobe.com/docs/DOC-4144
    Cheers!

  • Loop to detect which mc an image was dragged into and snap image   to it

    Hi All,
    I have an 'onMouseUp' code that will snap a dragged image
    into an mc target.
    If I hardcode the target it works fine for that one mc
    target, but if I
    try to put it into some kind of loop to add the code for all
    the mc
    targets, it won't work.
    If I hardcode it like it is, i get the trace "hello"
    perfectly, if I put
    it in a for loop, I get no "hello".
    I could use a 'case' and hardcode all the eventualities, but
    I was
    wondering how I could do it more dynamically using a loop to
    catch all
    the mc targets.
    Any help much apreciated,
    Jeff C.
    My code:
    // constants
    var NPICS:Number = 5; // number of pictures to load
    var THUMBW:Number = 82; // width of each thumbnail
    var THUMBH:Number = 82; // height
    var MARGIN:Number = 10; // margin between thumbnails
    _global.dragpic = ""; //name of pic being dragged
    // index into pictures array, used for loading
    var ipic:Number;
    var thispic:String;
    // set up loader, an instance of MovieClipLoader
    var loader:MovieClipLoader = new MovieClipLoader();
    // use the main timeline to listen to and respond to loader's
    broadcast
    events
    loader.addListener(this);
    var myMCL = new MovieClipLoader();//create an instance of
    MovieClipLoader
    function onLoadInit(_mc:MovieClip) {// this gets done when
    the jpg is
    completely loaded:
    _mc._width = THUMBW;
    _mc._height = THUMBH;
    trace(_mc.getDepth())
    _mc.onMouseDown = function(){
    if (this.hitTest(_xmouse, _ymouse,true)) {
    var nm:String = this._name
    var nextDepth:Number = getDepth();
    this.swapDepths(getNextHighestDepth());
    this.startDrag(true);
    _global.dragpic = this._name;
    }//end of mousedown
    _mc.onMouseUp = function(_mc){
    this.swapDepths(nextDepth);
    this.stopDrag ();
    if(this.hitTest(tgt1)){// what target ** tgt1 is
    hardcoded - want it dynamic!
    trace("hello");
    this._y = tgt1._y-(this._height/2);
    this._x = tgt1._x-(this._width/2);
    }//end of mouseup
    function init() {
    //create the targets for drop
    for (var a:Number=1; a<=4; a++ ){ //loop to load 3
    pictures
    //attach targetmc and give each one the name tgt1, tgt2, etc
    var mctg:MovieClip = this.attachMovie("targetmc", "tgt" + a,
    100+a);
    //position each one in a row -
    //(border+(half width)) + (no of image) X (image
    width+border)
    mctg._x=(10+(mctg._width*.5)) + ((a-1)*(10 + mctg._width));
    mctg._y=250;
    //****end of targets code ****
    // create holder for pictures
    // make empty movieclips in thumbs_mc for each pic to go
    into
    for (var i:Number = 0; i < NPICS;) {
    i++ //important to leave this out of the for()
    var mc:MovieClip = this.createEmptyMovieClip("mc"+i, i+1);
    if(i<4){
    mc._x = MARGIN + (i-1)*(MARGIN + THUMBW);
    mc._y = MARGIN;
    if (i>3){ //start a new row after 3rd mc
    mc._x = MARGIN + (i-4)*(MARGIN + THUMBW);
    mc._y = (MARGIN*2) + THUMBH;
    // set the pointer to the first jpg
    thispic = "pic"+i+".jpg";
    ipic = 0; //changes the x postion of pic
    // start loading jpgs
    loader.loadClip(thispic, "mc"+i);
    //CALL THE INIT FUNCTION TO START THE MOVIE
    init();

    You are in recover mode.  You need to do what your iPad is telling you to do.  Connect it to your computer via USB and follow the instructions in the link I provided.  Be advised, recover mode often required you to do this multiple times to get it to work. 
    http://support.apple.com/kb/HT1808

  • I have just purchased a Nikon D7000 and iPhoto downloads jpgs but does not show them. It shows an empty frame. If you double click the frame it will show the image. I have tried importing images from the Nikon provided software and the same thing happens.

    I just purchased a Nikon D7000. However, iPhoto does not display JPEG images. I seems to download ok, but displays only an empty box. Double clicking on the box opens the image in a single display window. It does the same thing when importing from Nikon's supplied software. Forget about handling RAW files. Now, I'm having difficulty importing JPGs from Photoshop files for slide shows or use in iMovie.

    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • Can you insert an image into an image you are editing?

    I am editing a picture & would like to add in our logo on the picture, is this a possibility?
    Your commets would be greatly appreciated.
    Cheers.....

    Hi,
    After you have inserted the image, you can use
    Magic Erasor tool : Click on the white background area you want to remove. ( if the areas you want to keep does not have White at all, uncheck Contiguous from the options bar and click on the white( or any color) background area.
    Paint Bucket tool: from the options bar, select from Mode Drop down, - "Clear". Check/Uncheck Contiguous depending on the colors, and click on the color to be removed.
    Magic Extracter: Go to Image > Magic Extractor: Mark areas to protect and remove with not so refined and perfect strokes, and Click on Preview to verify that you have acheived the desired results. You can erase and mark your areas you want to protect and remove till you have the right areas removed.  Once you are satisfied by the results, click on OK
    PS: Make sure you have the correct Layer selected from the Layer's panel.
         Also, please mark the answers as correct answers if they solve your problems.
    Cheers,
    Swarnima

  • Why can't I insert an image into the header in Pages 5.0.1?

    In previouis versions of Pages, I was able to insert an image into a Header or Footer.
    This action does not appear an option in Pages 5.0.1.
    Am I missing something?
    I must say, I do not like the NEW interface. Much has been lost with the transition to the Cloud.
    I like the concept of using my iPad Air and my desktop, however functionality has been tossed out for deference to the Tablet.

    KT,
    Use a "Floating Graphic" and send it to the Section Master in the Arrange > Section Master menu. Floating is called Stays With Page now. Don't worry about it not being in the Header field. It will serve the purpose.
    Jerry

  • Error when inserting the image in WAD

    Hi,
    I have inserted a .gif image in MIME repository and then in WAD template I have inserted a image and then when I ry to execute the WAD template, everything is working fine in the report but the image/logo is not displayed, the link is being displayed...
    And a warning is displayed at the bottom of the WAD template:
    W2   42:46  Tag '<img>' lacks 'alt' attribute
    tag '<img>' lacks 'alt' attribute: Correct the Template in the editor
    How do I resolve this error???
    Thanks & Regards.

    Hi,
    check whether the "default_host/sap/bw/Mime" service is active  with T-code  SICF.
    logo file name should be in lower case even though it is upper case in MIME repository.
    (Logo path looks like this "sap/bw/Mime/Customer/Images/testlogo.gif")
    Regards,
    Daya Sagar

  • Images not showing when inserted in RH8 topics

    Hello all,
    I am using RH8 for HTML on Windows 7.  When I insert a new image into a topic, the image does not show.  What appears is a small red square.  
    You probably want to know how I inserted the images.  I create the image (usu a jpg file) in Photoshop Elements.  Using Windows Explorer, I copy the image file into the Images folder for the RH project.  In the RH topic, I click Insert, Image.  In the dialog box,  the image does not show up under the images folder, so I click the Browse icon to browse to teh image, select it and click ok.   The image is inserted.. I can tell because there is a red square, and when I preview the topic, I can see the image is there. 
    Also, even after I have inserted the image, and it then shows up in the Images folder in the "insert image" dialog box, I still cant see a preview of it.
    How can I get the images to show in the topic when i insert them?
    Bob

    When you generate your output, do the images show up there?
    Can there be an issue with upper case / lower case filenames? Any special characters in the file names?

  • Problems inserting an image within dreamweaver

    When I try to insert an image in Deamweaver CS4 - the browse to dialog box fails to appear, although a message stating: You won't see this element unless the view > visual aids > Invisible elements is checked and the preference setting for this element is on. - both of these appear to be on, apart from the message no image appears on the page, either in the code or design view, it does register under the edit menu as a 'redo image' or 'undo image option, also it strangely alters the document title to 'image' which reverts to its original title if you edit undo image - all a bit weird, help please! 

    Hi Ben thanks for the information, whilst I found it useful,it  did not cure the issue which I was having when inserting an image. Thankfully this is a former issue which my son Jody managed to sort, not sure how he did it, I will ask and post.
    thyanks again - Gary

  • Moving a jpg image on top of another jpg image

    I am currently doing a game board project and I need code to move an image that is on top of another image. I have the board image up but I need to put the other image on top of it and move it. Please someone with code to drag and drop help me. Thanks Anne

    Try this code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Iover extends JFrame
         Mpan   pan = new Mpan();
         JLabel lbl;
    public Iover() 
         addWindowListener(new WindowAdapter()
        {     public void windowClosing(WindowEvent ev)
              {     dispose();
                   System.exit(0);}});
         setBounds(10,10,520,350);
         getContentPane().setLayout(new BorderLayout());
         getContentPane().add(pan,BorderLayout.CENTER);      
         pan.setLayout(null);
         lbl = new JLabel(new ImageIcon("game1.gif"));
         lbl.setBounds(100,100,100,100);
         pan.add(lbl);
         setVisible(true);
         lbl.addMouseMotionListener(new MouseMotionAdapter()          
         {     public void mouseDragged(MouseEvent m)
                   lbl.setLocation(lbl.getX()+m.getX(),lbl.getY()+m.getY());
    public class Mpan extends JPanel
    public Mpan()
    public void xpaint(Graphics g)
         g.setColor(Color.pink);
         g.fillRect(0,0,getWidth(),getHeight());
         paintComponents(g);
    public static void main (String[] args) 
         new Iover();
    Noah

  • Inserting table background images [was: CS4 DW]

    Dear all,
    I've have trouble inserting the background images in a cell of a table. When I was using CS3 I had the options of selecting BG color or image, as well as choosing the border color.
    Right now in CS4 I can't even insert one in a cell, only color bg, and also editing the font size, color, type..
    Can anyone advise?
    Z

    CSS code uses a different syntax than HTML code.
    With CSS you can use a background-color: #FFF or a background-image (URL).  This can point to an absolute URL:
    background: url (http:yoursite.com/images/bg-image.jpg)
    or to an image in your  DW local site folder:
    background: url (some-folder-in-your-local-site/image.jpg)
    For more  HTML & CSS Tutorials - http://w3schools.com/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • How to insert cropped images from photoshop without the white background

    Basically all I want to do is take a peice of writing from a video and insert it into another video. To do this I've took a screenshot of the font from the video and imported it into photoshop. I've then cropped/cut/took the the peice of writing I want, letter by letter. I want to be able to insert it into another video, but whenever I attempt to do it, I have the default white background of photoshop. Is there anyway to insert an image from photoshop, without taking the background with it, or even insert a layer from photoshop straight into final cut pro? Sorry if this is confusing.

    I don't think so. I cropped the letters, put them each an individual file, removed the background, saved them as a TIF then tried to import them onto Final Cut Pro, but a white background still appeared in the TIF file. Basically I just want to make the background transparent I believe.

  • I try to insert some images on a website but the images are not in the right color mode. I do not know what to do? and also I have 1200 images to insert so I can not change one after one. So I need to set up an action, but I donot know how to do it... Tha

    I try to insert some images on a website but the images are not in the right color mode. I do not know what to do? and also I have 1200 images to insert so I can not change one after one. So I need to set up an action, but I donot know how to do it... Thanks

    What is the problem specifiaclly?
    If the images are intended for web use I would recommend converting them to sRGB which could be done with Edit > Convert to Profile or with File > Save for Web, but as including a Save step in Actions and applying them as Batch can sometimes cause problems I would go with regular converting.
    You could also try Image Processor Pro.
    Scripts Page

  • I Have a Mac 10.9.5 I have Photoshop CS 5.. Also have Photoshop CC. As of last month was able to edit any image with either program,as of today I can't edit images in either program. I can't see and editing I've done ,but when close the image both program

    I Have a Mac 10.9.5 I have Photoshop CS 5.. Also have Photoshop CC. As of last month was able to edit any image with either program,as of today I can't edit images in either program. I can't see and editing I've done ,but when close the image both program ask (do you want to save changes) I look at the image I don't see any changes to save. Please help Thanks for time in advance

    Please describe the steps involved in the issue exactly (with screenshots maybe).
    What have you done for trouble-shooting so far?
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html

  • I just got an apple at&t iphone 4 and I have it unlocked. But I want to connect it to t-mobile, so I trimmed my sim card and once the phone was unlocked I inserted the sim and it says no sim, activation error. What can I do to fix this? What is wrong?

    I just got an apple at&t iphone 4 and I have it unlocked. But I want to connect it to t-mobile, so I trimmed my sim card and once the phone was unlocked I inserted the sim and it says no sim, activation error. What can I do to fix this? What is wrong?

    JayleneC wrote:
    Wait.. Everything on iTunes worked, but when I insert my sim it brings me to the start were I have to choose my language, etc... Then it says activation error.. Are you sure it's the sim card?
    As you addressed me that is exactly what I said
    Dodgy trimming ??   get a new micro sim from T-Mobile

Maybe you are looking for

  • What is the best way to save and copy high resolution slide show?

    Creating and saving/burning slide shows in iMovie or iDVD does not appear to give the same high resolution as playing slide shows directly from iPhoto.  Resolution is also lost when exporting the slide show to iTunes.  Is there a recommended techniqu

  • TS3074 Error 7 (Windows error 126) - how do i fix this?

    Every time i start up my computer and plug in my iphone the following message comes up multiple times. In fact, the message  comes up with or without the iphone being plugged in. The program can't start because MSVCR80.dll is missing from your comput

  • The Diff Between Pre-Order and Reserved

    Pre-Order: You walk into the store between the 24th and the 1st of July and walk out with an iPhone 4. Reserved: You stand in line after all the pre-order people have gotten their iPhones (or if they don't show up, their phone is held for 7 days) and

  • Best mouse for editing?

    Got some down time today. I am just curious, what mouse do the forum folks recommend? Just wondering. And...waiting for my new Mac Pro. Cheers. Tom

  • Hide/Delete, do something with information I don't want to show - help!

    Hi everyone, I hope you can help me out. I current have to submit pdfs to our auditors to backup financial information. I have a 2 page document that I need to submit however, on the second page there is information that I do not want to show the aud