dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: 2 images at the top of the page

  1. #1
    Join Date
    Aug 2004
    Location
    70 klicks above the Do Lung bridge
    Posts
    654

    2 images at the top of the page

    I have 2 images at the top of my page but I would prefer them to be placed side by side at the top of my page through css. I know how to place one image
    body { background-image: url('face.jpg');
    background-repeat: no-repeat;
    background-position: top; }
    but how would I have them as described above?

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Images naturally align side by side.

  3. #3
    Join Date
    Aug 2004
    Location
    70 klicks above the Do Lung bridge
    Posts
    654
    Yeah but how do you seperate them in a css?
    background-image: url('face.jpg'), url('scratchlogo.jpg');
    background-repeat: no-repeat;
    background-position: top;

    I know this doesn't work for a start!

  4. #4
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Only one image can be placed on the background.
    <img style="margin:20px;" alt="myImage" src="myImage.gif" height="20" width="30" />
    Use margin, padding or border http://www.w3schools.com/css/default.asp

  5. #5
    Join Date
    Aug 2004
    Location
    70 klicks above the Do Lung bridge
    Posts
    654
    Oh well. I'll just stick both images into one. Simple way around that. Thank you.

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