HTML - One Error And A Border Related Problem
deleted8910
Similar TutorialsI have created a page which consists of 2radio buttons(r1,r2). When user selects radio button1(r1) a table(t1) belong to r1 is displayed.This is by default I mean radio button(r1) is Checked and table(t1) is displayed when this page is runned. When user selects 2nd radio button(r2) a table(t2) is displayed in place of t1. Every thing is working fine.Problem is when user selects radio button2 and if he refreshes page table t1 is being displayed with r2 checked this is where I am Placing problem. Can anyone resolve this issue and give a suggestion how to display table belong to corresponding clicked radio button even after page refresh. when the page gets resized by the browser these thick dark borders show up. anyone know what the deal is? http://www.users.on.net/~bmccowan/tables.jpg Hi, I`ve got a problem with some freaky border around my calendar. Look here! In the middle of the Site, you can see a calendar with a border around it. Now comes the crazy one: It`ll shows up only in IE, but not in Opera!!! How comes Thx for your help! when using the below code on my blog, i still get a border. what am i doing wrong? i have other gifs with NO borders on my blog, but i don't see any difference in the code. <img src="http://www.coolholidaygraphics.com/birthday/animations/animatedgifs5.gif" border="0" /> thanks for any help Hi, I'm having an issue with Firefox 3 that is stumping me. My site has a SWF centered in the middle of my page which is embedded with swfobject v2.1. When the page loads my SWF overlaps the right-sided border of the div I've setup in Firefox, and from what I can tell, Firefox sets the border property on the inside of the div, whereas all the other browsers set the border property on the outside of the div. I've read up on the box model problem, but seeing as how every other browser(IE, Opera, Safari, Chrome etc.) displays the page properly, I'm hitting the wall here. I don't know if swfojbect is causing the problem, or if it's something in my code, because up until I embedded the flash, I'm pretty sure everything was aligned. Anyways, any help would be greatly appreciated... http://www.lakeviewchurch.com/new Hey there first of many needing help posts from me I reckon The issue I have is this, I have a navbar which I want to add a left border and right border on, but I am having trouble doing it. Quote: <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border-right="1" width="100%" align="center" style="border-left:solid 1px #990000"> This is my code, now I have tried adding style="border-left:solid 1px #990000" style="border-right:solid 1px #990000" didnt work tried style="border-left:solid 1px #990000 border-right:solid 1px #990000" Didnt work, at abit of a lose as the rest of my header,memberbar,forumlinks have the left and right borders, I added them via the css. I searched for .navbar in the css but it wasnt present, I tried adding Quote: .navbar { border-left: 1px solid #990000; border-right: 1px solid #990000; } But it didnt work, any solutions or suggestions would be appreciated Hey guys! I have created a table with images in it and for some reason the table doesn't exactly fit (in height) the images, it has like a little 5px border at the bottom and I can't figure out why. I have attached a picture showing the problem. In the image, the gray border is supposed to be there, and is part of the images and background image. But I want the table to end directly at the bottom of the gray bar, and for some reason it has a little lip at the bottom in which the background image begins to repeat again. My code is as follows: 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>QuickID | Setup Your Account</title> <style type="text/css"> <!-- a:link { color: #777676; text-decoration: none; font: verdana} a:visited { color: #777676; text-decoration: none; font: verdana} a:hover { color: #3366CC; text-decoration: underline; font: verdana} a:active { color: #777676; text-decoration: none; font: verdana} --> </style> </head> <body topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0 background="images/bg.gif"> <table cellpadding=0 cellspacing=0 width=100% border=0 align=center background="images/top_bar_bg.jpg"> <tr> <td> <table width=980 cellpadding=0 cellspacing=0 align=center style="white-space: nowrap;" height=38> <tr> <td align=left> <img src="images/top_bar_logo.jpg" border=0 height=38 ALT="logo"> <img src="images/top_bar_divider.jpg" border=0 height=38 ALT="divider"> </td> <td align=left width=750> hello! </td> <td align=right> <img src="images/top_bar_divider.jpg" border=0 height=38 ALT="divider"> </td> <td align=right> <img src="images/top_bar_settings.jpg" border=0 height=38 ALT="settings"> </td> <td align=right> <img src="images/top_bar_logout.jpg" border=0 height=38 ALT="logout"> </td> </tr> </table> </td> </tr> </table> </body> Hello, I'm having trouble with the bold line in the code below: Code: <html> <head> <title>H&R Properties</title> <style type="text/css"> table.master { height: 100%; } td.banner { height: 100px; text-align: center; } span.banner { font-size: 24pt; } td.news { width: 200px; padding-top: 10px; text-align: center; } iframe.news { width: 100%; height: 100%; } td.menuandcontent { width: 530px; } table.menuandcontent { width: 100%; height: 100%; } td.menu { height: 50px; background: url('menu_bg.jpg'); text-align: center; } td.content { text-align: center; } iframe.content { width: 100%; height: 100%; } </style> </head> <body> <table class="master" cellspacing=0 cellpadding=0 border=1> <tr><td colspan=2 class="banner"> <span class="banner"> <img src="H&R banner.jpg" border=0></span></td></tr> <tr> <td class="news"> <iframe class="news" src="news.html" scrollable=yes frameborder=no></iframe> </td> <td class="menuandcontent"> <table class="menuandcontent" cellspacing=0 cellpadding=0 border=0> <tr> <td class="menu"> <table cellspacing=0 cellpadding=0 border=0> <tr> <td><img src="home.jpg" border=0></td> <td><img src="properties.jpg" border=0></td> <td><img src="about.jpg" border=0></td> <td><img src="contact.jpg" border=0></td> </tr> </table> </td></tr> <tr> <td class="content"> <iframe class="content" src="content.html" srollable=yes frameborder=0></iframe> </td> </tr> </table> </td> </tr> </table> </body> </html> This code produced this: http://www.shahspace.com/border1/ But if I do something as simple as set border to 0 in the bolded line above, I get this: http://www.shahspace.com/border0/ The banner is all of a sudden shifted to the right by about 20 pixels. Why is this? I have an issue. I really need to get rid of the borders in a html project i'm working on. I need to get ride of the borders to make a solid line from the left to the right. My screenshot is he http://terpconnect.umd.edu/~dwallac2/Screenshot.png <?php echo("<table border='0'"); for($i=0;$i<100;$i++){ echo("<tr border='0'>"); for($x=0;$x<100;$x++){ if($i%2){ echo("<td border='0'>"); } else{ echo("<td bgcolor='blue' border = '0'>"); } echo("hi"); echo("</td>"); } echo("</tr>"); } echo("</table>"); ?> i want the blue lines to be solid w/o the white dashes. I would appreciate anything you could do for me. Thanks Dave Hi, I have an image "m1" set as the background of a table on my website. The table is set to the width of the image "340". However, when I add text it pushes the border and the image repeats/cuts off. http://www.monkeygambling.com/newpage.htm This problem only happens in IE, not in opera. Can anyone help? thanks Hi, I am using Dreamweaver CS3 to create a site, by default i have learnt that when you use an image as a link to another page, dreamweaver creates a coloured border around your linked image. I have since been able to get rid of this border by adding border="0" into my img tag however this now has caused my rollover not to work before clicking on the image to take you to the linked page. this is my code; any ideas how i can fix this? <td colspan="4"> <a href="About Us.html"><img src="images/About_Off.jpg" border="0" alt="About Us" name="Aboutus" width="120" height="64" id="Aboutus" onMouseOver="MM_swapImage('Image2','','images/About_On.jpg',1)" onMouseOut="MM_swapImgRestore()"></a></td> <td colspan="6"> Any help would be greatly appreciated. Hey, I would like some help please. I need to add links to an image. The image is the highlighted silver bar in the screenshot. Everytime I make navigations i always put the text on template in photoshop but for this one i decided to put text over the top of the background image. How would i do this because everytime I set the <td> to have the background as the image so i can put text over the top, it just disapears. Also from previous experience html formats text so its single spaced, so how would i seperate the links out? I hope you undertstand me. The screemshot is attached below thanks. I'm taking up HTML editing as a class elective in college and find it very louring in it's creative aspects. I'm messing around with Tables currently and for the life of me i cannot get the table to align directly to the top of the page. There's like a 10px space on the top. I've tried the valign=top or valign=texttop and nothing will make it touch the top of the page with out leaving a space. can some please tell me what i'm missing? Thanks for the help! here's my html code: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>Untitled 1</title> </head> <body bgcolor="880000"> <table bgcolor="yellow" border="0" cellpadding="0" cellspacing="0" valign="top" width="800"> <tr> <td style="height: 23px"></td> </tr> </table> </body> </html> Hello All It's been a long time I visited this forum. My question is regarding adding a sound clip and a video clip to my website. I would like either QuickTime (preferably) or Windows player to open up and play the clips. How do I go about coding HTML for this? I thank everyone in advance for your help. BJ Part of my Dida(double i.t) course i have to make a eportfolio. It needs to be handed in this week and i am having trouble with coding my layout. I cant code layoutswith css so all im doing is pyling tables top of each other . The problem is that there gaps between each <tr>(row). How could i get rid of these gaps? The screen shot of my code and layout is attached thanks Question: 1 Which of the following is invalid value for the shape attribute of an area tag? a. circle b. tri c. rect d. poly Question: 2 A few lines in an HTML paragraph are to be formatted differently from the rest of the lines. Which tag will assist in this? a. div b. p c. span d. format Question: 3 Which of the following values for the scrolling attribute for the frame tag is not valid? a. yes b. default c. auto d. no Question: 4 You placed four radio buttons on a web form. You want the users to specify whether they are male or female and whether they are married or single. The code is as follows: Male: <input type="radio" checked name="chk" value="male"> Female: <input type="radio" name="chk" value="female"> Married: <input type="radio" checked="checked" name="chk" value="married"> Single: <input type="radio" name="chk" value="single"> What is wrong with the above code? a. It will allow the user to choose only the male and the married options. b. It will allow the user to choose only the female and single options. c. It will allow the user to choose only one option out of the four. d. It will allow the user to choose all the four options at the same time. Question: 5 Which of the following attributes comes in handy when borders have to be put between groups of columns instead of every column? a. col b. colgroup c. rowspan d. row Question: 6 What would you infer from the following code in an HTML 4.01 Web site? <body topmargin=2 leftmargin=2> a. The top margin and left margin of the webpage is 2 pixels. b. The bottom margin and right margin of the web page is 2 pixels. c. Both of the above. d. None of the above. The topmargin and leftmargin attributes are not valid HTML 4.01 body attributes. Question: 7 Where must the styles specified for a CSS internal style sheet be located? a. Inside a table tag b. Inside a div tag c. Inside the head tag d. Anywhere on the webpage Question: 8 Which of the following is/are a valid value for the type attribute of the input tag? a. text b. icon c. reset Hello, This is my first post here, the site is great so far. Anyways, I have a proxy site and I submitted it to alot of top lists, which require you to put a piece of code to link back to them. Problem is, the little pictures take up alot of space and take a while to load, so I was wondering if there is a way to disable images for a part of the page, so that it will be lots of text instead of pics. (the image link has alternative text). Heres the site: http://www.redprox.com/ Thanks! Hello everyone. I'm in the middle of designing my new portfolio in ASP.NET and everything works fine in IE7 but once I opened the site up in FF, I was horrified by the outcome. I've been looking forever for a possible slip-up but I haven't been able to find anything that seems wrong. Firefox. Internet Explorer. CSS Code: html { font-family:tahoma; background-image:url(img/background.png); background-repeat:repeat-x; background-color:#b5b5b5; } #header { background-image:url(img/body_top.png); width:650px; height:140px; } #body_middle { background:url(img/body_middle.png); background-repeat:no-repeat; width:650px; } #body_fill { background-image:url(img/body_fill.png); width:650px; background-repeat:repeat-y; } #body_bottom { background-image:url(img/body_bottom.png); width:650px; height:19px; } #menuwrapper { width:130px; height:200px; position:relative; top:15px; left:18px; text-align:left; padding:0px 0px 0px 0px; float:left; } .menu { margin:5px 15px 0px 0px; } a { color:#c5c5c5; } .contentholderR { float:right; width:475px; margin:10px 20px 10px 20px; } .contentholderL { float:left; width:475px; margin:10px 20px 10px 20px; } .content_header { background-image:url(img/content_header.png); background-repeat:no-repeat; height:15px; width:475px; padding-left:15px; font-family:tahoma; font-size:15px; color:#FFFFFF; } .content_mid { background-repeat:no-repeat; border-left:solid 3px #c8c8c8; border-right:solid 3px #c8c8c8; width:459px; min-height:150px; font-family:Tahoma; font-size:12px; color:black; padding-left:10px; padding-top:10px; } .content_bottom { background-image:url(img/content_bottom.png); background-repeat:no-repeat; height:9px; width:475px; position:relative; } HTML Code: <%@ Master Language="C#" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> <!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 runat="server"> <title>Untitled Page</title> <link rel="stylesheet" href="style.css" type="text/css" /> </head> <body> <form id="form1" runat="server"> <div id="wrapper"> <div id="header"></div> <div id="body_fill"> <div id="body_middle"> <div id="menuwrapper"> <asp:Menu ID="Menu" runat="server" CssClass="menu" DataSourceID="SiteMapDataSource1" StaticDisplayLevels="3" BackColor="White" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#C8C8C8" StaticSubMenuIndent="10px" DynamicEnableDefaultPopOutImage="False" Width="124px"> <Items> <asp:MenuItem Text="dasdasf" Value="dasdasf"></asp:MenuItem> <asp:MenuItem Text="New Item" Value="New Item"></asp:MenuItem> <asp:MenuItem Text="New Item" Value="New Item"></asp:MenuItem> <asp:MenuItem Text="New Item" Value="New Item"></asp:MenuItem> <asp:MenuItem Text="New Item" Value="New Item"></asp:MenuItem> <asp:MenuItem Text="New Item" Value="New Item"></asp:MenuItem> </Items> <DynamicHoverStyle BackColor="#E5E5E5" ForeColor="#FAA019" /> <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" ForeColor="Black" /> <DynamicMenuStyle BackColor="#F7F6F3" /> <StaticSelectedStyle BackColor="#E5E5E5" Font-Bold="True" Font-Names="Verdana" Font-Overline="False" ForeColor="Black" /> <DynamicSelectedStyle BackColor="#E5E5E5" ForeColor="Black" /> <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" ItemSpacing="1px" BackColor="White" /> <StaticHoverStyle BackColor="WhiteSmoke" ForeColor="Black" /> </asp:Menu> <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" /> </div> <div id="contentwrapper"> <div class="contentholderR"> <div class="content_header"> <asp:ContentPlaceHolder ID="content_header_1" runat="server"> Lorem Ipsum</asp:ContentPlaceHolder> </div> <div class="content_mid"> <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </div> <div class="content_bottom" style="font-size: 12pt; font-family: Times New Roman"></div> </div> <div class="contentholderL" style="font-size: 12pt; font-family: Times New Roman"> <div class="content_header"> <asp:ContentPlaceHolder ID="content_header_2" runat="server"> Lorem Ipsum</asp:ContentPlaceHolder> </div> <div class="content_mid"> <asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server"> </asp:ContentPlaceHolder> </div> <div class="content_bottom"></div> </div> <div class="contentholderR"> <div class="content_header"> <asp:ContentPlaceHolder ID="content_header_3" runat="server"> Lorem Ipsum</asp:ContentPlaceHolder> </div> <div class="content_mid"> <asp:ContentPlaceHolder ID="ContentPlaceHolder3" runat="server"> </asp:ContentPlaceHolder> </div> <div class="content_bottom" style="font-size: 12pt; font-family: Times New Roman"></div> </div> </div> </div> </div> </div> <div id="body_bottom"></div> </form> </body> </html> Can someone point out what I'm doing wrong? How to create explorer like menu in Html or java script? eg + Game(inside this Cricket and Football) when click on + sign it become like-- - Game -Cricket -Football Can anybody suggest me, by which command I can do it? Commercial Removals || Removals and Storage||Specialist Removals Code: Parse error: syntax error, unexpected T_DNUMBER in /home/a6989956/public_html/include/database.php on line 24 Can anyone please tell me whats wrong? Here is line a few lines Code: class MySQLDB { var $connection; //The MySQL database connection var $num_active_users; //Number of active users viewing site var $num_active_guests; //Number of active guests viewing site var $num_members; //Number of signed-up users /* Note: call getNumMembers() to access $num_members! */ /* Class constructor */ function MySQLDB(){ /* Make connection to database */ $this->connection = mysql_connect(hostname, username, ********) or die(mysql_error()); mysql_select_db(database, $this->connection) or die(mysql_error()); /** * Only query database to find out number of members * when getNumMembers() is called for the first time, * until then, default value set. */ $this->num_members = -1; if(TRACK_VISITORS){ /* Calculate number of users at site */ $this->calcNumActiveUsers(); /* Calculate number of guests at site */ $this->calcNumActiveGuests(); } } line 24-25 is Code: $this->connection = mysql_connect(hostname, username, ********) or die(mysql_error()); mysql_select_db(database, $this->connection) or die(mysql_error()); PLEASE HELP! |