473,396 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Float text or tables

24
I have desiged a web page with adobe photoshop..but im trying to figure out how i can float text or tables on top of what have already done with making the images shift. If there is a way to make it float it would be greatly appreciatied.

the url of the page im developing is Link

thank you
Apr 12 '07 #1
7 3148
nomad
664 Expert 512MB
What do you mean by float.

The only way I can think of is
1. first have your background Transparent.
2. add layers (F11) to your project.
with layers you can build images, text on top of each other.

nomad
Apr 12 '07 #2
KevinADC
4,059 Expert 2GB
Are you asking how to do it with photoshop or usng html/css?
Apr 12 '07 #3
codeex
24
i want to make it text so when people use search engines it will pop up. with photoshop it will make it an image and the search engines wont pick it up. so im trying to figure out how to place text, and a few tables on the page itself with out moving the other tables i already have on there.
thank you
Apr 12 '07 #4
KevinADC
4,059 Expert 2GB
normally if you want to display text over an image you make the image the back-ground of whatever element it is in. You need to read some HTML/CSS resources and get some knowledge about basic HTML/CSS syntax and such.
Apr 12 '07 #5
codeex
24
I know basic html. i thought there was a way to position text on your page with disturbing the other elemets. this is the code i have so far. the problem is when i add text to it, all my images move and make it look horrible.

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <title>testpage2</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <!-- ImageReady Preload Script (testpage2.psd) -->
  6. <script type="text/javascript">
  7. <!--
  8.  
  9. function newImage(arg) {
  10.     if (document.images) {
  11.         rslt = new Image();
  12.         rslt.src = arg;
  13.         return rslt;
  14.     }
  15. }
  16.  
  17. function changeImages() {
  18.     if (document.images && (preloadFlag == true)) {
  19.         for (var i=0; i<changeImages.arguments.length; i+=2) {
  20.             document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
  21.         }
  22.     }
  23. }
  24.  
  25. var preloadFlag = false;
  26. function preloadImages() {
  27.     if (document.images) {
  28.         HOME_over = newImage("images/HOME-over.gif");
  29.         ABOUT_over = newImage("images/ABOUT-over.gif");
  30.         OC_over = newImage("images/OC-over.gif");
  31.         PS_over = newImage("images/PS-over.gif");
  32.         PHOTOS_over = newImage("images/PHOTOS-over.gif");
  33.         NEW_over = newImage("images/NEW-over.gif");
  34.         SERVICES_over = newImage("images/SERVICES-over.gif");
  35.         GALLERY_over = newImage("images/GALLERY-over.gif");
  36.         FAQ_over = newImage("images/FAQ-over.gif");
  37.         CONTACT_over = newImage("images/CONTACT-over.gif");
  38.         preloadFlag = true;
  39.     }
  40. }
  41.  
  42. // -->
  43. </script>
  44. <!-- End Preload Script -->
  45. </head>
  46. <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="preloadImages();">
  47. <!-- ImageReady Slices (testpage2.psd) -->
  48. <table id="Table_01" width="1001" height="1250" border="0" cellpadding="0" cellspacing="0">
  49.     <tr>
  50.         <td colspan="5">
  51.             <img src="images/home_01.gif" width="1000" height="129" alt=""></td>
  52.         <td>
  53.             <img src="images/spacer.gif" width="1" height="129" alt=""></td>
  54.     </tr>
  55.     <tr>
  56.         <td colspan="4">
  57.             <a href="home.html"
  58.                 onmouseover="changeImages('HOME', 'images/HOME-over.gif'); return true;"
  59.                 onmouseout="changeImages('HOME', 'images/HOME.gif'); return true;"
  60.                 onmousedown="changeImages('HOME', 'images/HOME-over.gif'); return true;"
  61.                 onmouseup="changeImages('HOME', 'images/HOME-over.gif'); return true;">
  62.                 <img name="HOME" src="images/HOME.gif" width="155" height="29" border="0" alt=""></a></td>
  63.         <td rowspan="14">
  64.             <img src="images/home_03.gif" width="845" height="1121" alt=""></td>
  65.         <td>
  66.             <img src="images/spacer.gif" width="1" height="29" alt=""></td>
  67.     </tr>
  68.     <tr>
  69.         <td colspan="4">
  70.             <a href="about.html"
  71.                 onmouseover="changeImages('ABOUT', 'images/ABOUT-over.gif'); return true;"
  72.                 onmouseout="changeImages('ABOUT', 'images/ABOUT.gif'); return true;"
  73.                 onmousedown="changeImages('ABOUT', 'images/ABOUT-over.gif'); return true;"
  74.                 onmouseup="changeImages('ABOUT', 'images/ABOUT-over.gif'); return true;">
  75.                 <img name="ABOUT" src="images/ABOUT.gif" width="155" height="30" border="0" alt=""></a></td>
  76.         <td>
  77.             <img src="images/spacer.gif" width="1" height="30" alt=""></td>
  78.     </tr>
  79.     <tr>
  80.         <td colspan="3">
  81.             <a href="#"
  82.                 onmouseover="changeImages('OC', 'images/OC-over.gif'); return true;"
  83.                 onmouseout="changeImages('OC', 'images/OC.gif'); return true;"
  84.                 onmousedown="changeImages('OC', 'images/OC-over.gif'); return true;"
  85.                 onmouseup="changeImages('OC', 'images/OC-over.gif'); return true;">
  86.                 <img name="OC" src="images/OC.gif" width="154" height="54" border="0" alt=""></a></td>
  87.         <td rowspan="12">
  88.             <img src="images/home_06.gif" width="1" height="1062" alt=""></td>
  89.         <td>
  90.             <img src="images/spacer.gif" width="1" height="54" alt=""></td>
  91.     </tr>
  92.     <tr>
  93.         <td colspan="3">
  94.             <img src="images/home_07.gif" width="154" height="1" alt=""></td>
  95.         <td>
  96.             <img src="images/spacer.gif" width="1" height="1" alt=""></td>
  97.     </tr>
  98.     <tr>
  99.         <td colspan="2">
  100.             <a href="#"
  101.                 onmouseover="changeImages('PS', 'images/PS-over.gif'); return true;"
  102.                 onmouseout="changeImages('PS', 'images/PS.gif'); return true;"
  103.                 onmousedown="changeImages('PS', 'images/PS-over.gif'); return true;"
  104.                 onmouseup="changeImages('PS', 'images/PS-over.gif'); return true;">
  105.                 <img name="PS" src="images/PS.gif" width="153" height="56" border="0" alt=""></a></td>
  106.         <td rowspan="10">
  107.             <img src="images/home_09.gif" width="1" height="1007" alt=""></td>
  108.         <td>
  109.             <img src="images/spacer.gif" width="1" height="56" alt=""></td>
  110.     </tr>
  111.     <tr>
  112.         <td colspan="2">
  113.             <a href="photo.html"
  114.                 onmouseover="changeImages('PHOTOS', 'images/PHOTOS-over.gif'); return true;"
  115.                 onmouseout="changeImages('PHOTOS', 'images/PHOTOS.gif'); return true;"
  116.                 onmousedown="changeImages('PHOTOS', 'images/PHOTOS-over.gif'); return true;"
  117.                 onmouseup="changeImages('PHOTOS', 'images/PHOTOS-over.gif'); return true;">
  118.                 <img name="PHOTOS" src="images/PHOTOS.gif" width="153" height="43" border="0" alt=""></a></td>
  119.         <td>
  120.             <img src="images/spacer.gif" width="1" height="43" alt=""></td>
  121.     </tr>
  122.     <tr>
  123.         <td>
  124.             <a href="#"
  125.                 onmouseover="changeImages('NEW', 'images/NEW-over.gif'); return true;"
  126.                 onmouseout="changeImages('NEW', 'images/NEW.gif'); return true;"
  127.                 onmousedown="changeImages('NEW', 'images/NEW-over.gif'); return true;"
  128.                 onmouseup="changeImages('NEW', 'images/NEW-over.gif'); return true;">
  129.                 <img name="NEW" src="images/NEW.gif" width="152" height="36" border="0" alt=""></a></td>
  130.         <td rowspan="2">
  131.             <img src="images/home_12.gif" width="1" height="37" alt=""></td>
  132.         <td>
  133.             <img src="images/spacer.gif" width="1" height="36" alt=""></td>
  134.     </tr>
  135.     <tr>
  136.         <td>
  137.             <img src="images/home_13.gif" width="152" height="1" alt=""></td>
  138.         <td>
  139.             <img src="images/spacer.gif" width="1" height="1" alt=""></td>
  140.     </tr>
  141.     <tr>
  142.         <td colspan="2">
  143.             <a href="#"
  144.                 onmouseover="changeImages('SERVICES', 'images/SERVICES-over.gif'); return true;"
  145.                 onmouseout="changeImages('SERVICES', 'images/SERVICES.gif'); return true;"
  146.                 onmousedown="changeImages('SERVICES', 'images/SERVICES-over.gif'); return true;"
  147.                 onmouseup="changeImages('SERVICES', 'images/SERVICES-over.gif'); return true;">
  148.                 <img name="SERVICES" src="images/SERVICES.gif" width="153" height="34" border="0" alt=""></a></td>
  149.         <td>
  150.             <img src="images/spacer.gif" width="1" height="34" alt=""></td>
  151.     </tr>
  152.     <tr>
  153.         <td rowspan="2">
  154.             <a href="#"
  155.                 onmouseover="changeImages('GALLERY', 'images/GALLERY-over.gif'); return true;"
  156.                 onmouseout="changeImages('GALLERY', 'images/GALLERY.gif'); return true;"
  157.                 onmousedown="changeImages('GALLERY', 'images/GALLERY-over.gif'); return true;"
  158.                 onmouseup="changeImages('GALLERY', 'images/GALLERY-over.gif'); return true;">
  159.                 <img name="GALLERY" src="images/GALLERY.gif" width="152" height="34" border="0" alt=""></a></td>
  160.         <td>
  161.             <a href="#"
  162.                 onmouseover="changeImages('SERVICES', 'images/SERVICES-over.gif'); return true;"
  163.                 onmouseout="changeImages('SERVICES', 'images/SERVICES.gif'); return true;"
  164.                 onmousedown="changeImages('SERVICES', 'images/SERVICES-over.gif'); return true;"
  165.                 onmouseup="changeImages('SERVICES', 'images/SERVICES-over.gif'); return true;">
  166.                 <img src="images/SERVICES-25.gif" width="1" height="1" border="0" alt=""></a></td>
  167.         <td>
  168.             <img src="images/spacer.gif" width="1" height="1" alt=""></td>
  169.     </tr>
  170.     <tr>
  171.         <td rowspan="4">
  172.             <img src="images/home_17.gif" width="1" height="836" alt=""></td>
  173.         <td>
  174.             <img src="images/spacer.gif" width="1" height="33" alt=""></td>
  175.     </tr>
  176.     <tr>
  177.         <td>
  178.             <a href="#"
  179.                 onmouseover="changeImages('FAQ', 'images/FAQ-over.gif'); return true;"
  180.                 onmouseout="changeImages('FAQ', 'images/FAQ.gif'); return true;"
  181.                 onmousedown="changeImages('FAQ', 'images/FAQ-over.gif'); return true;"
  182.                 onmouseup="changeImages('FAQ', 'images/FAQ-over.gif'); return true;">
  183.                 <img name="FAQ" src="images/FAQ.gif" width="152" height="35" border="0" alt=""></a></td>
  184.         <td>
  185.             <img src="images/spacer.gif" width="1" height="35" alt=""></td>
  186.     </tr>
  187.     <tr>
  188.         <td>
  189.             <a href="#"
  190.                 onmouseover="changeImages('CONTACT', 'images/CONTACT-over.gif'); return true;"
  191.                 onmouseout="changeImages('CONTACT', 'images/CONTACT.gif'); return true;"
  192.                 onmousedown="changeImages('CONTACT', 'images/CONTACT-over.gif'); return true;"
  193.                 onmouseup="changeImages('CONTACT', 'images/CONTACT-over.gif'); return true;">
  194.                 <img name="CONTACT" src="images/CONTACT.gif" width="152" height="36" border="0" alt=""></a></td>
  195.         <td>
  196.             <img src="images/spacer.gif" width="1" height="36" alt=""></td>
  197.     </tr>
  198.     <tr>
  199.         <td>
  200.             <img src="images/home_20.gif" width="152" height="732" alt=""></td>
  201.         <td>
  202.             <img src="images/spacer.gif" width="1" height="732" alt=""></td>
  203.     </tr>
  204. </table>
  205. <!-- End ImageReady Slices -->
  206. </body>
  207. </html>
Apr 13 '07 #6
KevinADC
4,059 Expert 2GB
thats because your webpage is one big table and the images are all contents of a table cell instead of being the back-ground property of the cell. Makes the image(s) the back-ground property of the cell you want the text to display over the image.

background-image
Apr 13 '07 #7
drhowarddrfine
7,435 Expert 4TB
One of a hundred reasons why you should never use tables for layout.
Apr 13 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Robert | last post by:
I created two pages. One using CSS and the other using a table. I'd like the css version to work like the table version. The problem arises when the full image doesn't fit in the window. Click...
10
by: Jesper Rønn-Jensen | last post by:
Hope you can help me out on this one. I have a a box that is floated right. Below (in the normal float) I have a wide table. <body> <div style="float:right; width:200px">...</div> <p>This...
2
by: Marek Mänd | last post by:
I have simple structure like: <div> <h3 style="text-align:center;"> <span style="float:right;">input type="image"/></span> <span style="float:left;">input type="image"/></span> boxes titlebar...
16
by: Wolfgang Meier | last post by:
Hi, Although it might seem like I am firing out random posts in quick succession this matter is indeed one I thought about for quite some time without coming to a conclusion: Why is it that...
2
by: Matthieu Tudury | last post by:
Hi, i got a weird problem with decimal numbers, Here is a test sample : float a, b, c; double da, db, dc; da = 313.83; db = 262.4; dc = db -da;
0
by: McGeeky | last post by:
Hi. I am using DIVs for lay outs rather than tables but cannot resolve a catch 22. I need to use the float: left so that I can get DIVs to line up in rows however, float : left does not respect the...
0
by: Dessip | last post by:
Hey, The code that follows im having problems with, i think tis the CSS, but i dont have a clue of fixing it, i have tried any things but without the float:Left there is no point the folloing...
3
by: Harry | last post by:
Using IE7, I'm trying to display a table in a horizontal manner by floating the rows. The following html does not work, displaying the table vertically as if the rows were not floated. This same...
2
by: shannona | last post by:
I've been banging my head against an interaction between a table and float element. I want the two of them to together take up 100% of the width of their container. If the table cells' content...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.