HTML - Default Table Settings
Is this code necessary if I only need zero for all of these, in any given table? Is zero the default setting if none is set? Can I just eliminate this code? FYI (It came as part of a table template.)
border=0 cellpadding=0 cellspacing=0 style="margin-top:0;" Similar TutorialsBasically I have recently added more to my "Navigation Bar" it works fine on a "1366 x 768" that is currently my screen settings. Yet i looked on a 1024 x 768 and it was all over the place. Here is screenshots of what I mean. This is what it looks like on the 1024x768 screen. This is how I want it to look on all screens. So im basically saying what settings to I have to apply to make this a fix on all screens. Cheers. I have created a php file for a feedback form...if i use it and click the submi button an eror comes up: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\test.php on line 16 I was told to find this path file C:\wamp\bin\php\php-[your-version]\php.ini and change its smtp settings. I have no idea how to change the smtp settings and what to change it to. any help would be much appreciated. is there a simple way to use data reposted to a form to determine which option is selected in a select box (based on its setting before)? here is an example of the code i am using at present: Code: <label for="Options">Options</label> <select id="Options" name="Options"> <optgroup label="Select Option"> <option value="Option1">Option1</option> <option value="Option2" selected="selected">Option2</option> <option value="Option3">Option3</option> <option value="Option4">Option4</option> </optgroup> </select> when this is posted the value selected in the select box may have changed (eg: to option3) . In this case it should be re-displayed in the following manner: Code: <label for="Options">Options</label> <select id="Options" name="Options"> <optgroup label="Select Option"> <option value="Option1">Option1</option> <option value="Option2">Option2</option> <option value="Option3" selected="selected">Option3</option> <option value="Option4">Option4</option> </optgroup> </select> i am wondering if the selected="selected" element could be taken outside the option tag and set to point at the relevant option using a more dynamic method (utilising PHP or other methods) - one thing i am trying to avoid is having a PHP statement associated with each option value, in preference using a single statement which sets the relevant option to selected if possible. any ideas? Hi, I am trying to solve this for few days, but i cant slove it, so frustrated and nervous. Following is my coding: <select name="lang" onChange="form.redirect.value='index.html'; form.submit()" > <option value=0>English</option> <option value=1>English</option> <option value=2>Francais</option> <option value=3>Castellano</option> <option value=4>Deutsch</option> </select> how can i set English as default? yet user can see the Word "English" appear as deafult. HElp me please..Thanks and appreciate for your help :-) Hi Hope someone can help. I am new to HTML and i am a bit stuck. I have written a Java script to populate a text box with the contents of a directory and what I want to do is to display a gif or picture whilst the data is getting retrieved. My code is (it is in a grid) <TD><textarea name="files" cols="50" rows="20">test</textarea></TD> What I want is to have the box show a pic as default until the script loads the data. Thanks Paul I was just curious when I make a form element, if there is a default name that is set to that form if I do not use the "name=" attribute". I have a document with objects positioned with Absolute values. I want to center the page vertically and horizontally. Is there any way to change the default X and Y, so that the page will display where I want it to? Thank so much. Rick I'm trying to put default values in my Input fields, which are text fields, of course, but I have numeric input values so I want them on the right. Is there any way to do this? here's a snippet of my code so's you can see what I mean: <form action="" id="calculate_form"> <div> <table style="width: 937px; height: 438px;"> <tbody> <tr> <td> Height: (Metres) </td> <td style="text-align: center; vertical-align: top;"> <p><input value="0" name="height" id="height" /> </p> </td> <td> Cement Price/20kg Bag<br /> </td> <td><input value="7" name="cementprice" id="cementprice" /></td> </tr> <tr> <td>Breadth: (Metres)</td> <td style="text-align: center; vertical-align: middle;"> <p><input value="0" name="breadth" id="breadth" /> and so on........... Perhaps it can't be done in HTML? In that case, what could it be done in? i've got a javascript script on this page, to do the calcs. Hi guys..i have 1 table which is background color is black. I also have link <a></a> inside that table. Once user click the link, it will change the table background color to red. Then when user click the link again,the color willl change to default color,black. i have no idea how to do that. any help? Hi Guys, I need to display a default image if a user doesn't upload one eg: :::::::::Current Code::::::: <img src="{src}" {width} {height} border="0" hspace="0" alt="{alt}"> //shows the image if a user uploads one How can i alter the code so that if a user doesnt upload one it defaults to images/default.gif Thanks So i'm trying to change some of my default link colours, but everything that I have tried so far hasn't worked. Right now, I have this piece of code in my body tag. HTML Code: link="#00CC33" I don't know if it is correct or not, but how do I change the link colour? I've tried searching, but have had no luck at all. I've got a website here that's split into two frames. The top frame is the header and the bottom frame is the page body. When I print, it only seems to print the header. How can I get it to print the body by default (i.e. without clicking on the body first)? [SOLVED!] I have a basic input box with a default value of "Enter Your Email Address". I am looking to have that clear as soon as the user clicks in the text area to type their address. Any suggestions on how to do this? Ok here is my story i have a really good page page for my pc but when i try and open it on my iphone it looks really bad. I have created an iphone web page but i don't want to have to type the address into the address bar. I am running iis5 on windows xp Cheers Gozy Is it possible to start a page scrolled down a certain amount automatically? Not through a link, just so that whenever someone visits the site, it is scrolled down that default amount? Thanks! Hi, I am learning HTML and CSS from scratch and I am curious about what the default values are for the many HTML tags that are available. For example, what is the default family-font and font-size for the "body" tag? Thanks, On as in pre-selected when a page loads... <html> <form> <p><input type="text" name="T1" size="20" /></p> <p><input type="submit" value="B1" name="B1" /></p> <p><input type="submit" value="B2" name="B2" /></p> </form> </html> Say I have the above form in a web page. When the page loads, the browser will highlight the first submit button b1, such that if the user hits enter, the form is submitted with that button. I'd like the default button to be B2, which is displayed second on the form. I'd greatly appreciate any advice on how to accomplish this. Thanks, jsfgguy I have a tabbed content box using jQuery, but I want to show HTML upon loading that is not one of the actual tabs. Here is my code so far. Code: <div id="tabs_container"> <ul id="tabs"> <li><a class="imgrep exceed" href="#tab1">tab1</a></li> <li><a class="imgrep fun" href="#tab2">tab2</a></li> <li><a class="imgrep envelope" href="#tab3">tab3</a></li> <li><a class="imgrep love" href="#tab4">tab4</a></li> <li><a class="imgrep ceo" href="#tab5">tab5</a></li> <li><a class="imgrep embrace" href="#tab6">tab6</a></li> <li><a class="imgrep shoes" href="#tab7">tab7</a></li> <li><a class="imgrep celebrate" href="#tab8">tab8</a></li> </ul> </div> <div id="tabs_content_container"> <!-- code I want to show as the default slide --> <div class="tab_content" style="display: block;"> <div id="inside_content"> <p class="inside_h"><span style="color: #00a7d1;">Our Recipes for Success</span></p> <p class="inside_p">Whether it's a simple assignment or basic interaction with one of the members, our goal is not to just be good, but be better than great.</p> </div> </div> <!-- end default code --> <!-- Tab 1 --> <div id="tab1" class="tab_content"> <div id="inside_content"> <p class="inside_h"><span style="color: #00a7d1;">Exceed Expectations everyday.</span></p> <p class="inside_p">Whether it's a simple assignment or basic interaction with one of the members, our goal is not to just be good, but be better than great.</p> <ul id="ingredients"> <li>ingredients:</li> <li>2 determination</li> <li>1 positive attitude</li> <li>2 self-motivation</li> <div id="logo-blue"></div> </ul> </div> </div> <!-- Tab 2 --> <div id="tab2" class="tab_content"> <div id="inside_content"> <p class="inside_h"><span style="color: #d18c02;">Have fun.</span></p> <p class="inside_p">We get to do the unthinkable - work and have a good time. We share that philosophy through. Fun is what makes it so invaluable.</p> <ul id="ingredients"> <li>ingredients:</li> <li>1 passion</li> <li>3 positive attitude</li> <li>1 goofyness</li> </ul> </div> </div> ... more tabs... Hi All its been quite some time since i have hand coded anything and i am having some probs with a form i am using.. i want to use my own image for the button instead of the default.. can someone let me know how this code should look to use my own image.. any help would be much appreciated Code: <table cellpadding="0" cellspacing="0" border="0"> <tr> <td><input type="text" name="loginusername" accesskey="u" tabindex="1"></td> <td style="padding-left: 5px;"><input type="password" name="loginpassword" value="" accesskey="p" tabindex="2"></td> <td style="padding-left: 5px;"><input type="submit" name="login" value="Login" accesskey="l" tabindex="3"></td> </tr> <tr> <td class="loginusername" style="padding-top: 3px;">Username</td> <td class="loginpassword" colspan="2" style="padding-left: 5px; padding-top: 3px;">Password</td> </tr> </table> |