HTML - Tables, Text, Pictures And Cell Backgrounds= Help!
Hi, I can make basic websites but I am not very skilled in web design. I am in need of help.
Since I made the website inside Photoshop using slices, I need to create a table at the center of the website. Since the center of the website is made of slices of jpeg images, I cannot create a table nor add any text here without disturbing the images. I can get around this by making the pictures part of the cell background, but when I try and remove the images in the center after, the cell background images repeat over and over, and the whole website is unaligned and a big mess! Below is a picture of what I mean... I have included a zip file containing my html pages and image folder. Please download it he http://homepage.ntlworld.com/stephan.../Portfolio.zip The file I need help with is work.html. I can ensure you it's virus free. I want to show my photoshop work off on a website, this is the reason why I am making this website. Similar TutorialsHello, I am new to these forums, and I greet you all Here is the problem I am having. I have a 3x3 table, and I want to use the 6 bottom cells to display linkable pictures of merchandise. I want the cells to display a different picture each time the customer visits the website. I found a javascript for diaplying a random, linkable, picture each time someone visits, but the problem is you can't put the script in each cell. It conflicts with itself somehow. The pictures rotate, but the links only go to the last set of links in the last cell. What is the best method I can use to accomplish my goal? Or can the script below be edited in such a way as to be useable in each cell? Thanks! Code: <script language="javascript"> /* Random image slideshow- By Tyler Clarke (EMAIL REMOVED - Send PM to This User Instead) For this script and more, visit http://www.javascriptkit.com */ var delay=0 //set delay in miliseconds var curindex=0 var randomimages=new Array() randomimages[0]=["picturehere.jpg","linkhere"]; randomimages[1]=["picturehere.jpg","linkhere"]; randomimages[2]=["picturehere.jpg","linkhere"]; randomimages[3]=["picturehere.jpg","linkhere"]; var preload=new Array() for (n=0;n<randomimages.length;n++) { preload[n]=new Image() preload[n].src=randomimages[n] } var First=Math.floor(Math.random()*(randomimages.length)); var LnkURL=randomimages[First][1]; document.write('<img onclick="Link();" name="defaultimage" src="'+randomimages[First][0]+'">') function Link(){ if (LnkURL){ window.location=LnkURL; } } function rotateimage() { if (curindex==(tempindex=Math.floor(Math.random()*(randomimages.length)))){ curindex=curindex==0? 1 : curindex-1 } else curindex=tempindex LnkURL=randomimages[curindex][1]; document.images.defaultimage.src=randomimages[curindex][0]; } setInterval("rotateimage()",delay) </script> hi guys, how do i move certain things left or right using tables and cell spacing. this is the code im using so far but i cant see how i can position these components left or right horizontally. - <style type="text/css"> ul { margin: 10px; padding:70px 0px; list-style-type:none; text-align:right; } ul li { display: inline; margin:20 20px; } ul a { padding:4px 10px; font-family:'trebuchet ms',sans-serif; font-size:12px; color:#000; text-decoration:none; } ul a:hover { border-color:#000; color:#fff; background-color:#c6c5c4; } </style> thanks I'm green at html. I designed a webpage 10years ago using html for dummies, but I have not touched it since. Things have changed and I have forgotten, but google has helped me. What I do struggle with is having pictures side by side and text under them. using: <a href="6922_13_x.jpg"><img src="6922_13_x_thumbnail.jpeg" width="335" height="282" /></a> <a href="6969_01_x.jpg"><img src="6969_01_x_thumbnail.jpeg" width="125" height="280" /></a> gets the thumbnails side by side, but once adding <p>text</p> they change position. Help would be appreciated deply. http://www.reliablegaming.com/test/games2.html I cant seem to get text under each picture, only on the sides....could someone do 1 and resend code so i can see how you did it? Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Welcome to Reliablegaming</title> <link href="style/style.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- .style1 { font-size: 14px; font-weight: bold; } --> </style> </head> <body> <table width="969" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="15" class="l-bg"><img src="images/bg-left.gif" alt="Reliablegaming" width="15" height="19" /></td> <td align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="940" height="208"> <param name="movie" value="images/top01.swf" /> <param name="quality" value="high" /> <embed src="images/top01.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="940" height="208"></embed> </object></td> </tr> <tr> <td><img src="images/barbg.gif" alt="Reliablegaming" width="940" height="58" border="0" usemap="#Map" href="#" /></td> </tr> <tr> <td align="center" valign="top" class="bg1"><blockquote><span class="style1"><u>ReliableGaming - Game Packages</u></span><br> <p align="center"><a href="Drag to a file to make a link."><img src="images/bf2.jpg" width="100" height="100" /></a> <img src="images/bf2142.jpg" alt="" width="100" height="100" /> <img src="images/css.jpg" alt="" width="100" height="100" /> <img src="images/cs1.6.jpg" alt="" width="100" height="100" /> <img src="images/cscz.jpg" alt="" width="100" height="100" /></p> <p align="center"><img src="images/dod.jpg" alt="f" width="100" height="100" /> <img src="images/dods.jpg" alt="f" width="100" height="100" /> <img src="images/tf2.jpg" alt="f" width="100" height="100" /> <img src="images/css.jpg" alt="f" width="100" height="100" /> <img src="images/css.jpg" alt="f" width="100" height="100" /></p> <p align="center"><img src="images/css.jpg" alt="f" width="100" height="100" /> <img src="images/css.jpg" alt="f" width="100" height="100" /> <img src="images/css.jpg" alt="f" width="100" height="100" /> <img src="images/css.jpg" alt="f" width="100" height="100" /> <img src="images/css.jpg" alt="f" width="100" height="100" /></p> <p align="center"><img src="images/css.jpg" alt="rwer" width="100" height="100" /> <img src="images/css.jpg" alt="werwer" width="100" height="100" /> <img src="images/css.jpg" alt="werwe" width="100" height="100" /> <img src="images/css.jpg" alt="ewrwe" width="100" height="100" /> <img src="images/css.jpg" alt="rwer" width="100" height="100" /></p> <p align="center"> </p> <p align="center"> </p> </blockquote> </td> </tr> <td height="30" align="center" valign="middle" class="bg1"><a href="#" class="footerlink">Home</a> | <a href="terms.html" class="footerlink">Terms of Service</a> | <a href="http://www.reliablegaming.com/modernbill/order/?v=1" class="footerlink">Packages</a> | <a href="forums/" class="footerlink">Forums</a> | <a href="mailto:admin@reliablegaming.com" class="footerlink">Contact Us</a> | <a href="index.html" class="footerlink">ReliableGaming</a></td> <tr> <td><img src="images/footer.gif" width="939" height="74" border="0" /></td> </tr> </table></td> <td width="15" class="r-bg"><img src="images/bg-right.gif" alt="Reliablegaming" width="15" height="19" /></td> </tr> </table> <map name="Map" id="Map"><area shape="rect" coords="152,4,263,26" href="mailto:admin@reliablegaming.com" /> <area shape="rect" coords="34,7,113,25" href="forums/" /> <area shape="rect" coords="734,6,855,25" href="/support.html" /> </map> </body> </html> I'm a beginner in HTML. I would like to make a row with two cells, the first one being 200 pixels wide and the second cell stretching out to fill up the rest of the horizontal space... I thought that putting in width=100% in that <td> tag would do it but if I do that, that cell covers up my first cell (the 200 px one). How can I go about doing that? Thanks!! how can i place text and pictures where i want i would be nice by using cordinates but i don't know how... Hi, I usually use frames to split my pages into sections. No problem the But you can think that having a page with over 25 frames defined in the HTML code is quite confusing at times. I wanted to ask if and how it is possible to position an image/paragraph/table/etc. at exact pixel-coordinates. My example: I want to place an image at (50px|50px) and a table at (200px|100px) Thanks in advance.... PS: (x|y) Does anyone have an idea how I can make the text in the TD-tags fit 100% in its cell. Help would be highly appreciated. Quote: <html> <style> .text {text-transform: uppercase; } </style> <body> <center> <table width="500" border="1"> <tr> <td> <span class="text">Text nrjkfb bfd df bfdfbhj</span> </td> </tr> <tr> <td> <span class="text">Text hjkbjkbjk</span> </td> </tr> </table> I'm just getting into making pages again, after 3 years off I'm REALLY rusty! Here is the code: <div align="center"> <table border="0" width="635" height="490" cellspacing="0" cellpadding="0"> <tr> <td height="43" width="635"> <img border="0" src="AURORENOVA.jpg" width="640" height="168"></td> </tr> <tr> <td height="322" width="635"> <h1>Monday January 22nd 2007</h1> <p>So here is the first update.</p> </td> </tr> </table> </div> I just want to know how I can align the text in the cell to the top of the cell instead of having it hovering in the center. When I do add more text the position changes, but I just want it all to align to the top. Thanks. I have a cell text linked to a css stylesheet. the style for that "text" is as follows: .text { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #333333; text-align:left } How do I align the text to the top of the cell rather than middle? Hi, I'm working on an ecommerce website, my problem is that I cannot make some text in a cell wrap. Here's the details: The text in this particular cell is page numbers, and it is dynamically generated, so it changes depending on what the user selects in the shop. For example, if they are viewing a category that only has a couple pages of product, it's fine. But if they are viewing a category that has a couple hundred pages of product, the page number goes out horizontal in a straight line, and obviously causes some serious horizontal scrolling. I've tried setting a fixed width for the cell both in the <td> with width="whatever" and that didn't work, I tried setting it in the stylesheet with CSS but it still breaks the table. I just want it to wrap down a line when it gets to a certain width. Any ideas? I have a site which I regularly update but rather than using a flat colour for some of the cells I am now using images as a cell background. This obviously has ramifications when putting text over the top cause the depth of colour means the text can be hard to read. What I want to do is create a layer in the cell which means that the text sits on a opaque layer which is lighter than the background image. My intended desired effect would be similar to what is at http://iankearns.dialnet.com/images/desired_effect.jpg or as attached but rather than doing this as an image I would prefer to do it as HTML or DHTML (is possible) as this would mean changing the text easier Thanks to anyone who can assist I am attempting to have a table cell that is outlined. No matter how much text ends up in that table cell, the top part should align to the top, and the bottom part should align to the bottom. The cell size/border needs to be consistent across the row (which is why I didn't just float some divs). I have spent hours looking online, and have found various "solutions" that do not in fact seem to work. Here is my 'sample' code. I know that the valign isn't working, I just put it in there so it makes sense "logically" what I am trying to do. Thank you in advance for any help you can provide. Code: <table width="600"> <tr> <td style="border:1px grey solid; width:150px;"> <table valign="top"> <tr> <td>Float at the top!Float at the top!Float at the top!Float at the top!Float at the top!Float at the top!Float at the top!Float at the top!Float at the top!Float at the top!Float at the top!Float at the top!</td> </tr> </table> <table valign="bottom"> <tr> <td>Float at the bottom!</td> </tr> </table> </td> <td style="border:1px grey solid; width:150px;"> <table valign="top"> <tr> <td>Float at the top!Float at the top!Float at the top!Float at the top!Float at the top!Float at the top!</td> </tr> </table> <table valign="bottom"> <tr> <td>Float at the bottom!</td> </tr> </table> </td> <td style="border:1px grey solid; width:150px;"> <table valign="top"> <tr> <td>Float at the top!</td> </tr> </table> <table valign="bottom"> <tr> <td>Float at the bottom!</td> </tr> </table> </td> <td style="border:1px grey solid; width:150px;"> <table valign="top"> <tr> <td>Float at the top!Float at the top!Float at the top!</td> </tr> </table> <table valign="bottom"> <tr> <td>Float at the bottom!</td> </tr> </table> </td> </tr> </table> G'day guys, This will probably be a simple one for you. I have a table set to 150px, it has to be this width, and I need to have text indented in each cell. Trouble is, when the text wraps to the next line in the cell, it doesn't stay inline or indented. How do I get the text to stay indented when it travels to the next line? Thanks very much for any help you can give me. Cheers, Jamie When you format some text in a table cell (at least with <p> or <li> tags), some browsers drop it down one line, so that it can't fully valign top. Apparently Safari and Firefox do this. (IE seems to not do it - it valigns it to the top). Others may exhibit this behaviour, but these are all I've tested. Here is an example (view with Safari or Firefox to see problem): http://www.fisheyemedia.net/test/ Is there any way around this? Maybe with CSS? I have a more complex table in 2 columns and am trying to get vertical alignments to match. Thanks. Hi everyone: Any help appreciated. Objective: To have three equally sized and spaced images arranged horizontally, with their size set automatically by the size of the window. Development: I'm using a Mac, and I don't have ready access to a PC to experiment. What I tried: Code: <table> <tr> <td><img src = "a.png" style = "width: 100%" /></td> <td><img src = "b.png" style = "width: 100%" /></td> <td><img src = "c.png" style = "width: 100%" /></td> </tr> </table> <p class = "caption">A caption for the 3 images</p> <p class = "legend" >A legend for the three images</p> What happened: This works perfectly in Safari and Firefox (Mac) and Firefox under Vista, but in Internet Explorer under Vista , the images are HUGE - the unscaled size of the originals. What I think is the reason: IE is taking 100% to be relative to the width of the body element, not the td element. What I don't want to have to do: Use fixed sizes or calculate the sizes on the fly. What I'm trying now: removing the table and using a div, and inside that, setting the image width to 33% and floating one right and one left. What's the trick to get around this IE "gotcha" please? Thanks from a newbie. hi, i have a jsp page, in this page i am displaying data retrieved from mysql database. Now the problem is i must color table cell based on cell value. how to implement this.please give me an sample or working code foe this problem.( any code is accepted) preferably html or javascript. i.e if cell value is "late" then display that cell in red color else display the cell in green color please help me. Thanks ad Regards Akash http://www.miamiknight.com/table.htm How do I get the text in all 3 columns to align at the top? I had to add breaks or rows in column 3 at the bottom to bring the text higher and then column 2 had the text drop lower. Is there an easy way to always have text align at the tops of each column? I have tables containing text in them but the background does not appear its just a white error background the text appears however. Heres my html i don't know whats wrong. Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Pink Pirates</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .style12 {font-family: Tahoma; color: #999999; font-weight: bold; } .style13 {font-size: 9px; color: #666666; } .style14 {color: #CCCCCC} --> </style> </head> <link href="css.css" rel="STYLESHEET" type="text/css"> <body> <center> <table width="776" border="0" cellpadding="0" cellspacing="0" background="images/index_28.jpg"> <!--DWLayoutTable--> <tr> <td width="59" rowspan="2" valign="top"><img src="images/sides_01.jpg" width="59" height="459"></td> <td height="363" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="660" height="69" valign="top"><img src="images/index_02.jpg" width="230" height="69"><img src="images/index_03.jpg" width="201" height="69"><img src="images/index_04.jpg" width="229" height="69"></td> </tr> <tr> <td height="150" valign="top"><img src="images/index_06.jpg" width="371" height="171"><img src="images/index_07.jpg" width="289" height="171"></td> </tr> <tr> <td height="17" valign="top"><img src="images/index_08.jpg" width="660" height="17"></td> </tr> <tr> <td height="27" valign="top"><a href="index.php"><img src="images/index_09.jpg" alt="Home Page" width="104" height="27" border="0"></a><a href="team.php"><img src="images/index_10.jpg" alt="Our Team" width="101" height="27" border="0"></a><a href="videos.php"><img src="images/index_11.jpg" alt="Demo Videos and Screenshots" width="78" height="27" border="0"></a><a href="/forums/"><img src="images/index_12.jpg" alt="Community Message Boards" width="142" height="27" border="0"></a><a href="about.php"><img src="images/index_13.jpg" alt="About Our Clan" width="100" height="27" border="0"></a><a href="signup.php"><img src="images/index_14.jpg" alt="Join Our Team" width="135" height="27" border="0"></a></td> </tr> <tr> <td height="40" valign="top"><img src="images/index_15.jpg" width="660" height="40"></td> </tr> <tr> <td height="28" valign="top"><img src="images/index_16.jpg" width="660" height="28"></td> </tr> <tr> <td height="11" valign="top"><img src="images/index_17.jpg" width="660" height="11"></td> </tr> </table></td> <td width="57" rowspan="2" valign="top"><img src="images/sides_05.jpg" width="57" height="459"></td> </tr> <tr> <td width="231" height="163" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="231" height="122" valign="top"><img src="images/index_18.jpg" width="231" height="28"><img src="images/tdw_22.jpg" width="231" height="60" border="0"></a><img src="images/cathead_25.jpg" width="231" height="34"></td> </tr> <table> <tr> <td height="193" valign="top">text goes here blah</ </div></td> </tr> </table> </td> <td width="429" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="429" height="28" valign="top"><img src="images/index_19.jpg" width="429" height="28"></td> </tr> <tr> </tr> <tr> <td height="34" valign="top"><img src="images/catheadnews_26.jpg" width="429" height="34">dfdfdfdfdfdfd</td> </tr> <tr> <td height="193" valign="top"><div style="margin-left:10px; margin-right:10px"><span class="style12"></span><br> <span class="style13"></span><br> <span class="style14"> </tr> </table></td> </tr> </table> <table width="776" border="0" cellpadding="0" cellspacing="0" background="images/index_30.jpg"> <tr> <td width="136" height="32"></td> <td width="509"> </td> <td width="131"></td> </tr> <tr> <td height="12"></td> <td valign="top"><div align="center">Copyright PinkPirates.tk. All rights reserved. </div></td> <td></td> </tr> </table> </center> </body> </html> Ok, so when I get this answer Im probably gonna feel like a fool, but here it goes... At the bottom of my page, I am placing a paragraph on the left side, and on the right side and I want to place a square box. But I cant figure it out, and quite frankly, it is making me very mad. If someone could please tell me the code or give me help, I would appreciate it. Thanks! |