![]() |
HTML help
Decided to drop by for a bit. Anyway, I am new to making websites and wondering how would I add text inside the white box on [url=http://img279.echo.cx/img279/2651/untitled23qn.jpg:844c8]this image?[/url:844c8]
I can't seem to figure out how to make text be ontop of the image. It is always just a colored area with text, which is great, but would look much better if it had text. Help me if possible. I can also post the html for the site and its slices and so forth. It isn't uploaded or anything yet, but will be maybe one day. |
I have a similar problem as well on my website. I know how to put the text over the image, but whenever people use different browsers, the text seems to not be where it should be (like rather than be in a text box, the words would be over my banner, or on the sidebar).
|
Don't use 1 image for a website. It looks hokey and as you said, it will look different on different browser. What you should do is cut up your images like building blocks and piece them together in a table and make the one cell have text in it.
|
Quote:
|
pm me the html and images and ill hook it up for you. theres tons of ways you can do it ...
|
Here is the code:
[code:048ce]<html> <head> <title>window</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table id="Table_01" width="400" height="400" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="2"> <table id="Table_02" width="400" height="126" border="0" cellpadding="0" cellspacing="0"> <tr> <td> [img]images/window_01.gif[/img]</td> </tr> </table></td> </tr> <tr> <td> <a href="home.html"> [img]images/window_02.gif[/img]</a></td> <td rowspan="12"> <table id="Table_02" width="314" height="274" border="0" cellpadding="0" cellspacing="0"> <tr> <td> [img]images/window_03.gif[/img]</td> </tr> </table></td> </tr> <tr> <td> <table id="Table_02" width="86" height="8" border="0" cellpadding="0" cellspacing="0"> <tr> <td> [img]images/window_04.gif[/img]</td> </tr> </table></td> </tr> <tr> <td> <a href="bio.html"> [img]images/window_05.gif[/img]</a></td> </tr> <tr> <td> <table id="Table_02" width="86" height="8" border="0" cellpadding="0" cellspacing="0"> <tr> <td> [img]images/window_06.gif[/img]</td> </tr> </table></td> </tr> <tr> <td> <a href="disco.html"> [img]images/window_07.gif[/img]</a></td> </tr> <tr> <td> <table id="Table_02" width="86" height="8" border="0" cellpadding="0" cellspacing="0"> <tr> <td> [img]images/window_08.gif[/img]</td> </tr> </table></td> </tr> <tr> <td> <a href="media.html"> [img]images/window_09.gif[/img]</a></td> </tr> <tr> <td> <table id="Table_02" width="86" height="8" border="0" cellpadding="0" cellspacing="0"> <tr> <td> [img]images/window_10.gif[/img]</td> </tr> </table></td> </tr> <tr> <td> <a href="contact.html"> [img]images/window_11.gif[/img]</a></td> </tr> <tr> <td> <table id="Table_02" width="86" height="8" border="0" cellpadding="0" cellspacing="0"> <tr> <td> [img]images/window_12.gif[/img]</td> </tr> </table></td> </tr> <tr> <td> <a href="links.html"> [img]images/window_13.gif[/img]</a></td> </tr> <tr> <td> <table id="Table_02" width="86" height="102" border="0" cellpadding="0" cellspacing="0"> <tr> <td> [img]images/window_14.gif[/img]</td> </tr> </table></td> </tr> </table> </body> </html>[/code:048ce] As for the images.. Well the names are right there. If I get around to uploading them I will give a link. The image I want the text on is window_03.gif. |
what does window_03.gif look like?
|
What did you make this graphic with? If you use photoshop, use the slices tool to go around the box, then switch to image ready. then right click on the slice and look down at the Slices window if you dont see it, go to windows > slices. set it to no image and type the html code. to get the basic code if your not good with html, type what you want and how you want it in MS Word, save as web page open it in IE or w/e right click > view source (this is for IE idk about firefox and other browsers). copy the code and paste in the space in Image Ready.
|
Judas: [img]http://img151.echo.cx/img151/2171/window032dd.gif[/img]
Sniper101: When you do that (no image) it makes it one solid color, I want to keep the image and have text overlayed. |
[code:d500c]<html>
<head> <link rel="stylesheet" type="text/css" href="grim_style.css"> <title>window</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table id="Table_01" width="400" height="400" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="2"> <table id="Table_02" width="400" height="126" border="0" cellpadding="0" cellspacing="0"> <tr> <td> [img]images/window_01.gif[/img]</td> </tr> </table></td> </tr> <tr> <td> <a href="home.html"> [img]images/window_02.gif[/img]</a></td> <td rowspan="12"> <table id="Table_02" width="314" height="274" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="content_cell">dsfsdafdafasdf </td> </tr> </table></td> </tr> <tr> <td> <table id="Table_02" width="86" height="8" border="0" cellpadding="0" cellspacing="0"> <tr> <td> [img]images/window_04.gif[/img]</td> </tr> </table></td> </tr> <tr> <td> <a href="bio.html"> [img]images/window_05.gif[/img]</a></td> </tr> <tr> <td> <table id="Table_02" width="86" height="8" border="0" cellpadding="0" cellspacing="0"> <tr> <td> [img]images/window_06.gif[/img]</td> </tr> </table></td> </tr> <tr> <td> <a href="disco.html"> [img]images/window_07.gif[/img]</a></td> </tr> <tr> <td> <table id="Table_02" width="86" height="8" border="0" cellpadding="0" cellspacing="0"> <tr> <td> [img]images/window_08.gif[/img]</td> </tr> </table></td> </tr> <tr> <td> <a href="media.html"> [img]images/window_09.gif[/img]</a></td> </tr> <tr> <td> <table id="Table_02" width="86" height="8" border="0" cellpadding="0" cellspacing="0"> <tr> <td> [img]images/window_10.gif[/img]</td> </tr> </table></td> </tr> <tr> <td> <a href="contact.html"> [img]images/window_11.gif[/img]</a></td> </tr> <tr> <td> <table id="Table_02" width="86" height="8" border="0" cellpadding="0" cellspacing="0"> <tr> <td> [img]images/window_12.gif[/img]</td> </tr> </table></td> </tr> <tr> <td> <a href="links.html"> [img]images/window_13.gif[/img]</a></td> </tr> <tr> <td> <table id="Table_02" width="86" height="102" border="0" cellpadding="0" cellspacing="0"> <tr> <td> [img]images/window_14.gif[/img]</td> </tr> </table></td> </tr> </table> </body> </html> [/code:d500c] create another file called : grim_style.css and paste this: [code:d500c].content_cell { color:#FFFFFF; background-image:url(images/window_03.gif) } [/code:d500c] save the grim_style.css in the same dir as the .html |
[quote="Grim_Reaper":d4a30]Judas: [img]http://img151.echo.cx/img151/2171/window032dd.gif[/img]
Sniper101: When you do that (no image) it makes it one solid color, I want to keep the image and have text overlayed.[/quote:d4a30] ive had luck with it before so...w/e though |
Thank you very much Judas! +1 karma.
|
Slices. eek: annoy:
|
[quote="Mr.Buttocks":56dcd]Slices. eek: annoy:[/quote:56dcd]
|
You could also try setting that image as the background of its cell in the table...like so:
[code:4c5f7]<td background="images/window_03.gif" width="314" height="274">TEXT GOES HERE</td>[/code:4c5f7] |
All times are GMT -6. The time now is 12:17 AM. |
Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.