546 Posted Topics
Re: No. You can't include an HTML file into another. You can use frames for multiple HTML document embeds. You can find more details here [URL="http://www.w3schools.com/html/html_frames.asp"]http://www.w3schools.com/html/html_frames.asp[/URL]. | |
Re: [code] addPhoto.innerHTML = addPhoto.innerHTML +"<br/><input type='file' name='flImg'+ i>"; [/code] You need to insert the quote here [icode]<input type='file' name='flImg'" + i + "'>"[/icode] This one may help you. [code] function AddMore() { var i = document.frmExhbt.addN.value; var ele = document.getElementById('addPhoto'); i=parseInt(i); i++; document.frmExhbt.addN.value=i; var newFile = document.createElement('DIV'); newFile.innerHTML = '<input … | |
Re: Try this: [code] <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("mydb", $con); if(isset($_REQUEST['sort'])){ if($_GET['sort'] == "FNAME"){ $query = "SELECT * FROM departments LEFT JOIN (employees) ON (departments.ID=employees.DEPARTMENTID) ORDER BY FNAME"; } elseif($_GET['sort'] == "LNAME"){ $query = "SELECT * FROM departments LEFT JOIN (employees) … | |
Re: session_start() should always stay at the first line of the others. [code] <?php session_start(); //some scripts after this line ?> [/code] | |
Re: [code] #img {background-image: url ("../images/red.jpeg/") width= "100%" length="100%"} [/code] This is not valid CSS. And '.jpeg' should be '.jpg'. | |
Re: You mean 'Street' is one row and the others are another row together ? You can merge the columns. Try this: [code] <form> <table class="spon_info"> <tr> <td colspan="2"> <label for="add_street" style="font-size:12px;vertical-align:middle;padding-left:2px;">Street</label></td> <input name="add_street" type="text" style="vertical-align:middle" value="" size="35" maxlength="50"/> </td> </tr> <tr> <td> <label for="add_city" style="font-size:12px;vertical-align:middle;padding-left:2px;">City</label><input name="add_city" type="text" style="vertical-align:middle" value="" size="35" … | |
Re: [code] str_replace('<br />','<br>',$string); [/code] Hope this help! | |
Re: The pseudo selector can't support in IE 6 and older. Using the background image must be more flexible and comfortable. I never used the pseudo selector for styling the elements. | |
Re: [code] $query="insert into attendance values('$admission_no[$y]','$date')"; [/code] Should be: [code] $query="insert into attendance(field1, field2) values('" . $admission_no[$y] . "','" . $date . "')"; [/code] You must select the field(s) to insert the value(s). [icode]$var="variable $var"[/icode] and [icode]$var = "variable " . $var[/icode] are not same. | |
Re: It is because of your container 'height: auto'. [code] #accountContainer { position:absolute; top:2%; left:42%; width:16%; height: -px; /* Set some height here */ background-color:#CCCC33; } [/code] | |
Re: The inline-element doesn't has the vertical margin, and the image has not vertical margin while it was not specified by the css 'display: block'. For example: 'margin-bottom: auto/ x-px' and 'margin-top: auto/ x-px' is ignore to inline elements. It may be the table cell vertical alignment. You can set the … | |
Re: Try this: [code] body { background: #FFFFFF url('backgrounds/358.gif') scroll repeat top left; } [/code] | |
Re: Here is some examples. [URL="http://www.kelvinluck.com/assets/jquery/jScrollPane/examples.html"]http://www.kelvinluck.com/assets/jquery/jScrollPane/examples.html[/URL] [URL="http://www.kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.html"]http://www.kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.html[/URL] Hope this help! | |
Re: Your codes are not properly nested. Some are missing close tags. I found that 'p' has not close tag. Run your code in browser and then open the view sources, validate these codes. [URL="http://validator.w3.org"]Here is validator[/URL] And also need the DTD in your document. You can get more infos about … | |
Re: IE needs DTD to support auto margin. You can use these. In transitional mode: [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org /TR/xhtml1/DTD/xhtml1-transitional.dtd"> [/code] In strict mode: [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org /TR/xhtml1/DTD/xhtml1-strict.dtd"> [/code] In frame-set mode: [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" … | |
Re: [code] header("Location: add.php"); [/code] I am not sure that is the one you want. Hope this help..! | |
Re: DIV is the block level element. Block level can include both block level (such as heading, paragraph, list, table) and inline level elements (such as span, anchor, image), but inline cannot include block element. Here is some example: [code] This is available. <div> <div></div> <p></p> </div> [/code] [code] This is … | |
Re: Don't forget DTD. IE needs DTD to support 'auto margin' property. | |
Re: [code] #content { background-position: 190px 0px; background-attachment: fixed; } [/code] Hope this help! | |
Re: Your code was wrong. Should be [code] <!--[if gte IE 5.5]> <link rel="stylesheet" type="text/css" href="standard.css" /> <![endif]--> <!--[if IE 7]> <link rel="stylesheet" type="text/css" href="ie7.css" /> <![endif]--> <!--[if IE 8]> <link rel="stylesheet" type="text/css" href="standard.css" /> <![endif]--> [/code] It should be work. Good luck.. | |
Re: Use 'text-align' property for your sub-menu. It would like: [code] ul ul li a { text-align: left; } [/code] Hope this help! | |
Re: Use 'class' or 'id' instead of 'attribute' (input[type]). This may ignore in some of IE version. | |
Re: Try this.. [code] .menu .sub li a { text-align: left; } [/code] Hope this help! | |
Re: Simply way for one DIV inside another DIV. [code] <div class="div1"> <div class="div1-1"> <div class="div1-2"> </div> </div> </div> [/code] | |
Re: [code] <td class='td_stars'><ul id='total' class='rating ninestar'></td> [/code] There is no closing for the 'ul', and validation failed. [URL="http://validator.w3.org/"]http://validator.w3.org/[/URL], validate here. '<br>' doesn't allowed in XHTML. You should use '<br />'. | |
Re: May be not had the enough space for the right. The maximum width of the two columns must be their parent's width, and if there was also margin or padding, they can increase spaces between the two columns. Check these and try again. | |
Re: Here: [code] #mainnav ul { float: left; overflow: hidden; margin-left: 140px; margin-bottom: 0; border: 1px solid blue; } [/code] Add 'margin-bottom: 0' to 'ul' which is inside of 'mainnav' div. | |
Re: I don't know exactly what your problem is. But your code was not valid. [code] [COLOR="Red"]<link></link>[/COLOR] [COLOR="Red"]<img></img> <br></br> <hr></hr>[/COLOR] [/code] From above, they are non-close tags. You must use [code] <link /> <img /> <br /> <hr /> [/code] The input tag has no close tag too. Fix these and … | |
Re: [code] div#div1-b { position:absolute; top:0px; right:0px; width:75%; height:200px; } [/code] Remove 'height: 200px' with 'height: auto'. Or use 'overflow' property to control the overflow contents. [code] div#div1-b { /* This declaration hide the overflow contents */ overflow: hidden; /* This declaration show the overflow contents */ overflow: visible; /* This … | |
Re: Use auto margin to center the div tag. [code] div { margin: 0 auto; width: 650px; } [/code] I have no idea to stay exactly center at vertical alignment. Note that auto margin need static width. | |
Re: You can also use span tags and class for the multiple font colors. Here: [code] <th> Address<br/> <span class="green">North</span> <span class="red">South</span> <span class="blue">West</span> </th> [/code] CSS: [code] .green { color: green; } .blue { color: blue; } .red { color: red; } [/code] | |
Re: The 'response redirect' can help you. [code] <% response.redirect('contact.html') %> [/code] When you submit the form and it will process in 'asp' file and then, redirect to the 'contact.html'. It make the browser refresh and all fields are clear. | |
Re: [code] html, body { margin: 0; padding: 0; [/code] | |
Re: You are wrong with id and class. Your div used 'id', not 'class'. So CSS should be: [code] #main { } [/code] id and class are not the same. id start with '#', class start with '.' | |
Re: Right. Auto margin work with block-level element. Can't apply to inline element. | |
Re: Try this tag 'minihorizontalnav' with 'overflow:hidden'. This may be solve. If not post again. | |
Re: Your function return value, not echo value. You need to echo the value. Example: [code] include_once('renderIndexer.php'); echo renderIndex(); [/code] | |
Re: I checked your code and it is fine with both. Did you validate your HTML? If not, validate your HTML first, and try again. | |
Re: [code] #ao_nav li#first{ display:inline; margin:3px 0 0 10px; position:relative; float:left; height: 20px; color: white; font-size: 9pt; font-weight:bold; } #ao_nav li#contrast{ display:inline; margin:3px 0 0 10px; position:relative; float:left; height: 20px; color: white; font-size: 9pt; font-weight:bold; } #ao_nav li{ display:inline; margin:0 0 0 12px; position:relative; float:left; text-align:bottom; height: 20px; } [/code] '#ao_nav … | |
Re: Add 'class' or 'id' for this anchor. [code] <?php if(isset($user) && (isset($pass)) { //whatever u want for this echo "<td><a href='www.something.com/file.htm' class='memberlink'>Click</a><td>"; } else { echo "<td>Click</td>"; } ?> [/code] And you can change in css: [code] a.memberlink { } [/code] Good luck. | |
Re: Remove single quote from the red color text. [code] $sql = "SELECT count(*) as count FROM Users WHERE username = '$username' and [COLOR="Red"]`password`[/COLOR] = '$password'"; [/code] | |
| |
Re: Write the variable outside from the string. Example: [code] echo "<a class=\"pglink\" href=\"news.php?p=" . $i . "\">" . $i . "</a>  "; [/code] This may be help you. | |
Re: Float these images. [code] img { float: left } [/code] Notice that float makes browser debug. But it should work. | |
![]() | Re: Try with 'area shap: circle' instead of 'rectangle'. You can find the coordinate with photoshop more exactly. ![]() |
Re: [URL="http://www.free-css.com/free-css-menus/page1.php"]http://www.free-css.com/free-css-menus/page1.php[/URL] Here is free css meus. You can learn easily and download free. | |
Re: [code] <a href="your_image.jpg" alt="" title="change photo"><img src="your_image.jpg" /></a> [/code] It is what you want. |
The End.