Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
How do you lay text over an image?
Old 01-09-2007, 03:05 AM How do you lay text over an image?
Novice Talker

Posts: 8
Name: Mike
Trades: 0
I have designed a website using Photoshop and Dreamweaver for a guy who does not own photoshop. He is going to have to edit the text on the site by himself using notepad (HTML), but Photoshop converts text to images, making it uneditable. Is there a way using either program to lay text over an image? The site I designed is here http://www.KustomParts.com and the large empty grey area is where I need the editable text to be.

Any help would be appreciated,
Reidy
Reidy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-09-2007, 09:09 AM Re: How do you lay text over an image?
Silent77's Avatar
Ultra Talker

Posts: 269
Name: Silent
Location: Ohio
Trades: 0
Read up on the div tag
__________________
Firefox
rediscover the web

Please login or register to view this content. Registration is FREE
Down with internet explorer!
Silent77 is offline
Reply With Quote
View Public Profile Visit Silent77's homepage!
 
Old 01-09-2007, 09:26 AM Re: How do you lay text over an image?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You can accomplish what you want using CSS and proper markup. The graphic would become a background image on a <div> and the text could then be positioned where you need it inside the same <div>, appearing on top of the background image.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-09-2007, 11:37 AM Re: How do you lay text over an image?
Novice Talker

Posts: 8
Name: Mike
Trades: 0
Thank you both for your help
Reidy is offline
Reply With Quote
View Public Profile
 
Old 01-09-2007, 07:47 PM Re: How do you lay text over an image?
Novice Talker

Posts: 8
Name: Mike
Trades: 0
Wow, lol. That is alot easier than messing wih div tags. Thank you very much!!
Reidy is offline
Reply With Quote
View Public Profile
 
Old 01-09-2007, 08:26 PM Re: How do you lay text over an image?
Novice Talker

Posts: 8
Name: Mike
Trades: 0
I got the text to appear in the table and it looks right...except the font is aligning itself in the middle of the table instead of at the top where I want it Any suggestions?
Reidy is offline
Reply With Quote
View Public Profile
 
Old 01-10-2007, 05:30 AM Re: How do you lay text over an image?
bbutton's Avatar
Experienced Talker

Posts: 43
Name: Bill Button
Location: Reading,UK
Trades: 0
Hi,

Try using the align=right and valign= top in the TD tag

Bill Button
http://www.rodmatic.com
bbutton is offline
Reply With Quote
View Public Profile Visit bbutton's homepage!
 
Old 01-14-2007, 11:07 PM Re: How do you lay text over an image?
Novice Talker

Posts: 8
Name: Mike
Trades: 0
That worked perfectly!! Thankyou!
Reidy is offline
Reply With Quote
View Public Profile
 
Old 01-15-2007, 07:35 PM Re: How do you lay text over an image?
Ultra Talker

Posts: 256
Location: Auckland, New Zealand
Trades: 0
Using tables isn't the way to go in this situation, even though it may seem easier.

My logo I created uses a background image and has text laid over the top of it, because I feel actual text is better than an image that contains text. The html is simply:

HTML Code:
<div class="logo">
    <h1>mastercomputers</h1>
</div>
The CSS is:

Code:
h1 {
	font: bold 2.3em/0.9em tahoma,sans-serif;
	letter-spacing: -1px;
}
.logo {
	width: 53px;
	height: 55px;
	background: url('http://mastercomputers.uni.cc/images/logo.png') no-repeat;
}
.logo h1 {
	position: relative;
	top: 23px;
	left: 26px;
}
The results are seen at:

http://mastercomputers.uni.cc/

The positioning is controlled by the top and left positions, I'm pushing it down 23px and pushing it from the left 26px to line it where I want above my background image. The div holding the background image is set at the height and width of the image.

All the other styling involved is just my personal preferences and doesn't do much for you.

Cheers,

MC
__________________
#------------------------------signature---------------------------------------------------------------------------------#
Quote:
I am well recognised for what I don't do than what I do. Chores are just one of those things.
mastercomputers is offline
Reply With Quote
View Public Profile Visit mastercomputers's homepage!
 
Old 01-15-2007, 08:41 PM Re: How do you lay text over an image?
Mattmaul1992's Avatar
Ultra Talker

Posts: 486
Name: Matt
Trades: -1
Just a small warning... Tables look different in ever browser. That is one of the major reasons why everyone is saying to use the <div> tag with CSS. You can make sure it's in the right spot down to the pixel unlike tables which is a bit of a guessing game.
Mattmaul1992 is offline
Reply With Quote
View Public Profile
 
Old 01-20-2007, 05:45 AM Re: How do you lay text over an image?
TheClue's Avatar
Novice Talker

Posts: 14
Name: Gabrio
Location: benevento, it
Trades: 0
i agree, table solution is simply...the wrong solution!

be careful with DIVs, anyway: they COULD look differently between firefox and old IEs because they handled differently margin and padding measures.

try searching for ex. "browser box model" on google or here in the forum to understand deeply the problem

gabrio
__________________
Gabrio "TheClue"


Please login or register to view this content. Registration is FREE
TheClue is offline
Reply With Quote
View Public Profile Visit TheClue's homepage!
 
Reply     « Reply to How do you lay text over an image?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.75789 seconds with 12 queries