Results 1 to 2 of 2

Thread: Image Display Problem with MAC

  1. #1
    pradip030384 Guest

    Image Display Problem with MAC

    I was facing a problem with displaying Background image in Mac Safari. Earlier my syntax was in css as
    cssname
    (
    background:url(image\ViewSubmission\red_clock.gif);
    background-repeat:no-repeat;
    width:16px;
    height:16px;
    )

    Later I have changed my sysntax ,now its working fine

    background:url(image/ViewSubmission/red_clock.gif);
    background-repeat:no-repeat;
    width:16px;
    height:16px;

    [mod::Link removed. You have not met the forum requirements to post links]
    Last edited by is_numeric; 30 Dec 2009 at 02:18 PM. Reason: link removed

  2. #2
    Join Date
    Aug 2009
    Location
    Texas
    Posts
    193
    You're using parenthesis where you need to be using curly brackets. Also, you need to add a . before the classname, or a # if it is an id:

    Code:
    .classname {
    background: url(image/ViewSubmission/red_clock.gif);
    background-repeat: no-repeat;	
    width: 16px;
    height: 16px;
    }
    Also I guess you caught that you need to use forward slashes, not back slashes.

Similar Threads

  1. Image Centering Problem
    By acidvisor in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 16 Jan 2007, 04:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •