Results 1 to 5 of 5
  1. #1

    Member Since
    Oct 22, 2008
    Mac OS X version 10.6.8
    I'm trying to build a web site...
    I'm learning html so I can build a website, I've read Creating Web Pages For Dummies so I've access to codes etc. I'm trying to set a background image but I can't find the code to make the writing appear on top of the image.

    I'd also need to change the colour of the font as the image I'd like to use is mainly black.

    Can anyone help at all?

    Many thanks, James

  2. #2

    kahlil88's Avatar
    Member Since
    Jan 29, 2008
    Mendocino, CA
    17" MacBook Pro A1297 2.3 GHz i7 4GB DDR-1333
    Writing should appear on top of the image by default. You said the image was mainly black, so it might just be very difficult to see the text. If you're learning HTML and not XHTML, you can use the font tag to change the font color and whatnot. Example:
    <font color="white">White text!</font>
    There is no system but GNU and Linux is one of its kernels.
    Join the FSF as an Associate Member!

  3. #3

    Member Since
    Oct 22, 2008
    Mac OS X version 10.6.8
    Thanks, I've used that code to change the font colour, but the words just go around the image (depending on how the image is aligned of course).

    This is the code I'm using;

    <IMG SRC=url ALT="text">

    Is this the correct code? Or does it differ when you want writing over the image?

    Also, the image won't go exactly the left or top edge of the screen, no matter how I re-size or align it, leaving a thin white unwanted 'border'. Can anyone help with this at all?

    Thanks very much for your help:-)

  4. #4

    wheelguy's Avatar
    Member Since
    Jun 18, 2006
    MacBook Pro
    The tag you have is for a page image not for a background image. Do a search for html background image and you will find numerous different ways to accomplish what you need. As for the border add border="0" to the tag.
    Here is a great place to start learning W3Schools Online Web Tutorials
    If you aren't fired with enthusiasm, you will be fired with enthusiasm. -Vince Lombardi

  5. #5

    Lewwy's Avatar
    Member Since
    May 21, 2007
    15" Macbook Pro, 2.16gz, 2gb RAM || 20" iMac, 2.4gz, 2gb RAM
    <script type = "text/css">
    background: url(/images/your_image.jpg);

    Putting that code in the <head> tags of your code (and obviously ammending the image location) should sort you out..

    I always have my CSS stored in an external file.. But youll do better learning about this stuff than me telling you how to do it.

    Might also wanna look into repeats etc..

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. web site
    By Roseygirl in forum Switcher Hangout
    Replies: 2
    Last Post: 01-14-2013, 07:22 AM
  2. Need some good advice on software to build a web page
    By Bigmuslpup in forum Web Design and Hosting
    Replies: 8
    Last Post: 02-17-2010, 01:22 AM
  3. Does this web site look ok?
    By Primetime in forum Web Design and Hosting
    Replies: 5
    Last Post: 09-02-2009, 01:21 PM
  4. Best Program to Build a Web Page
    By jblake04 in forum Web Design and Hosting
    Replies: 6
    Last Post: 02-23-2007, 02:30 PM

Posting Permissions

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