www.webdeveloper.com
Results 1 to 3 of 3

Thread: background image in div doesn't appear...

  1. #1
    Join Date
    Feb 2004
    Posts
    1,345

    background image in div doesn't appear...

    I got this code:

    PHP Code:
    <div style="background-image: url("imgs/video.jpg"); width: 740px; height:228px; padding-bottom: 6px;">
            
    Hello Wordl
        
    </p>
    </
    div
    For some reason I can't get to see the image I'm calling for ("imgs/video.jpg"). why's that?

    Thanks!

  2. #2
    Join Date
    Feb 2003
    Location
    Wales, UK
    Posts
    3,147
    when using inline styles avoid using double quotes around file locations:

    <div style="background-image: url('imgs/video.jpg'); width: 740px; height:228px; padding-bottom: 6px;">
    Hello Wordl
    </p>
    </div>

  3. #3
    Join Date
    Feb 2004
    Posts
    1,345

    Oh... cool man, thanks

    !

    Maybe you can also hel me with how can I get a vertical center of the scroller?

    Thanks again!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles