HTML - Alt Atrribute For Table Cell Background
Hi everyone,
I was wondering whether I can add an alt attribute to a table cell background image. I tried to add it in the code after the image address, but it doesn't work. Is there another way? Thanks! Similar TutorialsHi, How can I set a background gradient for a cell in a table? (i.e., start colour:#222222; end colour:#000000) The size of the cell may vary so a tiled image wouldn't work. Thanks. Hi I want to addd a image for background so i can postion it and not have it repeat : for for a table cell if u see my link below its the purple table cell that has the Bomboniere Adelaide as the heading i only want the background image in that cell - thanks in advance http://weddingsmadeeasy.com.au/adelaide/Bomboniere.html OK I am so new to HTML I can't even spell it. I have a industrial HMI the has some custom webpage features to it and I would like to learn how to build the attached Table. I am not looking for someone to do this for me I am looking for some pointers. Here is a link to the device that I am going to use and a quick breakdown of how they do things. This statement that I fully understand, I am out of my knowledge base so that is why I am here "Although the HTML code will be explained or commented through this document, a basic understanding is required to create a proper web site." http://www.redlion.net/Support/TechN...ace/TNOI33.pdf I don't know what CSS is ? I got a few examples from all over the web some from http://www.quackit.com. and just can't figure out the layout and cell colors. I plan on changing the background color on the cell to the right of the descriptor depending on the cell value. Red if <100, Green >100 I would like to start with a cell layout that I can then link values to and from the HMI per the instructions in the Tech Note above. I have played with this device just basically copy and paste the above note I have gotten that working before. Thanks for taking your time to at least read this post from a NOOB. Hello all, First time posting to the forums here. I'm creating a table and each row represents a "tab" of the UI. Each cell has a background image that looksl ike this. however, when I render my table and have text in the cell, the right edge of the tab is chopped off like this.. Any recommendations on some CSS or table attributes that I can aplly to make both rounded ends of the background image appear? I've tried turning off table borders, cell spacing and cell padding. Any help would be greatly appreciated. Thanks. So I decided to see if I could make my site XHTML 1.0 Strict-compliant. Here's the main page on my test server I'd be thrilled with it if I could do 3 things: - Set the background color of the left column to match the color behind the fonts. Is there a CSS class I can create and set the cells to that class? - Remove the border around clickable images. - Get the spacing between the menu options on the left to look the way it does on the other pages in the site. If you click any of the pages on my actual site you can see the look I'm going for. Thanks as always for the help! Joshua 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 The table itself is working fine, but the size of each cell is not correct in Firefox. Here is a screenshot of what is happening: http://img35.imageshack.us/img35/1938/tabletroubles.gif Here is the head of my page, the css for the table is he HTML Code: <style type="text/css"> #cat table {border:0px solid #333333; cell-padding:0; cell-spacing:0; align=center} #cat tr {align=center} #cat td {font-size: 13px; font-family=tahoma; font-weight: bold; padding: 0px; border:0px solid #333333; align=center;} #cat td a {text-decoration: none; color:#757575; background-color: white; display:block; height=23; background-image: url(linkbg1.gif); align=center;} #cat td a:hover {background-color: #333333; font-weight: bold; text-decoration: none;color: #ffffff; background-image: url(linkbg2.gif); align=center;} </style> and here is the table code, located in the body of the page: HTML Code: <div style="Height:53px; overflow:auto; width:900px; position:absolute; top:0; left:0"> <TABLE bgcolor=#333333 cellspacing=0; cellpadding=0;><tr><td> <div id="cat"> <table width=900; cellpadding:0px; cellspacing:0px> <tr align=center> <td width=20%> <font face=tahoma><a href="home.html">Home</a></font> </td> <td width=20%><center><font face=tahoma><a href="openings.html" target="_top">Openings</a></font></center></td> <td width=20%><center><font face=tahoma><a href="dance.html" target="_top">Dance</a></font></center></td> <td width=20%><center><font face=tahoma><a href="projects.html" target="_top">Projects</a></font></center></td> <td width=20%><center><font face=tahoma><a href="vocaloid.html" target="_top">Vocaloid</a></font></center></td> </tr> <tr> <td width=20%><center><font face=tahoma><a href="fanflashes.html" target="_top">Fanflashes</a></font></center></td> <td width=20%><center><font face=tahoma><a href="caramelldansen.html" target="_top">Caramelldansen</a></font></center></td> <td width=20%><center><font face=tahoma><a href="cosplay.html" target="_top">Cosplay</a></font></center></td> <td width=20%><center><font face=tahoma><a href="endings.html" target="_top">Endings</a></center></td> <td width=20%><center><font face=tahoma><a href="anime.html" target="_top">Anime Episodes</a></font></font></center></td> </tr> </table> </div> </td></tr></table> </div> A table is nested within another table. The table on the outside has no content, it is there to make a gray border around everything else. If you look at the table in firefox & internet explorer, you'll see that in IE- the table is much thicker than in firefox. How can i make it so that the table in Firefox will have the same thickness as the one in IE? I could really use some help. Thanks! Hello, I am using a template to make a webpage. The background for one of the cells is not covering the entire area. I have looked and looked at this and can not figure it out. Therefore I thought I would ask some pros. Thanks!! Okay, here's what I've got: two nested tables next to each other, both with two cells in them. The bottom cell on the left table is just a filler, and has a background image to complete the layout of the site -- however, since there's no content in it, it doesn't show up. Giving it a set pixel height makes it show up, but I can't do this, as the content in the other table changes. So, I need this cell (the bottom one on the left) to automatically size itself to whatever the other table is. A height="100%" attribute also doesn't work... Help? Thanks. :] I would like to put an image as a background image in a data cell to prevent unauthorized copying (or help prevent thereof). However, when I do this the image begins to repeat itself if the data cell is slightly larger than the image specs. The images are located here at www.gabegarcia.com All images on the left side of the pages is what I would like to make background images without the repeat. What would I have to add to accomplish this? Hi everyone. So I got my template set up to the way I like it and everything is rolling good. I inserted a picture into one of the cells in the table and it shifts everything over. Here is my code: <td width="625" colspan="1" bgcolor="white"> <font type="Arial" size ="5" color="blue"> <b>Floorplan</b><br> <center> <a href="floorplanlarge.jpg"><img src="floorplansmall.jpg" border="0" /></a> </center> </td> I have been working on fixing this for the last hour and am out of ideas on what is going on. The picture is smaller than the cell width range. My picture width is 311 pixels and the cell width is 625 pixels. I dont know if there is code whether its HTML or CSS to prevent the cell from widening. Any help would be appreciated. Also if you need me to provide more detail I can. Thanks. Hello all! I wanted to ask if there is a way to specify certain width sizes for table cells in a table. The thing is that I have a table in one webpage that, if I leave the width of the TD cells unspecified, I usually end up with some cells being very wide because the text that is written inside them is very big and does not roll up automatically and other cells shrink and become very small in order for the total table not to lose its specified length. Can I set a specific width for the cell that gets filled with many words so that the contents of this cell will wrap and not extend so much? Thank you! i want the entire table cell to be the link, not just the text inside any ideas? Hi, I have a template made that my friend made in photoshop and slice the image to be able to put them in html. The problem is when I put too much text the cell on both side of the middle one are resizing too. is there a way to lock them from resizing and get only the cell that i want to resize? I'll put the html code here and thx a lot! BTW When it say: this cell resize verticaly - it mean that I want this cell to resize and not the others 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> <title>web_DIV</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> </head> <body bgcolor="#000000"> <table id="tableau_01" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td rowspan="4" width="50%" height="316" background="images/web_div_01.jpg"> </td> <td colspan="6" width="992" height="61" background="images/web_div_02.jpg"> </td> <td rowspan="4" width="50%" height="316" background="images/web_div_03.jpg"> </td> <td> <img src="images/spacer.gif" width="1" height="61" alt="" /></td> </tr> <tr> <td rowspan="3" width="55" height="255" background="images/web_div_04.jpg"> </td> <td rowspan="3" width="23" height="255" background="images/web_div_05.jpg"> </td> <td width="772" height="26" background="images/web_div_06.jpg"> </td> <td colspan="2" rowspan="3" width="21" height="255" background="images/web_div_07.jpg"> </td> <td width="121" height="26" background="images/web_div_08.jpg"> ></td> <td> <img src="images/spacer.gif" width="1" height="26" alt="" /></td> </tr> <tr> <td rowspan="4" width="772" height="435" background="images/web_div_09.jpg"> the text </td> <td width="121" height="4" background="images/web_div_10.jpg"> </td> <td> <img src="images/spacer.gif" width="1" height="4" alt="" /></td> </tr> <tr> <td width="121" height="225" background="images/web_div_11.jpg"> </td> <td> <img src="images/spacer.gif" width="1" height="225" alt="" /></td> </tr> <tr> <td width="50%" height="100%" background="images/web_div_12.jpg"> <p>this cell resize verticaly</p> </td> <td colspan="2" width="78" height="100%" background="images/web_div_13.jpg"> this cell resize verticaly</td> <td colspan="3" width="142" height="7" background="images/web_div_14.jpg"> this cell resize verticaly</td> <td width="50%" height="100%" background="images/web_div_15.jpg"> this cell resizeverticaly</td> <td> <img src="images/spacer.gif" width="1" height="7" alt="" /></td> </tr> <tr> <td rowspan="5" width="50%" height="345" background="images/web_div_16.jpg"> </td> <td colspan="2" rowspan="2" width="78" height="223" background="images/web_div_17.jpg"> </td> <td colspan="2" rowspan="2" width="21" height="223" background="images/web_div_18.jpg"> </td> <td rowspan="4" width="121" height="332" background="images/web_div_19.jpg"> </td> <td rowspan="5" width="8" height="345" background="images/web_div_20.jpg"> </td> <td> <img src="images/spacer.gif" width="1" height="199" alt="" /></td> </tr> <tr> <td width="772" height="24" background="images/web_div_21.jpg"> </td> <td> <img src="images/spacer.gif" width="1" height="24" alt="" /></td> </tr> <tr> <td colspan="5" width="871" height="81" background="images/web_div_22.jpg"> </td> <td> <img src="images/spacer.gif" width="1" height="81" alt="" /></td> </tr> <tr> <td colspan="2" width="78" height="28" background="images/web_div_23.jpg"> </td> <td colspan="2" width="773" height="28" background="images/web_div_24.jpg"> </td> <td width="20" height="28" background="images/web_div_25.jpg"> </td> <td> <img src="images/spacer.gif" width="1" height="28" alt="" /></td> </tr> <tr> <td colspan="6" width="992" height="13" background="images/web_div_26.jpg"> </td> <td> <img src="images/spacer.gif" width="1" height="13" alt="" /></td> </tr> <tr> <td> <img src="images/spacer.gif" width="8" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="55" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="23" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="772" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="20" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="121" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="8" height="1" alt="" /></td> <td></td> </tr> </table> </html> So i am building a site for a friend, and created a navigational bar across the top with 7 tabs. The bg color is currently blue with white letters, and I want to make it white with black letters on a mouseover. I tried a couple different things from google, and nothing worked. Here is the code for the table. I would appreciate all the help I can get. Thanks! <HTML> <HEAD> <TITLE>Moxie Communication</TITLE> <style type="text/css"> p {font-family: Univers LT Std 45 Light} td {font-family: Univers LT Std 45 Light} </STYLE> </HEAD> <BODY bgcolor="#000000" style="color:white" vlink=white alink=black> <TABLE border=0 height=100 align=center bgcolor=#1A1919> <TR> <TD valign=top> <img src="F:\MOXIE\Website Images\Moxie_Top.jpg"> <TABLE border=0 width=100% cellpadding=9 cellspacing=1 bgcolor=#0054B4> <TR align=center> <TD><font size=2><a href="moxie.htm">HOME</a></font></TD> <TD><font size=2><a href="about.htm">ABOUT</a></font></TD> <TD><font size=2><a href="services.htm">SERVICES</a></font></TD> <TD><font size=2><a href="clients.htm">CLIENTS</a></font></TD> <TD><font size=2><a href="pricing.htm">PRICING</a></font></TD> <TD><font size=2><a href="team.htm">MEET THE TEAM</a></font></TD> <TD><font size=2><a href="contact.htm">CONTACT</a></font></TD> </TR> </TABLE> Hi Can someone please tell me how I can make a table cell (which contains text which is linked) linkable? http://www.revolution.worldclanleagu...?site=calendar Here you can see a calendar with months at the top. When you hover over a month, the cell highlights but only the text inside is actually selectable - I'd like to make the cell selectable/linked. PHP/HTML I have: Code: <td class="calendar-month" align="center"><a class="calendar" href="index.php?site=calendar&month=01">'.mb_substr($_language->module['jan'], 0, 3).'</a></td> CSS: Code: a.calendar, a.calendar:visited, a.calendar:active { font-family: Arial; color: #dbdbdb; font-size: 11px; line-height: 13px; text-decoration: none;} a.calendar:hover { font-family: Arial; color: #dbdbdb; font-size: 11px; line-height: 13px; text-decoration: none;} .calendar-month, calendar-month:visited { font-family: Arial; color: #dbdbdb; font-size: 11px; line-height: 13px; padding: 5px; background-color: #2f2f2f; border-bottom:3px solid #1d1d1d; border-right: 1px solid #000; border-top: 1px solid #424242; border-left: 1px solid #424242;} .calendar-month:active { font-family: Arial; color: #dbdbdb; font-size: 11px; line-height: 13px; padding: 5px; background-color: #2f2f2f; border-bottom:3px solid #1d1d1d; border-right: 1px solid #000; border-top: 1px solid #424242; border-left: 1px solid #424242;} .calendar-month:hover { font-family: Arial; color: #dbdbdb; font-size: 11px; line-height: 13px; padding: 5px; background-color: #3f3f3f; border-bottom:3px solid #1d1d1d; border-right: 1px solid #000; border-top: 1px solid #424242; border-left: 1px solid #424242;} (sorry theres so much css) Thanks in advance =D I recently made a rollover menu, and though the text does highlight when I roll over the cell, the link only works if I rollover the word is the cell. Is there a way to make the cell itself link? I am doing a simple calendar. I managed to do the table with days etc. I have a problem I wish to highlight a number and the cell automatically according to the date of the day. Can Someone help please? Thanks & best regards i want to open a frame by clicking on a cell,i can only do this when the ref is outside the table,can you help? Thanks everybody |