![]() |
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] |
Quote:
|
it works but its not valid html
from : http://validator.w3.org/ Line 29, column 30: there is no attribute "BACKGROUND" <td background="images/window_03.gif" width="314" height="274">TE |
Uuuum on all of my websites I use iframes:
[code:99f7b]<iframe src="home.html" name="iframe" frameborder="0" width="" height=""></iframe>[/code:99f7b] And when you try to link something it would look like: [code:99f7b]<a href="home.html" target="iframe">[/code:99f7b] That makes it load in the iframe. If you need help (if you even try this method) catch me on aim. Usually you just put that code in place of your image that you want to have the iframe over, and then make the image you replaced the background of all your pages so it gives the effect of the text being over it. It's basically a page inside a page, so it saves the time of loading all the same images over again. Very easy when you get the hang of things. |
Quote:
|
Quote:
|
[img]http://www.latelatecrew.net/zoner/zonesignal.jpg[/img]
|
+1 ha
|
Quote:
-1 Sycophant. |
Not too sure if this is what Proteus was talking about but now I am finishing up the site and so forth and also making a new one for something else. I am using the code Judas posted. How can I make it so that area with the text has its own scrollbars and whatever so I can always add more and more info and I can just scroll that area to read it?
|
Yeah, it's exactly what Proteus was talking about. It's called an Iframe. Use the code he provided
|
Ok cool, I wasn't too sure.
|
I am not doing this right, how would I go about making that image the background for it and adding text over it? The code is on the first page...
|
i ve never used iframes before but ... you can use that style sheet with any tag that supports the class attribute. so if you use iframe what ever tag holds the image just use class="content_cell" and it will work the same way.
|
All times are GMT -6. The time now is 08:42 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.