CSS - Need Halp With A Table Script
hi
i have a table script from a website and want to use it for my own the script is not working good and i want to know if soemone can help me out here with this script what do i hva to do to make this work with all the function of the filter and the other function the script <html> <head> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function fmPopUp(url,width,height,status,toolbar,scrollbars) { if (width == null) w = 600; else w = width; if (height == null) h = 400; else h = height; if (status == null) st = 0; else st = status; if (toolbar == null) tb = 0; else tb = toolbar; if (scrollbars == null) sb = 1; else sb = scrollbars; open(url,"_blank","status="+st+",toolbar="+tb+",scrollbars="+sb+",resizable=1,width="+w+",height="+h+",screenX=30,screenY=30,left=30,top=30"); } //--> </script> <style type="text/css"> <!-- .style7 { color: #B7B7B7; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; } .style8 { font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; } --> </style> </head> <link rel='STYLESHEET' type='text/css' href='css/default.css'> <STYLE> BODY {scrollbar-face-color: #666666; scrollbar-shadow-color: #334a66; scrollbar-highlight-color: #ffffff; scrollbar-3dlight-color: #000000; scrollbar-darkshadow-color: #1a1a1a; scrollbar-track-color: #000000; scrollbar-arrow-color: #ffffff} .style5 {font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; } </style> <body bgcolor="333333" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <script type="text/javascript" src="javascripts/swfobject.js"></script> </td> <td width="473" valign="bottom"><div align="center"> <table width="473" border="0" cellspacing="0" cellpadding="0"> <tr> <td><div align="right"> <table width="453" border="0" cellspacing="0" cellpadding="0"> </tr> </table> </div></td> <td width="11"> </td> </tr> </table> </div></td> </tr> </table> <table width="960" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="157"><img src="gfx/shadowsbars/leftmenu.gif" width="157" height="24"></td> <td width="787"><img src="gfx/releaselist/toppen2.gif" width="788" height="24"></td> <td width="16"><img src="gfx/releaselist/toppen_hoyrekant2.gif" width="16" height="24"></td> </tr> <tr> <td height="840" valign="top" background="gfx/shadowsbars/bg_leftmenuknapper2.gif"> <table width="157" height="555" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="700" valign="top"><div align="center"> </div></td> </tr> </table></td> <td valign="top" background="gfx/releaselist/bg_main2.gif"> <table width="787" height="47" border="0" cellpadding="0" cellspacing="0" background=""> <tr> <td width="26"> </td> <td width="749"><span class="style7"> <td width="12"> </td> </tr> </table> <table width="787" height="59" border="0" cellpadding="0" cellspacing="0" background=""> <tr> <td width="26" height="39"> </td> <td width="750"><font color="e6e6e6" size="1" face="Verdana, Arial, Helvetica, sans-serif"> <form method="get" action="gamebrowse.asp" name="frmGameBrowser" style="display: inline;"> <table width="750" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="669"><font color="e6e6e6" size="1" face="Verdana, Arial, Helvetica, sans-serif"> <input type="hidden" value="title" name="sort"> <input type="hidden" value="all" name="letter"> <input type="hidden" value="1" name="page"> <input type="hidden" value="asc" name="sortdir"> </select> <strong>GEN </strong> <select name="category" style="width:100px;border-style:Groove;"> <option value="all" selected>All</option> <option value="13">-</option> <option value="11">Action</option> <option value="19">Action/Adventure</option> <option value="3">Adventure</option> <option value="20">Cards</option> <option value="23">Children</option> <option value="18">Entertainment</option> <option value="15">Fighting</option> <option value="4">FPS</option> <option value="24">Hunting</option> <option value="21">MMOFPS</option> <option value="14">MMORPG</option> <option value="17">Music</option> <option value="16">Puzzle</option> <option value="12">Racing</option> <option value="22">Retro</option> <option value="8">RPG</option> <option value="2">Simulator</option> <option value="9">Sport</option> <option value="1">Strategy</option> <option value="5">Tactical</option> </select> <strong>LANGUAGE:</strong> <select name="territory" style="width:80px;border-style:Groove;"> <option value="us">USA</option> <option value="eu" selected>UK/Euro</option> <option value="sca">Nordic</option> </select> </font></td> <td width="81"><font color="e6e6e6" size="1" face="Verdana, Arial, Helvetica, sans-serif"> <input name="image" type="image" style="border-width:0px;" value="submit" src="" alt="Apply Changes"/></font></td> </tr> </table> </form> </font> </td> <td width="11"> </td> </tr> <tr> <td height="20"> </td> <td> <div align="left"> <font color="e6e6e6" size="1" face="Verdana, Arial, Helvetica, sans-serif"> | <a href="gamebrowse.asp?letter=all&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> <font color="#6B7DE5"><b>ALL</b></font> </a> | <a href="gamebrowse.asp?letter=num&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> 0 - 9 </a> | <a href="gamebrowse.asp?letter=a&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> A </a> | <a href="gamebrowse.asp?letter=b&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> B </a> | <a href="gamebrowse.asp?letter=c&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> C </a> | <a href="gamebrowse.asp?letter=d&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> D </a> | <a href="gamebrowse.asp?letter=e&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> E </a> | <a href="gamebrowse.asp?letter=f&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> F </a> | <a href="gamebrowse.asp?letter=g&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> G </a> | <a href="gamebrowse.asp?letter=h&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> H </a> | <a href="gamebrowse.asp?letter=i&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> I </a> | <a href="gamebrowse.asp?letter=j&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> J </a> | <a href="gamebrowse.asp?letter=k&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> K </a> | <a href="gamebrowse.asp?letter=l&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> L </a> | <a href="gamebrowse.asp?letter=m&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> M </a> | <a href="gamebrowse.asp?letter=n&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> N </a> | <a href="gamebrowse.asp?letter=o&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> O </a> | <a href="gamebrowse.asp?letter=p&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> P </a> | <a href="gamebrowse.asp?letter=q&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> Q </a> | <a href="gamebrowse.asp?letter=r&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> R </a> | <a href="gamebrowse.asp?letter=s&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> S </a> | <a href="gamebrowse.asp?letter=t&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> T </a> | <a href="gamebrowse.asp?letter=u&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> U </a> | <a href="gamebrowse.asp?letter=v&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> V </a> | <a href="gamebrowse.asp?letter=w&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> W </a> | <a href="gamebrowse.asp?letter=x&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> X </a> | <a href="gamebrowse.asp?letter=y&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> Y </a> | <a href="gamebrowse.asp?letter=z&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> Z </a> </font></div> </td> <td> </td> </tr> </table> <table width="787" height="12" border="0" cellpadding="0" cellspacing="0" background=""> <tr> <td height="12"><div align="center"><img src="" width="1" height="1"></div></td> </tr> </table> <table width="787" height="21" border="0" cellpadding="0" cellspacing="0" background=""> <tr> <td width="27"> </td> <td width="760"> <table width="760" border="0" cellspacing="0" cellpadding="2"> <tr> <td width="372"><span class="style5"> <a href="gamebrowse.asp?sort=title&letter=all&platform=ps3&category=0&status=all&territory=eu&page=1&sortdir=desc">TITLE</a> <img src="" width="5" height="3"> </span></td> <td width="139"><span class="style5"> <a href="gamebrowse.asp?sort=category&letter=all&platform=ps3&category=0&status=all&territory=eu&page=1">GENRE</a> </span></td> <td width="128"><span class="style5"> <a href="gamebrowse.asp?sort=release&letter=all&platform=ps3&category=0&status=all&territory=eu&page=1">UK/EURO</a> </span></td> <td width="105"><span class="style5"> <a href="gamebrowse.asp?sort=status&letter=all&platform=ps3&category=0&status=all&territory=eu&page=1">STATUS</a> </span></td> </tr> </table> </td> </tr> </table> <table width="787" border="0" cellpadding="0" cellspacing="0" background=""> <tr> <td width="27"> </td> <td width="760" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="" width="1" height="8"></td> </tr> </table> <table width="760" border="0" cellspacing="0" cellpadding="2"> <tr onMouseover="this.style.backgroundColor='#4d4d4d';" onMouseout="this.style.backgroundColor='';"> <td width="372"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"> <a href="http://www.tothegame.com/ps3-4200-2-days-to-vegas-for-sony-playstation-3.html"><font color="#6B7DE5">2 Days to Vegas</font></a></font></td> <td width="138"><font color="D7D7D7" size="1" face="Verdana, Arial, Helvetica, sans-serif">Action </font></td> <td width="126"><font color="D7D7D7" size="1" face="Verdana, Arial, Helvetica, sans-serif"> TBA </font></td> <td width="77"><font color="D7D7D7" size="1" face="Verdana, Arial, Helvetica, sans-serif">Upcoming</font></td> <td width="23"><div align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFF </font></div> </td> </tr> </table> <table width="100%" height="30" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="65%"> <font color="e6e6e6" size="1" face="Verdana, Arial, Helvetica, sans-serif"> <br> <em>Results 1 - 100 of 479.</em><br> <br> </font><font color="e6e6e6"><span class="style8"> <font color="#6B7DE5">[1]</font> <font color="e6e6e6"><a href="gamebrowse.asp?letter=all&platform=ps3&category=0&status=all&territory=eu&page=2&sort=title&sortdir=asc">[2]</a></font> <font color="e6e6e6"><a href="gamebrowse.asp?letter=all&platform=ps3&category=0&status=all&territory=eu&page=3&sort=title&sortdir=asc">[3]</a></font> <font color="e6e6e6"><a href="gamebrowse.asp?letter=all&platform=ps3&category=0&status=all&territory=eu&page=4&sort=title&sortdir=asc">[4]</a></font> <font color="e6e6e6"><a href="gamebrowse.asp?letter=all&platform=ps3&category=0&status=all&territory=eu&page=5&sort=title&sortdir=asc">[5]</a></font> <a href="gamebrowse.asp?letter=all&platform=ps3&category=0&status=all&territory=eu&page=2&sort=title&sortdir=asc"><strong>NEXT</strong></a> </span></font> <br> <br></td> <td width="35%"><div align="left"></div></td> </tr> </table> </td> </tr> </table> <table width="787" height="21" border="0" cellpadding="0" cellspacing="0" background=""> <tr> <td width="24"><div align="center"><font color="e6e6e6" size="1" face="Verdana, Arial, Helvetica, sans-serif"> </font></div></td> <td width="763"> <div align="left"> <font color="e6e6e6" size="1" face="Verdana, Arial, Helvetica, sans-serif"> | <a href="gamebrowse.asp?letter=all&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> <font color="#6B7DE5"><b>ALL</b></font> </a> | <a href="gamebrowse.asp?letter=num&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> 0 - 9 </a> | <a href="gamebrowse.asp?letter=a&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> A </a> | <a href="gamebrowse.asp?letter=b&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> B </a> | <a href="gamebrowse.asp?letter=c&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> C </a> | <a href="gamebrowse.asp?letter=d&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> D </a> | <a href="gamebrowse.asp?letter=e&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> E </a> | <a href="gamebrowse.asp?letter=f&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> F </a> | <a href="gamebrowse.asp?letter=g&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> G </a> | <a href="gamebrowse.asp?letter=h&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> H </a> | <a href="gamebrowse.asp?letter=i&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> I </a> | <a href="gamebrowse.asp?letter=j&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> J </a> | <a href="gamebrowse.asp?letter=k&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> K </a> | <a href="gamebrowse.asp?letter=l&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> L </a> | <a href="gamebrowse.asp?letter=m&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> M </a> | <a href="gamebrowse.asp?letter=n&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> N </a> | <a href="gamebrowse.asp?letter=o&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> O </a> | <a href="gamebrowse.asp?letter=p&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> P </a> | <a href="gamebrowse.asp?letter=q&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> Q </a> | <a href="gamebrowse.asp?letter=r&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> R </a> | <a href="gamebrowse.asp?letter=s&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> S </a> | <a href="gamebrowse.asp?letter=t&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> T </a> | <a href="gamebrowse.asp?letter=u&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> U </a> | <a href="gamebrowse.asp?letter=v&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> V </a> | <a href="gamebrowse.asp?letter=w&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> W </a> | <a href="gamebrowse.asp?letter=x&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> X </a> | <a href="gamebrowse.asp?letter=y&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> Y </a> | <a href="gamebrowse.asp?letter=z&platform=ps3&category=0&status=all&territory=eu&page=1&sort=title&sortdir=asc"> Z </a> </font></div> </td> </tr> </table></td> <td background=""> </td> </tr> <tr> <td background=""> </td> <td valign="bottom" background=""><img src="" width="788" height="16"></td> <td valign="bottom" background=""><img src="" width="16" height="16"></td> </tr> </table> <table width="960" height="103" border="0" align="center" cellpadding="0" cellspacing="0" background="../gfx/bottom/bg2.gif"> <tr> <td height="47"><div align="center"> <table width="950" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="157"><div align="left"> <table width="43" border="0" cellspacing="0" cellpadding="0"> <tr> <td><div align="center"><img src="" width="23" height="22" /></div></td> </tr> </table> </div></td> </script> </body> </html> i hope soemone can help me out thanks Similar TutorialsHi guys, I'm working on a layout for a client, and I've run into a problem I've never seen before. My code is fully valid CSS (except for the *html IE fixes) and fully valid transitional XHTML, and it works fine in FF, IE and even Safari - but as soon as I load it up in Opera, it breaks completely. The font size is absolutely HUGE for some reason (like 400% of normal!), and it is completely breaking my layout. I have no idea why this would be happening, and it's immensely annoying. I'm setting all of the font sizes throughout the page in ems, and at the start of the css I declare the following: Code: html, body { height: 100%; margin: 0px; padding: 0px; text-align: center; font: 62.5% Tahoma, Verdana, Arial, Sans-Serif; /* Resets 1em to 10px */ background-color: #000000; } Now this should be fine, and indeed it works in every other browser.. but Opera is wigging the hell out, and I don't know what's wrong. Has anybody ever experienced anything like this? If so, please let me know! I'm hesitant to post the full code because it's covered by a hefty NDA, but I can strip out confidential bits if needed. Thanks everyone! Hi, I wrote a code that would import some mysql data into my website. Now I want to format that data into a nice table. Table is probably the wrong term since I am trying to avoid HTML. Anyway I was wondering how you can embed CSS into a PHP script. here is my website: dicebaseball dot org The 4/27Bruins0Dragons0 is the data I am trying to make tabular Here is the code that I am trying to embed CSS into: Code: <?php mysql_connect("localhost", "....", "....") or die("Could not connect: " . mysql_error()); mysql_select_db("..."); $result = mysql_query("SELECT * FROM scores") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo $row['game_date']; echo $row['away_team']; echo $row['away_score']; echo $row['home_team']; echo $row['home_score']; ?> I have a textarea in a <td>which asks for users for some description. If users enter text and don't use any space or enter, the width of the table gets bigger and bigger and damages the pages design. What can I add (to td.fixed_width css for example )to make the line break after the width of the table is reached??? There is a solution that I put a div in td and then Code: #desc { width:"100%"; width::fixed; overflow:scroll;} but it is not exactly what I want hi every one... How can I display static headers in a table, so that headers remain visible while user scrolls the table body? This is not working in IE 7 any working example please 2. iam having a column which holds data around some 100 to 200 characters... by default i want to display some 50 characters and rest of the characters can be viewed by moving the column... if this is possible let me know how to do it with some sample code......i dont know much about CSS 3. One more problem iam facing is with the number of columns displayed in the table. I have to display around 15 to 20 columns in a table... with this 15 to 20 columns in a table, i can see scrollbar to the page ....but i dont want scrollbar to the page, instead i want want scroll bar to the table (so that it doesnot effect the design of the page) I need a fixed table width and height and also fixed column width and height..... Note: I dont mind if columns are not visible (thru scrool bar i should see the hide columns) Alright, this is probably a simple fix but I can not find the solution anywhere. I'm trying to highlight a table cell with a 2px solid red border when it is clicked. Is there a way to get this to happen with out changing the size of the cell? I hope this makes sense. Basically the cell is expanding by 1 px causing movement in the table. I'm trying to get a table inside another table which completely fills the parent table, but I cannot get it to work. The simple piece of code illustrates my problem. The red table is inside the blue table but does not cover the entire cell from top to bottom, but only the centre. I want this table to be streched. Obviously height: 100% doesn't work. Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> <html> <body> <table> <tbody> <tr> <td> 1<br>2<br>3<br>4<br>5<br> </td> <td style="background: blue;"> <table style="height: 100%; background: red;"> <tbody> <tr> <td style="vertical-align: bottom"> Test </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </body> </html> I have a dynamic table that is in the cell of another table. For the life of me I cant get it to stick to the top of the cell. It wants to sit at the midline of it vertically. Thanks for reading. -------------------------------------------------------------------------------- Hello, Not exactly sure where to post this question... but: I'm having a bit of trouble keeping a table at a fixed height. What I have is a Small 200x80px table above my an input form. As users type data into the input form, javascript code dynamically updates the contents of the table. I have the table width properly fixed, and the input fields have character limitations... however if a user inputs a lot of capital letters or other wide characters, the table automatically increases in height when the text wraps. It's pretty much necessary that the text wraps for the middle lines of the table, and on the other two lines I have used the javascript to remove wrapping, but I never want the table to grow longer than 80px no matter how much is typed in the fields. Is there a way that I can constrain the table height? Thanks in advance! Hi, CSS whizz needed! I'm currently formatting a pre-determined HTML website using CSS. The website has been formatted with ID's for all tables and cells so I can specify which colour I'd like the background of the cells. The HTML is like this: Code: <table id="Description"> <tr><th class="title">Text</th></tr> <tr><td class="data"><div class="ggcode">Text</div></td></tr> </table> So I've been formatting it like this: Code: div#Main table#Description .title { border-color:#F0E68C; background-color:#F0E68C; } div#Main table#Description td.data { border-color:#F0E68C; background-color:#F0E68C; } However the last table is like this: Code: <table id="recentPosts"> <tr> <th class="title"> Recent Forum Posts </th> </tr> <tr> <td> <table class="data"> <tr> <th>Topic</th> <th>User</th> <th>Posted At</th> </tr> <tr> <td class="clickable forumTitle"><a href="link">Text></td> <td class="username">Text</td> <td class="date">Text12/04/2009 03:25 PM</td> </tr> <tr> <td class="clickable forumTitle"><a href="link">Text</a></td> <td class="username">Text</td> <td class="date">Text</td> </tr> </table> </td> </tr> </table> I'm able to format the cells within the <table id="recentPosts">, but I can't alter the cells within <table class="data"> - the table within the table. Any ideas how I would go about doing this? Thanks in advance hi all ! Im having a little bit of problem to make a header and the table body match in a correct way. My header is declared as <table align="center" class="style36" id="header"> and the CSS controlling it is Code: table.style36 { width: 1000px; vertical-align:middle; } .style36 td{ font-family: Arial, Helvetica, sans-serif; font-size: 12px; vertical-align:middle; } And the table wich is declared as Code: <div class="scrollingDiv"> <table border="1" bordercolor="#000000" align="center" bgcolor="#FFFFFF" class="style13" id="tableBody" > And the CSS controlling it Code: div.scrollingDiv { height:420px; overflow:scroll; vertical-align:middle; width:1024px; } table.style13 { width: 1000px; vertical-align:middle; } /* Since the table has a class of style13, all td elements under that style can be selected as below... no need for more style definitions... */ .style13 td { vertical-align:middle; } .style13 th { vertical-align:middle; } My first idea was to declare a width for each td, something like: Code: <td width="30" bgcolor="#${color2}"><div align="center">${fila.sHoraent_Citas}</div></td> <td width="120" bgcolor="#${color2}"><div align="center"><a href="SvMedPro?boton=Info&idPaciente=${fila.idPaciente_Citas}">${fila.nom_Paciente}</a></div></td> AND match the header too, dosent seem to work, Im pretty new to web programing so any help is appreciated. Thanks! Hi all, what i want is to customise the borders of a table... i know that <div>'s can have custom borders but, for the way that the page works i used table tags <table>. (very little experience of using <div>) is there a way that css can manipulate the borders of a table? i tried using this css: .nmhead { border-color:#cccccc; border-top:border-top-style:none; border-left:border-left-style:none; border-right:border-right-style:double; border-bottom:border-bottom-width:5px; } and then in the table doing this: <td class='nmhead'> but it didnt work (attached is what i want it to look like) any ideas? I have a table with a specified background color (specified in CSS). The content part of the table (a cell) uses information from a downloaded script (wordpress.com) to load information. I want the table background to shine through everything. How can I accomplish this (I suspect it is in the script CSS, but I don't know what). URL The 'home' page is how I want it (basically that background effect). But the other pages come out funny with no background. Could someone solve this, or alternatively reccommend another way. can someone who is good at scripting help me, im gonna show you two parts of my files and need you help me fix it to do what i want i would really appreciate any help every thing i try to edit messes every thing on page up Styles.css Code: body { background: url(images/background.png) repeat-x #e6e3dc; margin: 0; font-family:Arial, Helvetica, sans-serif; } a { color: #9bb50b; text-decoration: none; } a:hover { color: #728507; text-decoration: underline; } #wrapper { width: 900px; margin: 0 auto; } #header { } #logo { background: url(images/logo.png) no-repeat; width: 335px; height: 50px; margin-top: 17px; margin-left: 7px; } #updates { color: #e6e3dc; font-family: "Tahoma", Arial, Helvetica, sans-serif; padding-top: 5px; } #updates span { font-size: 13px; } #login { background: url(images/loginbg.png); width: 356px; height: 73px; position: relative; top: -71px; left: 560px; color: #e6e3dc; font-family: "Tahoma", Arial, Helvetica, sans-serif; font-size: 13px; } #regpage { width: 400px; height: 150px; color: #000000; font-family: "Tahoma", Arial, Helvetica, sans-serif; font-size: 13px; } #loginwelcome { padding-left: 20px; padding-top: 15px; } #login form { padding-left: 20px; } #login .username { border: none; background: url(images/formfield.png) transparent no-repeat; width: 131px; height: 21px; color: #859c0a; font-family: "Tahoma", Arial, Helvetica, sans-serif; text-indent: 4px; font-size: 13px; } #regpage .item { border: none; background: url(images/formfield.png) transparent no-repeat; width: 131px; height: 21px; color: #859c0a; font-family: "Tahoma", Arial, Helvetica, sans-serif; text-indent: 4px; font-size: 13px; } #login .password { border: none; background: url(images/formfield.png) transparent no-repeat; width: 131px; height: 21px; color: #859c0a; font-family: "Tahoma", Arial, Helvetica, sans-serif; text-indent: 4px; font-size: 13px; } #login .submit { border: none; background: none; width: 50px; font-family: "Myriad Pro", Arial, Helvetica, sans-serif; color: #e6e3dc; font-size: 15px; } ul { list-style: none; margin: 0px; padding: 0px; } #navigation { float:right; font-size:12px; margin-top: -18px; font-family: "Tahoma", Arial, Helvetica, sans-serif; } #navigation li { float:left; margin-right: 3px; } #navigation li a{ display: block; text-decoration: none; color: #e6e3dc; width: 70px; height: 24px; text-align: center; padding-top: 5px; } #navigation li a:hover { background: url(images/button.jpg) no-repeat;} #navigation .on { background: url(images/button.jpg) no-repeat;} #content { background: url(images/contentback.jpg) repeat-x #FFFFFF; margin-top: 20px; padding: 10px; } #content2 { background: url(images/contentback.jpg) repeat-x #FFFFFF; margin-top: 0px; padding: 0px; } #content h2 { font-family: "Tahoma", Arial, Helvetica, sans-serif; font-size: 23px; color: #9bb50b; margin: 0; margin-top: 10px; } #content p { font-family: "Tahoma", Arial, Helvetica, sans-serif; font-size: 13px; padding-left: 15px; margin: 0; width: 95%; } #content td { font-family: "Tahoma", Arial, Helvetica, sans-serif; font-size: 13px; padding-left: 15px; margin: 0; } #stock { margin: 0 auto; margin-top: 15px; width: 78%; } #footer { background: url(images/footback.png) no-repeat; height: 22px; font-family: "Tahoma", Arial, Helvetica, sans-serif; font-size:14px; color: #FFFFFF; margin-bottom: 9px; } #footertext { width: 100%; text-align: center; } #footertext a { color: #000000; text-decoration: none; } #footertext a:hover { color: #728507; text-decoration: underline; } Now part of index.php Code: <? session_start(); include_once"config.php"; if(isset($_POST['login'])){ $username= trim($_POST['username']); $password = trim($_POST['password']); if($username == NULL OR $password == NULL){ $final_report.="Please complete both fields"; }else{ $check_user_data = mysql_query("SELECT * FROM `members` WHERE `username` = '$username'") or die(mysql_error()); if(mysql_num_rows($check_user_data) == 0){ $final_report.="This username does not exist"; }else{ $get_user_data = mysql_fetch_array($check_user_data); if($get_user_data['password'] == $password){ $start_idsess = $_SESSION['username'] = "".$get_user_data['username'].""; $start_passsess = $_SESSION['password'] = "".$get_user_data['password'].""; $final_report.="<meta http-equiv='Refresh' content='0; URL=members.php'/>"; }}}} if(isset($_SESSION['username']) && isset($_SESSION['password'])){ header("Location: members.php"); } ?> <?php include("includes.php");?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title><?php echo $title ?> | It's time to shop for free!</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="description" content="Get free vouchers for online stores such as Amazon, ASOS, iTunes and more. It takes a few seconds to get started. Register now to start shopping for free." /> <link rel="stylesheet" href="style.css" type="text/css" /> </head> <body> <div id="wrapper"> <div id="header"> <a href="index.php<?php echo $referral_string?>"> <div id="logo"> </div></a> <div id="updates"> <span> </span> </div> <div id="login"> <div id="loginwelcome"> <?php if(!isset($_SESSION['username']) || !isset($_SESSION['password'])){ ?> <?php if($final_report !=""){?> <font color="red"><? echo $final_report;?></font> <?php }else { ?>Welcome Guest, not a member? <a href="register.php<?php echo $referral_string?>"><b>Register Now!</b></a> <?php } ?> </div> <form action="" method="post"> <p> <input type="text" title="username" name="username" class="username" value="Username" onclick="if ( value == 'Username' ) { value = ''; }"/> <input name="password" type="password" class="password" title="password" value="Password" onclick="if ( value == 'Password' ) { value = ''; }"/> <input type="Submit" name="login" class="submit" value="login" tabindex="3" /> </p> </form> </div> <?php } ?> <?php if(isset($_SESSION['username']) && isset($_SESSION['password'])){ ?> <table> <tr> <td> Welcome <b><?php echo $membername ?></b> </td> </tr> <tr> <td align="right" width="310"> Total Points: <b><?php echo $memberpoints ?></b><br> <?php if ($pointsneeded<=0){ ?> You can now request a voucher!<?php }else { ?> Points Needed: <b><?php echo $pointsneeded ?> <?php } ?> </b><br> </td> </tr> </table> </div> </div> <?php } ?> <ul id="navigation"> <li class="on"><a href="index.php<?php echo $referral_string?>">Home</a></li> <?php if(isset($_SESSION['username']) && isset($_SESSION['password'])){ ?> <li><a href="members.php">Members</a></li> <?php } ?> <li><a href="vouchers.php<?php echo $referral_string?>">Vouchers</a></li> <li><a href="terms.php<?php echo $referral_string?>">Terms</a></li> <li><a href="help.php<?php echo $referral_string?>">Help</a></li> <li><a href="contact.php<?php echo $referral_string?>">Contact Us</a></li> <?php if(isset($_SESSION['username']) && isset($_SESSION['password'])){ ?> <li><a href="logout.php">Logout</a></li> <?php } ?> </ul> This is my page http://cpagiveaway.com/index.php i want from green bar up all black centered login stuff at top no white on sides all black background want centered Logo Next want center navagation hi i have just found this table script from jquery but everytime i want to show the table there isnt happening anything with it i dont know hwat i am doing wrong i have the html and the js pluginf in the same folder take a look Code: <head> <script type="text/javascript" src="/path/to/jquery-latest.js"></script> <script type="text/javascript" src="/path/to/jquery.tablesorter.js"></script> <table id="myTable"> <thead> <tr> <th>Last Name</th> <th>First Name</th> <th>Email</th> <th>Due</th> <th>Web Site</th> </tr> </thead> <tbody> <tr> <td>Smith</td> <td>John</td> <td>jsmith@gmail.com</td> <td>$50.00</td> <td>http://www.jsmith.com</td> </tr> <tr> <td>Bach</td> <td>Frank</td> <td>fbach@yahoo.com</td> <td>$50.00</td> <td>http://www.frank.com</td> </tr> <tr> <td>Doe</td> <td>Jason</td> <td>jdoe@hotmail.com</td> <td>$100.00</td> <td>http://www.jdoe.com</td> </tr> <tr> <td>Conway</td> <td>Tim</td> <td>tconway@earthlink.net</td> <td>$50.00</td> <td>http://www.timconway.com</td> </tr> </tbody> </table> </script> </body> </html> Hi folks, i have a page i've designed which uses extensive css and which must now be integrated into a perl/cgi web app. i've used 'print header;' and 'print start_html();' with title and style arguments to link to the stylesheet and then used here-doc to print out the rest of the html. in one place i can see a group of radio buttons that are indented according to a stylesheet rule so obviously the stylesheet is being found and yet all other rules for positioning, etc. are ignored. 'view source' shows the link to the style sheet and everything else and yet it won't display properly. it doesn't make a difference if the stylesheet is in cgi-bin or htdocs with a relative path. i've looked at several web pages about how to accomplish this task which all seem to agree with the way that i've coded it. server config maybe(apache2)? here's the code: Code: #!/usr/bin/perl -wT use CGI qw(:standard); use CGI::Carp qw(warningsToBrowser fatalsToBrowser); print header; print start_html(-title=>"xxxxx", -style=>{-src => 'style.css', -type => 'text/css'}); print <<EndHTML; <html body.....> EndHTML i need to get this working asap and i'm baffled. thanks for any help. Hi guys, just dropping a line because I am having the darndest time trying to get this page: http://www.againsttheline.com/college_football_links/ to look the way I want it to with the CSS the script developer included. I have never personally used CSS myself, so I'm at a bit of a loss, but I have gone into the CSS file, changed what I though to be correct, but can never get the right results. I would like the categories in the middle of the page to be larger without changing the size of the rest of the links on the page. However, when I change "CatHeaderText" size it has no effect. If I change body text size it has no effect. The only thing that works when I change the font size is the a:link thing from xx-small but then that changes every link on the page and not just the category links in the middle. Can anyone offer any ideas of how I can make this work? Thanks, John Below is the full CSS <style> .bodytext { font-family: verdana,arial,ms sans serif; font-size: 10pt; color: #000000; } a:link, a:visited, a:active { font-family: verdana,arial,ms sans serif; font-size: xx-small; color: #70191B; text-decoration: none; } a:hover { font-family: verdana,arial,ms sans serif; text-decoration: underline; color: #800000; } .dotted { border: 1px dotted #000000; } .catheadertext { font-family: verdana,arial,ms sans serif; font-size: l2pt; font-weight: bold; color: #000000; } .button { font-family: verdana,arial,ms sans serif; font-size: xx-small; border-color: #909090; background-color: #404040; color: #FFFFFF; } .formtext { font-family: verdana,arial,ms sans serif; font-size: xx-small; } .poplisttext { font-family: tahoma,verdana,arial,ms sans serif; font-size: 7pt; } .revheadertext { font-family: tahoma,verdana,arial,ms sans serif; font-size: 8pt; font-weight: bold; color: #FFFFFF; background-color: #5A636E; } .topborder { border-top: 1px solid #000000; font-family: tahoma,verdana,arial,ms sans serif; font-size: 8pt; color: #000000; } .bottomborder { border-bottom: 1px solid #000000; font-family: tahoma,verdana,arial,ms sans serif; font-size: 8pt; color: #000000; } .description { font-family: tahoma,verdana,arial,ms sans serif; font-size: 8pt; color: #000000; padding-left:20px; } .adminheadertext { font-family: tahoma,verdana,arial,ms sans serif; font-size: 8pt; font-weight: bold; color: #000000; } .admintable { background-color: #000000; } .adminmain { background-color: #FFFFFF; } .subcatheadertext { font-family: tahoma,verdana,arial,ms sans serif; font-size: 9pt; color: #800000; } </style> Hello everyone. I want to link a .css file to my php script. I tried ti include the .cc file but it gave me an error about include_path. I made sure the pathname was correct and it didn't work. Does anyone have any ideas? OK well I figured that instead of spamming the forums I would post my two problems here. First problem: www.djoj.net/home.html www.djoj.net/style.css I am trying to replace my Tables with Div's... but when I do they overlap. Is there something I am missing? The margin property is not spacing them out according to eachother... um... wait... OK nvm, I just thought of the problem... position: relative; (I think) NEXT (left that there in case someone decides to search the forum) www.djoj.net/home.html www.djoj.net/style.css I have a hip-hop news script which loads the news from rapbasement.com Unfortunatly, in Firefox the headlines are being effected by my CSS somehow... this normally wouldent be a problem but it is making the text larger and it is making everything out of line. Help? Thank you. Hi guys, I never wanna do anything simply... *sigh* Need some help again! I downloaded SPGM to use as a photo gallery. Love it. It's even valid XHTML 1.0 Strict! Ok, I've implemented it here . Instead of using the native CSS file that came with the script, I copied it all into my own CSS file. Well, not ALL of it, but most. That CSS file is here . Towards the bottom, you'll see the SPGM CSS section. Now I've already started adapting the script and layout to my site, but as you can imagine, it's not too easy, especially for an only moderately-knowledgeable CSS user like me. First thing I want to do it... 1. I want to move the entire table (the main table containing the 4 folder icons and text) over to the left so the left side of the table lines up only a pixel or two right of the line between the green and tan on the left. I can shift the whole table by adding margin-left: -something px; to TABLE.table-wrapper, but the folder icons actually disappear as if they go behind something! HUH? I think moving this to the left more will solve the problem in IE of the right nav links getting pushed down... Could be wrong, but it's ok in FF. If someone could start me off with this I'd very much appreciate it. Thanks, guys! Chris |