New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

I'm trying to build a web site...

Post Reply New Thread Subscribe

Thread Tools

Member Since: Oct 22, 2008
Posts: 14
Jamescreation is on a distinguished road
Mac Specs: Mac OS X version 10.6.8

Jamescreation is offline
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
QUOTE Thanks

kahlil88's Avatar
Member Since: Jan 29, 2008
Location: Mendocino, CA
Posts: 680
kahlil88 is a jewel in the roughkahlil88 is a jewel in the rough
Mac Specs: 17" MacBook Pro A1151 2.16 GHz

kahlil88 is offline
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!

QUOTE Thanks

Member Since: Oct 22, 2008
Posts: 14
Jamescreation is on a distinguished road
Mac Specs: Mac OS X version 10.6.8

Jamescreation is offline
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:-)
QUOTE Thanks

wheelguy's Avatar
Member Since: Jun 18, 2006
Location: Minneapolis
Posts: 191
wheelguy will become famous soon enough
Mac Specs: MacBook Pro

wheelguy is offline
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
QUOTE Thanks

Lewwy's Avatar
Member Since: May 21, 2007
Posts: 198
Lewwy is on a distinguished road
Mac Specs: 15" Macbook Pro, 2.16gz, 2gb RAM || 20" iMac, 2.4gz, 2gb RAM

Lewwy is offline
<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..
QUOTE Thanks

Post Reply New Thread Subscribe

« HTML 5 vs. XHTML | iWeb site w/ flash doesn't work with iE 7 but works with FireFX »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
Removing web history from the web address window? Adam W OS X - Apps and Games 4 01-07-2009 05:59 PM
Web server / port forward inconsistent results DavidH Internet, Networking, and Wireless 3 12-08-2008 05:42 AM
Buy or Build a MacBook Pro? sobershea Apple Notebooks 3 08-11-2008 12:53 PM
Web Site Creation pausco1 Web Design and Hosting 6 10-28-2005 12:42 PM
Web Sharing issues dpalxrc OS X - Operating System 0 08-31-2004 05:26 PM

All times are GMT -4. The time now is 04:54 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?